You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toJSON examples are still referencing additional properties and should be updated to reflect the recent change, they don't support additional properties anymore indeed.
The text was updated successfully, but these errors were encountered:
Our toObject function accepts a parameter that is an array of properties, while toJSON can't don't that because the first argument is defined by javascript specs.
our examples in the codebase treated toObject as toJson, so you will find in the codebase a string like this:
* var json = canvas.toJSON(['lockMovementX', 'lockMovementY', 'lockRotation', 'lockScalingX', 'lockScalingY']);
where this is wrong.
it can either be:
* var json = canvas.toObject(['lockMovementX', 'lockMovementY', 'lockRotation', 'lockScalingX', 'lockScalingY']);
or
* var json = canvas.toJSON();
So that wrong toJSON example needs to be deleted and if other are found need to be deleted as well.
toJSON examples are still referencing additional properties and should be updated to reflect the recent change, they don't support additional properties anymore indeed.
The text was updated successfully, but these errors were encountered: