@thi.ng/hiccup-canvas
Version:
Hiccup shape tree renderer for vanilla Canvas 2D contexts
9 lines • 526 B
TypeScript
import type { IObjectOf, Maybe } from "@thi.ng/api";
import type { DrawState } from "../api.js";
/** @internal */
export declare const __mergeState: (ctx: CanvasRenderingContext2D, state: DrawState, attribs: IObjectOf<any>) => Maybe<DrawState>;
/** @internal */
export declare const __restoreState: (ctx: CanvasRenderingContext2D, prev: DrawState, curr: DrawState) => void;
/** @internal */
export declare const __registerGradient: (state: DrawState, id: string, g: CanvasGradient) => void;
//# sourceMappingURL=state.d.ts.map