UNPKG

@foblex/2d

Version:

An Angular library for 2D geometric computations, providing classes and utilities for manipulating points, lines, vectors, rectangles, arcs, and transformations.

12 lines (11 loc) 433 B
import { IRoundedRect } from './rounded-rect'; import { Arc } from './arc'; import { Line } from './line'; export declare class ShapeParser { /** * Parses the rounded rectangle into its constituent segments (arcs and lines). * @param rect - The rounded rectangle to parse. * @returns An array of arcs and lines representing the rectangle. */ static parseRoundedRect(rect: IRoundedRect): (Arc | Line)[]; }