1 | import { Scale, ScaleConfig } from '../deps/f2-scale/src';
|
2 | export type ScaleOption = {
|
3 | type?: string;
|
4 | justifyContent?: boolean;
|
5 | } & ScaleConfig;
|
6 | declare class ScaleController {
|
7 | private data;
|
8 | private options;
|
9 | private scales;
|
10 | constructor(data: any);
|
11 | private _getType;
|
12 | private _getOption;
|
13 | private createScale;
|
14 | setScale(field: string, option?: ScaleOption): void;
|
15 | create(options: {
|
16 | [k: string]: ScaleOption;
|
17 | }): void;
|
18 | update(options: {
|
19 | [k: string]: ScaleOption;
|
20 | }): void;
|
21 | changeData(data: any): void;
|
22 | getData(): any;
|
23 | getScale(field: string): Scale;
|
24 | getScales(): {
|
25 | [field: string]: Scale;
|
26 | };
|
27 | getOptions(): {};
|
28 | adjustStartZero(scale: Scale): void;
|
29 | adjustPieScale(scale: Scale): any;
|
30 | _updateStackRange(scale: Scale, flattenArray: any): void;
|
31 | getZeroValue(scale: any): any;
|
32 | }
|
33 | export default ScaleController;
|