@logicflow/extension
Version:
LogicFlow Extensions
24 lines (23 loc) • 615 B
TypeScript
import LogicFlow from '@logicflow/core';
type IMode = 'single' | 'path' | 'neighbour';
export declare class Highlight {
lf: LogicFlow;
static pluginName: string;
mode: IMode;
enable: boolean;
tempStyles: {};
constructor({ lf, options }: {
lf: any;
options: any;
});
setMode(mode: IMode): void;
setEnable(enable: boolean): void;
private highlightSingle;
private highlightNeighbours;
private highlightPath;
highlight(id: string, mode?: IMode): void;
restoreHighlight(): void;
render(): void;
destroy(): void;
}
export default Highlight;