react-scratch-ticket
Version:
This is a scratch ticket component, basic on React
23 lines • 829 B
TypeScript
/**
* @description brushType
*/
export type BrushType = 'circle' | 'square';
interface Props {
brushSize: number;
brushType: BrushType;
finishPercent: number;
maskingLayerImg?: string;
maskingLayerColor: string;
animationDuration: number;
onInitDone: () => void;
onComplete: () => void;
onResetDone: () => void;
}
declare const useReactScratchTicketController: ({ brushSize, brushType, finishPercent, maskingLayerImg, maskingLayerColor, animationDuration, onInitDone, onComplete, onResetDone }: Props) => {
isInitialized: boolean;
reactScratchTicketRef: import("react").RefObject<HTMLCanvasElement | null>;
resetHandler: () => void;
cleanCardHandler: () => void;
};
export default useReactScratchTicketController;
//# sourceMappingURL=useReactScratchTicketController.d.ts.map