What format can allow me to save my drawing on canvas in file (not in the image file), and allow me to restore back for future editing, means the file can remember all the position of the object add into canvas and allow me to edit it in the future?
MY WORK
this is my work for now, just need a save button...
You can save it as JSON & restore back for future editing.
Sample Code:
var canvas = json = '';
json = canvas.toJSON();
canvas.loadFromJSON(json, CallBack, function(o, object) {
canvas.setActiveObject(object);
});
function CallBack() {
canvas.renderAll();
canvas.calcOffset();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With