diff --git a/src/tiny-image-editor/src/components/Draw.tsx b/src/tiny-image-editor/src/components/Draw.tsx index 120fee8108107371289d9ce6051f4ee60cb75352..5729bb25b7af39b08dd39db4b45af0ed03a7a4b8 100644 --- a/src/tiny-image-editor/src/components/Draw.tsx +++ b/src/tiny-image-editor/src/components/Draw.tsx @@ -22,7 +22,9 @@ export const useDraw = () => { return; } canvas.freeDrawingBrush = new fabric['PencilBrush'](canvas); + let brush = canvas.freeDrawingBrush; + console.log(`canvas.freeDrawingBrush`,brush,canvas.freeDrawingBrush) brush.color = paintConfigValue.current.color; if (brush.getPatternSrc) { brush.source = brush.getPatternSrc.call(brush);