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