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