index.d.ts 787 B

1234567891011121314151617181920212223242526272829303132
  1. import { Adaptor } from '../../core/adaptor';
  2. import { Plot } from '../../core/plot';
  3. import './shapes/indicator';
  4. import './shapes/meter-gauge';
  5. import { GaugeOptions } from './types';
  6. export type { GaugeOptions };
  7. /**
  8. * 仪表盘
  9. */
  10. export declare class Gauge extends Plot<GaugeOptions> {
  11. /**
  12. * 获取 仪表盘 默认配置项
  13. * 供外部使用
  14. */
  15. static getDefaultOptions(): Partial<GaugeOptions>;
  16. /** 图表类型 */
  17. type: string;
  18. /**
  19. * 更新数据
  20. * @param percent
  21. */
  22. changeData(percent: number): void;
  23. /**
  24. * 获取默认配置
  25. * 供 base 使用
  26. */
  27. protected getDefaultOptions(): Partial<GaugeOptions>;
  28. /**
  29. * 获取适配器
  30. */
  31. protected getSchemaAdaptor(): Adaptor<GaugeOptions>;
  32. }