-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Add 3D rotation to view - takeover of PR# 5950 #8136
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
Conversation
Whew this was a doozie. Lots of merge conflicts that had to be manually merged. Please take a look at "I need HELP with the following" above, as my expertise on graphics is almost non-existent and my time is limited ATM. |
@@ -497,9 +558,6 @@ export class Animation extends AnimationBase { | |||
animation.target[animation.property] = value; | |||
}; | |||
break; | |||
case Properties.rotate: |
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.
Spring was removed here - I think this makes sense w/r/t a 3d rotation. If not could use some help from the community implementing.
@@ -454,6 +477,44 @@ export class Animation extends AnimationBase { | |||
} | |||
} | |||
|
|||
private static _createGroupAnimation(args: AnimationInfo, animation: PropertyAnimation) { | |||
let groupAnimation = new CAAnimationGroup(); |
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.
This constructor call is invalid. needs to pass an obj with an o
attribute of type NSCoder
. I have no idea how to do this, please help...
Hey @rynop About testing - there is a test project in |
Thanks so much @vakrilov . Also thanks for fixing the I was aware of the 3d rotation button in the test project, just didn't know if it was a NS PR requirement to have an automated test. You see the error in the I'll run the tests in the unit-test app and report back. |
I verified all E2E tests (css animations, xyz rotation from code) and tested for regression bugs on existing Updated unit tests. Android unit tests passing. I'm stuck on iOS tests, could use some help. The 7 tests that fail are all related:
They all occur in Lastly, unit tests don't pass for iOS on current master (5b647bd ATM), so therefore do not pass on rynop:master. Not sure how to proceed. Here are failures, again iOS only:
|
Hey @rynop
Here is the related place in the code. About the unit tests - they seem to be OK in master. About the failing ANIMATION tests - they might indicate a real problem. Maybe some of the transformation matrix calculations are not in tact. |
Yup the CSS msg was my mistake, was not causing failure. Re: your error - looks like you ran on Android. Did you try with my latest commits? I fixed test cases and everything passes on Android for me. This is further confirmed by @PanayotCankov would you be able to provide some help here? I know its been 3 years since you touched this code but your the only active Github acct I can find that has modified this method... One iOS unit test failure is preventing this PR from merge. This PR adds rotation around x and y axis - the existing rotation (around z axis) should be unchanged. The unit test errors are raised in To save you some time re-producing here is a copy/paste:
Will produce these errors:
You will also get I think this function looks pretty cool - so any help to get it into NS is much appreciated :) |
I debugged the 1st failing call stack on The test explicitly sets a non-zero translation:
So I'm pretty confident the test case in My proposal is to remove _getTransformMismatchErrorMessage all together because it is a) not doing what it was intended to do (and never has) and b) I have no idea how to get the Thoughts? FWIW this method is only called during animation tests and only on iOS. I've tested the functionality pretty thoroughly on both iOS and Android so I'm fairly confident there are no regressions here. |
After much learning/testing/debugging/investigation I am highly confident that the iOS Affine Transform verification run during animation unit tests have been broken/invalid for a long time. My latest Unit tests now pass on android and ios. @vakrilov or @manoldonev can you please consider merging? LMK if you wan't me to squash all commits into one or if they are useful for auditing (I'd lean to this as there are some commits not directly related to x,y rotation, but def needed) |
I was wrong, For a reason I can not figure out, view.nativeViewProtected.transform is always My hunch is the introduction of |
Hey @rynop - sorry for the silence last few days - we've been preparing the 6.3 release. |
No worries. I just backed out some changes in my last commit. Thanks. |
* feat(css): Added optional css-tree parser * test: css-tree parser compat tests * test: more css-tree compat tests
…ativeScript#8041) * Added iOS specific height and width attributes to ShowModalOptions * Set the height and width of the popup dialog to the presenting controller * dialog options ios attributes presentationStyle, height & width are made optional * Updated NativeScript.api.md for public API changes * Update with git properties * Public API * CLA update
Hey @rynop
|
Thanks for your help - I never would have figured this out. Whats next to get this PR merged? Blocked on review request, but I don't have perms to request review. That something you request? |
test |
I have triggered the CI builds. |
test |
test animations |
Hey @rynop
Apart from that, everything looks green. The plan is to fix this issue and merge. |
@vakrilov thanks for all the TLC with this. I started a new job so don't have the time ATM to spend on it, so I appreciate you taking it to the finish line like this. |
test animations |
test animations |
PR Checklist
What is the current behavior?
This is an attempted takeover for stalled #5950 . Until this PR, NS only supported rotation around the Z axis.
What is the new behavior?
View can now rotate around x, y or z axis.
Fixes/Implements/Closes #5950
BREAKING CHANGES:
spring
animation no longer supported with rotate.I need HELP with the following
3d graphics is not my area of expertise, so I need help with the following:
o
attribute of typeNSCoder
. I have no idea how to do this, please help...