-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix skew handling #1006
base: master
Are you sure you want to change the base?
Fix skew handling #1006
Conversation
Hi @msand - could you please provide a little more info on this pull request? What specific problems does it fix? How have you tested it? Does it change any outputs from Matrix2D? Thanks! |
It changes the output for any use of skewX and/or skewY in append/prependTransform, and the skew method, as they were doing something quite different than skewing. Additionally, it removes redundant computations when using them. |
I did some quick testing, and this gives wildly different results from the current code. This likely breaks compatibility with Animate (which is what the original Matrix2D was designed to facilitate), and will also break existing projects using EaselJS. I'll try to do a test in the next little bit against Animate to confirm it's an issue. My understanding of this PR is that it's intended to align our implementation with CSS transforms? I think that's worthwhile, but we'd need a way to approach that so that it doesn't break old content or compatibility with Animate. |
This came up before in #548 where you suggested possibly creating css aligned versions of the methods, such as |
Ah, right! I knew this seemed familiar. Thanks @MannyC for the reminder |
I'd be open to a modified PR that took that approach (providing CSS compatible methods) |
Well when I was stripping it down, I noticed it had different results from the transform attribute from the svg spec, and that the redundant multiplications could be simplified away. So, I thought I would make a quick pr here to at least raise awareness among the maintainers here, in case you would like to act on it somehow. I'm not currently dependent on Easel changing these, just thought I'd share my observations. And, in general, it would be nice to have at least. |
No description provided.