@shapeshop/react
Version:
A TS hook and component to capture user mouse/stylus inputs to generate svg shapes and paths
8 lines (5 loc) • 314 B
TypeScript
import { MutableRefObject } from 'react';
import { ShapeType, CanvasUpdate } from '@shapeshop/core';
export * from '@shapeshop/core';
declare function useShapeShop<HTMLElement>(ref: MutableRefObject<HTMLElement>, shape: ShapeType, onCanvasUpdate?: (update: CanvasUpdate) => void): void;
export { useShapeShop };