-
Notifications
You must be signed in to change notification settings - Fork 171
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
Matrix with skew seems to be buggy #12
Comments
Do you think you'll have time to look at this (and the other issues) at some point? |
Oh, I've actually been working on all of these issues during the last 24hours. I'm coming close to a solution. |
Excellent :) 2011/10/18 Louis-Rémi Babé
|
Matrices interpolation is a real pain. I wish getComputedStyle could return transformation components instead of stupid matrix |
My code should be doing these correctly, although finding what it does -janne 2011/10/18 Louis-Rémi Babé
|
Well, I found the solution in your matrixCompose function. I was doing it wrong, and heygrady is doing it wrong as well (he's using the order of the properties returned by his decomposition function: https://github.com/heygrady/transform/blob/master/dist/jquery.transform-0.9.3.js#L1352) Where did you find about this order? |
I think it is state at least here: "Then the resulting decomposed transformation is: -janne 2011/10/18 Louis-Rémi Babé
|
Good, |
Thanks for trying to fix these! The bugs show up if I try to use your lib with Zoomooz. The basic test works now ok, but this one is now broken (It worked with the earlier version): |
Wow, I'll have a look at it. |
(thank you for helping me testing it) |
Ok, I fixed that one, but as I expected, I'm seeing other regressions (in many cases, shape do not rotate in the expected direction). |
:) |
I did have to do some rotation hacks/fixes for Zoomooz as well, see: Function "getTotalRotation" does some rotation magic. If I remember correctly, it maintains the rotation directions that the affine transform would loose (since the affine transform does not care about rotation directions, for example). Function "fixRotationToSameLap" ensures that the rotation is never over one lap. This is probably just zoomooz specific stuff, since normally rotations of over 360degs should be perfectly ok, I guess. |
Ok, we are at 4.7k now, the animation algorithm is now following w3c's spec. |
Having problems with the matrix transformation. I don't know if the problem is in your code or mine, see: The non-matrix one would seem to work ok: |
the plugin throws errors, I'll have a look as soon as I get home. |
Ok, fixed (that one was easy). Can you confirm me that this is the last bug you were encountering? |
Hi, The fix seems to help. We are getting there :). Open problems:
|
Hey,
|
|
Now with the latest version I'm getting again "TypeError: 'null' is not an object (evaluating 'matrix[1]')" |
Which test? I've tried all of your examples and can"t see the error. |
That is surprising, I've probably made some mistake. I'll try again in 2011/10/26 Louis-Rémi Babé
|
There are still some major problems on Safari/Chrome:
Sorry for not having better test cases on these. -janne 2011/10/27 Janne Aukia janne.aukia@gmail.com:
|
(These might be just symptoms of the same issue) |
If you need a better test case, let me know and I'll try to craft something :). |
Thanks for the fix! Now there are only a couple of bugs left on Safari/Chrome:
|
Here is a better test case for the problem on webkit, the issue only occurs with rotations with a certain format. on webkit, the green rectangle is not working: A fix for this is to add "if(skew<0.001) skew = 0;" to the unmatrix, but this is a bit of a hack, see the commented out line in: |
Apparently the problem only occurs with Safari, because this works in chrome. |
Actually, now that I look at this again I believe, that:
The hack fixes both of these problems. Excellent if you can have a look at this :). |
Hi @jaukia, I've just added values rounding in the library, does that solve you problem by any chance? |
I'm sorry I haven't had time to look at this. Also, the code in Zoomooz has already diverged a bit and I don't have currently the time to make it to work with jquery.transform.js. So, feel free to close this issue. Excellent work you've been doing! |
See the following demo (angles of the resulting skew differ):
http://janne.aukia.com/htmltests/louisremi-tf-test/test-1.html
The text was updated successfully, but these errors were encountered: