UNPKG

victory-canvas

Version:
9 lines 415 B
import React from "react"; export type CanvasContextValue = { canvasRef: React.RefObject<HTMLCanvasElement>; clear: (ctx: CanvasRenderingContext2D) => void; clip: (ctx: CanvasRenderingContext2D) => void; }; export declare const CanvasContext: React.Context<CanvasContextValue | undefined>; export declare const useCanvasContext: () => CanvasContextValue; //# sourceMappingURL=use-canvas-context.d.ts.map