@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
15 lines • 711 B
TypeScript
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 Cubic extends APC implements IHiccupShape2<Cubic>, IHiccupPathSegment {
readonly type = "cubic";
readonly dim = 2;
constructor(points: Iterable<Vec>, attribs?: Attribs);
copy(): Cubic;
copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Cubic;
withAttribs(attribs: Attribs): Cubic;
toHiccup(): (string | Attribs | (string | Vec<number>)[][] | undefined)[];
toHiccupPathSegments(): HiccupPathSegment[];
}
//# sourceMappingURL=cubic.d.ts.map