UNPKG

@thi.ng/geom

Version:

Functional, polymorphic API for 2D geometry types & SVG generation

17 lines 705 B
import type { SegmentType2, SegmentType3 } from "./api.js"; import { Path } from "./api/path.js"; import { Path3 } from "./api/path3.js"; /** * Converts given path into a new one with segments converted to {@link Cubic} * (or {@link Cubic3} for 3D paths) bezier segments. Unless specific segment * types are specified via `only`, by default all segments will be converted. * * @remarks * Also see {@link pathFromCubics}. * * @param path * @param only */ export declare function normalizedPath(path: Path, only?: Extract<SegmentType2, "a" | "l" | "p" | "q">[]): Path; export declare function normalizedPath(path: Path3, only?: SegmentType3[]): Path3; //# sourceMappingURL=normalized-path.d.ts.map