UNPKG

plotboilerplate

Version:

A simple javascript plotting boilerplate for 2d stuff.

31 lines (30 loc) 999 B
/** * A helper for VEllipses. * * @author Ikaros Kappler * @date 2025-03-31 * @modified 2025-04-02 Adding `VEllipseHelper.drawHandleLines()`. * @modified 2025-04-09 Adding `VEllipseHelper.destroy()`. * @version 1.0.0 */ import { VEllipse } from "../../VEllipse"; import { Vertex } from "../../Vertex"; import { DrawLib } from "../../interfaces"; export declare class VEllipseHelper { private readonly ellipse; private readonly rotationControlPoint; private _rotationControlLine; private _centerPointHandler; private _rotationPointHandler; constructor(ellipse: VEllipse, rotationControlPoint: Vertex); private _handleDragCenterPoint; private _handleRotationCenterPoint; /** * Draw grey handle lines. * * @param {DrawLib<any>} draw - The draw library instance to use. * @param {DrawLib<any>} fill - The fill library instance to use. */ drawHandleLines(draw: DrawLib<any>, fill: DrawLib<any>): void; detroy(): void; }