[Vuejs]-How to add attribute in fabric objects

0👍

FabricJS allows you to pass an array of additional properties into the toJSON() method to include them in the serialization.

You can use it like this:

canvas.toJSON(['editable']);

See http://fabricjs.com/docs/fabric.Canvas.html#toJSON

Leave a comment