I haven’t really used canvas, but saving all the modifications would be the solution.
When the user wants to undo something, clear the canvas and execute every modification except the last one.
↧
How to perform undo task in canvas draw component (typescript)
↧