UNPKG

@thi.ng/hiccup-canvas

Version:

Hiccup shape tree renderer for vanilla Canvas 2D contexts

6 lines 641 B
import type { DrawState } from "./api.js"; export declare const resolveColor: (src: Exclude<import("@thi.ng/color/api").MaybeColor, import("@thi.ng/color/api").IParsedColor>, cssTarget?: import("@thi.ng/color/css/css").CSSConversions) => string; export declare const resolveGradientOrColor: (state: DrawState, v: any) => string | CanvasGradient; export declare const defLinearGradient: (ctx: CanvasRenderingContext2D, { from, to }: any, stops: any[][]) => CanvasGradient; export declare const defRadialGradient: (ctx: CanvasRenderingContext2D, { from, to, r1, r2 }: any, stops: any[][]) => CanvasGradient; //# sourceMappingURL=color.d.ts.map