index.d.ts 595 B

1234567891011121314151617181920212223242526
  1. declare type ControlItem = {
  2. key: string;
  3. iconClass: string;
  4. title: string;
  5. text: string;
  6. onClick?: Function;
  7. onMouseEnter?: Function;
  8. onMouseLeave?: Function;
  9. };
  10. declare class Control {
  11. private lf;
  12. static pluginName: string;
  13. private controlItems;
  14. private domContainer;
  15. private toolEl;
  16. constructor({ lf }: {
  17. lf: any;
  18. });
  19. render(lf: any, domContainer: any): void;
  20. destroy(): void;
  21. addItem(item: any): void;
  22. removeItem(key: any): ControlItem;
  23. private getControlTool;
  24. }
  25. export default Control;
  26. export { Control };