Skip to content

Commit

Permalink
fix: expose data to outside of the component
Browse files Browse the repository at this point in the history
  • Loading branch information
amir78729 committed Aug 22, 2024
1 parent 4aa168d commit 0b4b7c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DaftarNaghashi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ const DrawingComponent = ({
ctxRef.current.putImageData(imageData, 0, 0);
saveHistory();
}
onDrawing?.(canvasRef.current);
};

const setLineWidth = (value: number) => {
Expand Down

0 comments on commit 0b4b7c7

Please sign in to comment.