@plait/draw
Version:
Implementation of the core logic of the flowchart drawing tool plugin.
16 lines (15 loc) • 540 B
TypeScript
import { PlaitBoard, Point } from '@plait/core';
import { PlaitLine } from '../../interfaces/line';
export declare enum LineResizeHandle {
'source' = "source",
'target' = "target",
'addHandle' = "addHandle"
}
export declare const getHitLineResizeHandleRef: (board: PlaitBoard, element: PlaitLine, point: Point) => {
handle: LineResizeHandle;
handleIndex: number;
} | {
handleIndex: number;
handle?: undefined;
} | undefined;
export declare function getHitPointIndex(points: Point[], movingPoint: Point): number;