Skip to content

Is it possible to undo erasing? #7582

Answered by ShaMan123
egemenerd asked this question in Q&A
Discussion options

You must be logged in to vote

@egemenerd it is possible.
The easiest way that comes to mind is listening to erasing:end event.
It provides enough context to make these decisions.
Take a look at the demo http://fabricjs.com/erasing
Then you can remove the paths from the objects' clip path.
BTW I think I'm going to change how eraser interacts with object, freeing it for clipPath, but in the near future

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ShaMan123
Comment options

You must be logged in to vote
1 reply
@ShaMan123
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ShaMan123
Comment options

@ShaMan123
Comment options

@davidanquetin
Comment options

@ShaMan123
Comment options

@davidanquetin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #7556 on January 06, 2022 07:57.