[Feature]: Undo Redo for EraserBrush
quangduxng opened this issue · comments
QuangDung commented
CheckList
- I agree to follow this project's Code of Conduct
- I have read and followed the Contributing Guide
- I have searched and referenced existing issues, feature requests and discussions
- I am filing a FEATURE request.
Description
I need new feature: undo redo
Current State
`
fabricRef.current.isDrawingMode = true;
fabricRef.current.off("mouse:move");
// @ts-ignore
fabricRef.current.freeDrawingBrush = new fabric.EraserBrush(fabricRef.current);
fabricRef.current.freeDrawingBrush.width = widthPoint;
`
Additional Context
No response
Andrea Bogazzi commented
Undo redo is not something fabricJS ship with.
It has been discussed in various issues how to get there and different way to implement that, please have a search in past issues, closed or open