UNPKG

@plait/draw

Version:

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

9 lines (8 loc) 431 B
import { Point, RectangleClient } from '@plait/core'; import { PlaitGeometry, ShapeEngine } from '../../interfaces'; export interface CreateOptions { getPolygonPoints: (rectangle: RectangleClient) => Point[]; getConnectorPoints?: (rectangle: RectangleClient) => Point[]; getTextRectangle?: (element: PlaitGeometry) => RectangleClient; } export declare function createPolygonEngine(options: CreateOptions): ShapeEngine;