@plait/draw
Version:
Implementation of the core logic of the flowchart drawing tool plugin.
7 lines (6 loc) • 495 B
TypeScript
import { Point, RectangleClient } from '@plait/core';
import { ShapeEngine } from '../../interfaces';
export declare const TerminalEngine: ShapeEngine;
export declare const getStartEndRadius: (rectangle: RectangleClient) => number;
export declare function getNearestPointBetweenPointAndRoundRectangle(point: Point, rectangle: RectangleClient, radius: number): Point;
export declare function getBoundCenterOfRoundRectangle(rectangle: RectangleClient, radius: number, point: Point): Point | null;