federico-moretti / canvas-free-drawing

A JavaScript library that allows you to draw in a canvas HTML element, straightforward to use and extremely lightweight.
https://www.federicomoretti.dev/projects/canvas-free-drawing
MIT License
65 stars 11 forks source link

restore() and undo() #12

Closed ybbayram closed 4 years ago

ybbayram commented 4 years ago

Operation cfd.undo() does not work after cfd.restore() . Is there a solution to this problem?

ybbayram commented 4 years ago

The problem was solved by using restore("/assets/images/logo.png") instead of rerstore("https://cdn.pixabay.com/photo/2020/10/23/16/50/woman-5679284__480.jpg"). Thank you.