| 12345678910111213141516171819202122232425262728293031 |
- import { Scale, ScaleConfig } from '@antv/scale';
- export declare type ScaleOption = {
- type?: string;
- justifyContent?: boolean;
- } & ScaleConfig;
- declare class ScaleController {
- private data;
- private options;
- private scales;
- constructor(data: any);
- private _getType;
- private _getOption;
- private createScale;
- setScale(field: string, option?: ScaleOption): void;
- create(options: {
- [k: string]: ScaleOption;
- }): void;
- update(options: {
- [k: string]: ScaleOption;
- }): void;
- changeData(data: any): void;
- getData(): any;
- getScale(field: string): Scale;
- getScales(): {
- [field: string]: Scale;
- };
- adjustStartZero(scale: Scale): void;
- adjustPieScale(scale: Scale): any;
- getZeroValue(scale: any): any;
- }
- export default ScaleController;
|