UNPKG

@plait/draw

Version:

Implementation of the core logic of the flowchart drawing tool plugin.

13 lines (12 loc) 594 B
import { PlaitBoard } from '@plait/core'; import { PlaitArrowLine, PlaitGeometry } from '../../interfaces'; export declare const WithArrowLineAutoCompletePluginKey = "plait-arrow-line-auto-complete-plugin-key"; export interface ArrowLineAutoCompleteOptions { afterComplete: (element: PlaitArrowLine) => {}; } export type PreCommitRef = { temporaryArrowLineElement: PlaitArrowLine; temporaryShapeElement: PlaitGeometry; }; export declare const BOARD_TO_PRE_COMMIT: WeakMap<PlaitBoard, PreCommitRef>; export declare const withArrowLineAutoComplete: (board: PlaitBoard) => PlaitBoard;