UNPKG

@thi.ng/geom

Version:

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

15 lines 739 B
import type { Fn } from "@thi.ng/api"; import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; import type { Attribs, HiccupPathSegment, IHiccupPathSegment, IHiccupShape2 } from "../api.js"; import { APC } from "./apc.js"; export declare class Quadratic extends APC implements IHiccupShape2<Quadratic>, IHiccupPathSegment { readonly type = "quadratic"; readonly dim = 2; constructor(points: Iterable<Vec>, attribs?: Attribs); copy(): Quadratic; copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Quadratic; withAttribs(attribs: Attribs): Quadratic; toHiccup(): (string | Attribs | (string | Vec<number>)[][] | undefined)[]; toHiccupPathSegments(): HiccupPathSegment[]; } //# sourceMappingURL=quadratic.d.ts.map