index.d.ts 701 B

123456789101112131415161718192021222324252627
  1. import { Adaptor } from '../../core/adaptor';
  2. import { Plot } from '../../core/plot';
  3. import { Data } from '../../types';
  4. import './interactions';
  5. import { SankeyOptions } from './types';
  6. export type { SankeyOptions };
  7. /**
  8. * 桑基图 Sankey
  9. */
  10. export declare class Sankey extends Plot<SankeyOptions> {
  11. /** 图表类型 */
  12. type: string;
  13. static getDefaultOptions(): Partial<SankeyOptions>;
  14. /**
  15. * @override
  16. * @param data
  17. */
  18. changeData(data: Data): void;
  19. /**
  20. * 获取适配器
  21. */
  22. protected getSchemaAdaptor(): Adaptor<SankeyOptions>;
  23. /**
  24. * 获取 条形图 默认配置
  25. */
  26. protected getDefaultOptions(): Partial<SankeyOptions>;
  27. }