UNPKG

@plait/draw

Version:

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

10 lines (9 loc) 514 B
import { PlaitBoard, RectangleClient } from '@plait/core'; import { PlaitGeometry, ShapeEngine } from '../../interfaces'; import { Options } from 'roughjs/bin/core'; export interface CreateEllipseOptions { draw?: (board: PlaitBoard, rectangle: RectangleClient, options: Options) => SVGGElement; getTextRectangle?: (element: PlaitGeometry) => RectangleClient; } export declare function createEllipseEngine(createOptions?: CreateEllipseOptions): ShapeEngine; export declare const EllipseEngine: ShapeEngine;