| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Please sign CLA at http://www.nativescript.org/cla |
Sorry, something went wrong.
|
CLA signature found, happy contributing! |
Sorry, something went wrong.
|
Hi, thanks for the effort. |
Sorry, something went wrong.
|
thanks, I have updated it to follow css api. |
Sorry, something went wrong.
| /** | ||
| * Defines a point in 3d space (x, y and z) for rotation in 3d animations. | ||
| */ | ||
| export interface Point { |
There was a problem hiding this comment.
I would name it something like Point3D or something similar so that it is clear that this is not a 2D point but three dimensional.
Sorry, something went wrong.
|
This is awesome. Would it be difficult to add 3D translation to this PR? Or even make it possible to apply a 3D transformation matrix on a View? Seems like it would be closely related to these changes. |
Sorry, something went wrong.
|
It’s also not obvious the what the euler order is, so it should probably be documented. A transformation matrix would be least ambiguous of course, and then you also get the ability to apply a shear transformation to a View. |
Sorry, something went wrong.
|
Thanks Gheric, you are right and i was already thinking about adding transformation matrix option but didn't had time so if you want to help i will appreciate it :) |
Sorry, something went wrong.
|
Unfortunately I don’t have time either, but it would be a great addition! |
Sorry, something went wrong.
|
Hey @hamdiwanis We did a through code review and it turns out there are a quite a few areas of the code that are affected by 3d rotations. Over the last few days I've:
What's LeftI'll try to summarize the work that remains to be done:
(1) Noticed that only one of the rotate/rotateX/rotateY properties can be applied at a time. For example rotate is the strongest one: if it is set, the other two are ignored. Here is the relevant code that needs to be changed: https://github.com/NativeScript/NativeScript/pull/5950/files#diff-2775a71872c1630de8108bf058a1628eR275 (2) Animating the rotateX/rotateY properties does not work in IOS. I have left some TODO: comments in animations.ios.ts of the places of the code that will have to be extended. (3) When creating keyframe animations with multiple transforms - we rely on creating and decomposing a matrix to calculate the final transformation. This is currently not handling 3d rotations. You can observe the bug if you define the keyframe like that. I'll be very happy if you or @speigg or another contributor can find a way to move this forward and ultimately get this merged. |
Sorry, something went wrong.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
Sorry, something went wrong.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
Sorry, something went wrong.
|
Any progress on this? Would be great to have! |
Sorry, something went wrong.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
Sorry, something went wrong.
|
@madsb it looks like it's only 3 of us who like to have this feature :D |
Sorry, something went wrong.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
Sorry, something went wrong.
|
@hamdiwanis I'd like this feature as well. Can you update your gitconfig per the cla-bot so this can get by the CI? |
Sorry, something went wrong.
In case @hamdiwanis could not continue working on this PR, would you consider forking the work and taking over it in a new PR? |
Sorry, something went wrong.
|
@manoldonev sure I'll give it a stab next week. I won't have much time to dev on it but I can get it caught up to master and do some code cleanup. |
Sorry, something went wrong.
|
Whew that took longer than I thought. @manoldonev I've done what you asked - now I need some help ;) Please see #8136 for what I need help with. @etabakov @madsb @vakrilov @speigg @hshristov |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Checklist
What is the current behavior?
View can only rotate around z axis
What is the new behavior?
View can now rotate around x, y or z
Fixes/Implements/Closes #[Issue Number].