@plait/draw
Version:
Implementation of the core logic of the flowchart drawing tool plugin.
7 lines (6 loc) • 673 B
TypeScript
import { PlaitBoard, Point } from '@plait/core';
import { PlaitVectorLine, VectorLineShape } from '../interfaces';
export declare const getVectorLinePoints: (board: PlaitBoard, element: PlaitVectorLine) => Point[] | null;
export declare const createVectorLineElement: (shape: VectorLineShape, points: Point[], options?: Pick<PlaitVectorLine, "strokeColor" | "strokeWidth" | "fill">) => PlaitVectorLine;
export declare const vectorLineCreating: (board: PlaitBoard, lineShape: VectorLineShape, points: Point[], movingPoint: Point, lineShapeG: SVGGElement) => PlaitVectorLine;
export declare const drawVectorLine: (board: PlaitBoard, element: PlaitVectorLine) => SVGGElement;