Files
2022-11-28 14:31:03 +08:00

27 lines
595 B
TypeScript

declare type ControlItem = {
key: string;
iconClass: string;
title: string;
text: string;
onClick?: Function;
onMouseEnter?: Function;
onMouseLeave?: Function;
};
declare class Control {
private lf;
static pluginName: string;
private controlItems;
private domContainer;
private toolEl;
constructor({ lf }: {
lf: any;
});
render(lf: any, domContainer: any): void;
destroy(): void;
addItem(item: any): void;
removeItem(key: any): ControlItem;
private getControlTool;
}
export default Control;
export { Control };