fabric js- extending toObject method with additional property added are missing when saving and loading back to canvas
问题 I have created a fabric group with a rectangle and text. finally Iam adding a custom property 'name' to group class using the below code. Iam serializing the canvas data into JSON using JSON.stringify(canvas) and sending the Json string to java and finally saving the Json string into file , custom property are also saved with the file. var rect1= createRect(104,166,250,15); var text1 = new fabric.Text('hello', { left: rect1.get('left'), top: rect1.get('top'),fontSize: 13 }); var group1=new