vue-scratchable
vue-scratchable copied to clipboard
How to save the state of the scratched area?
Hello!
I'm wondering if there are any ways to save the scratched area in the database somehow?
It should be able to save the response of getImageData() (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData) in a database and restore its state using putImageData() (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)
However I'm currently working on a native WebComponent to replace the framework reliant Vue component in the near future. I added this as a feature on that component's list 😄