UNPKG

@plait/draw

Version:

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

12 lines (11 loc) 502 B
import { PlaitBoard, PlaitElement, Point } from '@plait/core'; import { PlaitDrawElement } from '../interfaces'; export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitElement | { points: number[][]; id: string; children?: PlaitElement[]; type?: string; groupId?: string; angle?: number; })[]; export declare const insertClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => void;