@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
14 lines • 583 B
TypeScript
import type { Fn } from "@thi.ng/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Attribs, IHiccupShape2 } from "../api.js";
import { APC } from "./apc.js";
export declare class Quad extends APC implements IHiccupShape2<Quad> {
readonly type = "quad";
readonly dim = 2;
constructor(points: Iterable<Vec>, attribs?: Attribs);
copy(): Quad;
copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Quad;
withAttribs(attribs: Attribs): Quad;
toHiccup(): (string | Vec<number>[] | Attribs | undefined)[];
}
//# sourceMappingURL=quad.d.ts.map