@logicflow/extension
Version:
LogicFlow Extensions
28 lines (27 loc) • 725 B
TypeScript
import LogicFlow from '@logicflow/core';
export type ShapeItem = {
type?: string;
text?: string;
icon?: string;
label?: string;
className?: string;
disabled?: boolean;
properties?: Record<string, unknown>;
callback?: (lf: LogicFlow, container?: HTMLElement) => void;
[key: string]: unknown;
};
export declare class DndPanel {
lf: LogicFlow;
static pluginName: string;
shapeList?: ShapeItem[];
panelEl?: HTMLDivElement;
domContainer?: HTMLElement;
constructor({ lf }: {
lf: any;
});
render(_lf: LogicFlow, domContainer: any): void;
destroy(): void;
setPatternItems(shapeList: any): void;
private createDndItem;
}
export default DndPanel;