-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add patternTransform toObject saving #4626
Conversation
src/pattern.class.js
Outdated
@@ -95,6 +95,7 @@ | |||
repeat: this.repeat, | |||
offsetX: toFixed(this.offsetX, NUM_FRACTION_DIGITS), | |||
offsetY: toFixed(this.offsetY, NUM_FRACTION_DIGITS), | |||
patternTransform: this.patternTransform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patternTransform: this. patternTransform ? this. patternTransform.concat() : null
this allow to avoid sending out a reference to the real matrix that could be changed by other function later.
A sort of shallow protection on mutations.
You do not expect your object to to influence rendering once exported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great version ( at this version you broke video scalling ;))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
@DangerD256 do you think you can make this correction? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the patternTransform export
* Add patternTransform toObject saving * Update pattern.class.js
closes #4625