Replies: 2 comments 7 replies
-
Are you serializing a custom object or one that comes from fabric? |
Beta Was this translation helpful? Give feedback.
-
I'm encountering this issue as well after following the guidelines in the documentation: https://fabricjs.com/docs/using-custom-properties/ my example is relatively simple and the IDE correctly detects the id and name properties set using the docs. However, when calling toObject or toJson the properties are not included in the serialisation. The documentation suggests it should be. Am I missing a step? `` |
Beta Was this translation helpful? Give feedback.
-
I'm having troubles trying to add custom properties to my serialized object. I have followed the demo in the new website to declare module 'fabric', typing the object with the custom properties in the interface and adding this line after: FabricObject.customProperties = ['name', 'id'];.
However, when I serialized the object, it is still not giving me those properties that I added. Any thoughts or recommendations?
Beta Was this translation helpful? Give feedback.
All reactions