UNPKG

@thi.ng/hiccup-canvas

Version:

Hiccup shape tree renderer for vanilla Canvas 2D contexts

5 lines 470 B
import type { IObjectOf } from "@thi.ng/api"; import type { IToImageData } from "@thi.ng/pixel"; import type { ReadonlyVec } from "@thi.ng/vectors"; export declare const image: (ctx: CanvasRenderingContext2D, _: IObjectOf<any>, { width, height }: IObjectOf<any>, img: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap | ImageData | IToImageData, dpos: ReadonlyVec, spos?: ReadonlyVec, ssize?: ReadonlyVec) => void; //# sourceMappingURL=image.d.ts.map