-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add 3d rotation to View #5950
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 3d rotation to View #5950
Conversation
|
Please sign CLA at http://www.nativescript.org/cla |
|
CLA signature found, happy contributing! |
|
Hi, thanks for the effort. |
|
thanks, I have updated it to follow css api. |
| /** | ||
| * 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
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. |
|
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. |
|
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 :) |
|
Unfortunately I don’t have time either, but it would be a great addition! |
|
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 (2) Animating the (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. |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
|
Any progress on this? Would be great to have! |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
|
@madsb it looks like it's only 3 of us who like to have this feature :D |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hamdi Wanis.
|
|
@hamdiwanis I'd like this feature as well. Can you update your gitconfig per the |
In case @hamdiwanis could not continue working on this PR, would you consider forking the work and taking over it in a new PR? |
|
@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. |
|
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. |
|
closing in favor of #8136 |
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].