UNPKG

@thi.ng/hiccup-canvas

Version:

Hiccup shape tree renderer for vanilla Canvas 2D contexts

5 lines 383 B
import type { IObjectOf } from "@thi.ng/api"; import type { ReadonlyVec } from "@thi.ng/vectors"; export declare const line: (ctx: CanvasRenderingContext2D, attribs: IObjectOf<any>, a: ReadonlyVec, b: ReadonlyVec) => void; export declare const lines: (ctx: CanvasRenderingContext2D, attribs: IObjectOf<any>, pairs: Iterable<ReadonlyVec[]>) => void; //# sourceMappingURL=line.d.ts.map