@plait/draw
Version:
Implementation of the core logic of the flowchart drawing tool plugin.
18 lines (17 loc) • 605 B
TypeScript
import { PlaitBoard, Point } from '@plait/core';
import { Generator } from '@plait/common';
import { PlaitLine } from '../interfaces/line';
export interface ActiveData {
selected: boolean;
linePoints: Point[];
}
export declare class LineActiveGenerator extends Generator<PlaitLine, ActiveData> {
protected board: PlaitBoard;
onlySelectedCurrentLine: boolean;
constructor(board: PlaitBoard, options?: {
active: boolean;
});
canDraw(element: PlaitLine, data: ActiveData): boolean;
draw(element: PlaitLine, data: ActiveData): SVGGElement;
needUpdate(): boolean;
}