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