1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| export declare class ClassBreakStyle extends Style {
field: string;
classBreaks: Array<ClassBreakItem>;
constructor(field?: string, classBreaks?: Array<ClassBreakItem>, name?: string); /** * Collects the required field names that will be used for rendering. */ fields(): string[]; /** * This is a shortcut function to automatically generate class breaks based on the values, * and assign a gradient colors to each item. * @deprecated Use `autoByRange` function instead. * @param {'fill'|'linear'|'point'} styleType The style type of the sub-styles. * @param {string} field The field name where the value is fetched. * @param {number} maximum The maximum value to break down. * @param {number} minimum The minimum value to break down. * @param {number} count The break down items count to generate. * @param {string} fromColor The fill color begins from. * @param {string} toColor The fill color ends with. * @param {string} strokeColor The stroke color. * @param {number} strokeWidth The stroke width in pixel. * @param {number} radius The radius for points symbols. * @param {PointSymbolType} symbol The point symbol type. * @returns {ClassBreakStyle} A class break style with sub styles filled with the specified conditions. */ static auto(styleType: 'fill' | 'linear' | 'point', field: string, maximum: number, minimum: number, count: number, fromColor?: string, toColor?: string, strokeColor?: string, strokeWidth?: number, radius?: number, symbol?: PointSymbolType): ClassBreakStyle;
static autoByRange(styleType: 'fill' | 'linear' | 'point', field: string, maximum: number, minimum: number, count: number, autoStyleOptions?: AutoStyleOptions): ClassBreakStyle; static autoByAggregator(styleType: 'fill' | 'linear' | 'point', field: string, aggregator: PropertyAggregator, breakCount: number, breakBy?: 'value' | 'position', autoStyleOptions?: AutoStyleOptions): ClassBreakStyle; static autoByValues(styleType: 'fill' | 'linear' | 'point', field: string, breakDownValues: Array<Range>, autoStyleOptions?: AutoStyleOptions): ClassBreakStyle; }
|