index.d.ts 560 B

123456789101112131415161718192021
  1. import LogicFlow from '@logicflow/core';
  2. declare type IMode = 'single' | 'path';
  3. declare class Highlight {
  4. lf: LogicFlow;
  5. static pluginName: string;
  6. mode: IMode;
  7. manual: boolean;
  8. tempStyles: {};
  9. constructor({ lf }: {
  10. lf: any;
  11. });
  12. setMode(mode: IMode): void;
  13. setManual(manual: boolean): void;
  14. private highlightSingle;
  15. private highlightPath;
  16. highlight(id: string, mode?: IMode): void;
  17. restoreHighlight(): void;
  18. render(lf: any, domContainer: any): void;
  19. destroy(): void;
  20. }
  21. export { Highlight };