UNPKG

dotting

Version:

Dotting is a pixel art editor component library for react

13 lines (12 loc) 570 B
import { MutableRefObject } from "react"; import { BRUSH_PATTERN_ELEMENT, BrushTool } from "../components/Canvas/types"; import { DottingRef } from "../components/Dotting"; declare const useBrush: (ref: MutableRefObject<DottingRef | null>) => { changeBrushColor: (brushColor: string) => void; changeBrushTool: (brushMode: BrushTool) => void; changeBrushPattern: (brushPattern: Array<Array<BRUSH_PATTERN_ELEMENT>>) => void; brushTool: BrushTool; brushColor: string; brushPattern: BRUSH_PATTERN_ELEMENT[][]; }; export default useBrush;