UNPKG

@plait/draw

Version:

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

20 lines (19 loc) 514 B
import { PlaitElement, Point } from '@plait/core'; import { StrokeStyle } from '@plait/common'; export declare enum VectorLinePointerType { vectorLine = "vectorLine" } export declare enum VectorLineShape { straight = "straight", curve = "curve" } export interface PlaitVectorLine extends PlaitElement { type: 'vector-line'; shape: VectorLineShape; points: Point[]; strokeColor?: string; strokeWidth?: number; strokeStyle?: StrokeStyle; fill?: string; opacity: number; }