-
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
Matrix2D not translating the same as previous versions #539
Comments
I have a same problem (http://community.createjs.com/discussions/easeljs/17712-matrix2d-in-080), Looks like some matrix methods works different in 0.8.0. As a result, I will use in my project matrix class from 0.7.1 to calculations. |
There were some changes made to the Matrix2D class and then later reverted. Looks like the translate method was accidentally altered during the commit referenced above. |
See PR #540 |
@MannyC Thanks for confirming and taking care of that! |
The You should be able to get similar results by either swapping the order of your method calls, or using append/prependTransform, or appendMatrix / prependMatrix. Here's a quick sketch that shows this in action: It may be worthwhile for us to add Apologies for the confusion. Please do always review the VERSIONS file to see CRITICAL changes that may affect your project, though in this case it really isn't as informative as it should be - I'll address that. |
@MannyC if you feel like taking a stab at the
|
I updated VERSIONS to have more appropriate info on this topic. |
Excellent, thanks for the clarification and quick responses from you both. I can confirm that taking those changes into account has resolved the issue. |
Okay, I'll have to do some research on this. I would be worried that by interpreting |
Great! Apologies we didn't do a better job communicating the change! We try hard to minimize breaking changes, but this was a time where we realized it had to be done sometime, and we may as well rip the bandaid off sooner than later. It was actually one of the changes that contributed to the choice to release as v0.8.0 instead of v1.0 this time around. |
@MannyC - cool. I definitely appreciate any thoughts you have. I believe we are now consistent with Context2D and CSS (ie. issuing transformations in the same order will give the same visual results). Flash on the other hand is the opposite (translate prepends). This is definitely a tricky topic, since there doesn't seem to be any industry standard on nomenclature (or even matrix orientation), and to be fair, I really don't consider myself an expert. |
I wrote the article, "Critical changes of the Matrix2D's transform methods in the EaselJS 0.8.0", to show some snippets to get the same results as old versions with version 0.8.0. |
I'm specifically referring to this commit and line:
EaselJS/src/easeljs/geom/Matrix2D.js
Line 392 in 3ed3b89
When I revert the
translate
method to what it was in previous versions things display correctly:Here is the bit of code we're using, that given the same data input produces different matrix values between versions:
Any thoughts on why this might be happening?
The text was updated successfully, but these errors were encountered: