index.d.ts 649 B

12345678910111213141516171819202122232425
  1. import LogicFlow from '@logicflow/core';
  2. declare type ShapeItem = {
  3. type?: string;
  4. text?: string;
  5. icon?: string;
  6. label?: string;
  7. className?: string;
  8. properties?: Record<string, any>;
  9. callback?: (lf: LogicFlow, container: HTMLElement) => void;
  10. };
  11. declare class DndPanel {
  12. lf: LogicFlow;
  13. shapeList: ShapeItem[];
  14. panelEl: HTMLDivElement;
  15. static pluginName: string;
  16. domContainer: HTMLElement;
  17. constructor({ lf }: {
  18. lf: any;
  19. });
  20. render(lf: any, domContainer: any): void;
  21. destroy(): void;
  22. setPatternItems(shapeList: any): void;
  23. private createDndItem;
  24. }
  25. export { DndPanel, };