scale.d.ts 835 B

12345678910111213141516171819202122232425262728293031
  1. import { Scale, ScaleConfig } from '@antv/scale';
  2. export declare 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. adjustStartZero(scale: Scale): void;
  28. adjustPieScale(scale: Scale): any;
  29. getZeroValue(scale: any): any;
  30. }
  31. export default ScaleController;