UNPKG

@thi.ng/geom

Version:

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

28 lines 1.03 kB
import type { Fn } from "@thi.ng/api"; import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; import type { Attribs, IHiccupPathSegment, IHiccupShape3 } from "../api.js"; import { APC } from "./apc.js"; export declare class Polyline3 extends APC implements IHiccupShape3<Polyline3>, IHiccupPathSegment { readonly type = "polyline3"; readonly dim = 3; add(...points: Vec[]): void; copy(): Polyline3; copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Polyline3; withAttribs(attribs: Attribs): Polyline3; toHiccup(): (string | Vec<number>[] | { fill: string; __samples?: Partial<import("../api.js").SamplingOpts> | number; __prec?: number; rotate?: number; rotateX?: number; rotateY?: number; rotateZ?: number; scale?: number | ReadonlyVec; translate?: ReadonlyVec; transform?: ReadonlyVec; stroke?: any; weight?: number; })[]; toHiccupPathSegments(): any[]; } //# sourceMappingURL=polyline3.d.ts.map