@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
8 lines • 439 B
TypeScript
import type { Attribs } from "./api.js";
import type { Vec, VecPair } from "@thi.ng/vectors";
import { Line } from "./api/line.js";
import { Rect } from "./api/rect.js";
export declare function line(a: Vec, b: Vec, attribs?: Attribs): Line;
export declare function line(pts: Iterable<Vec>, attribs?: Attribs): Line;
export declare const clippedLine: (l: Line, bounds: VecPair | Rect) => Line | undefined;
//# sourceMappingURL=line.d.ts.map