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
chore: first stage of rewriting animations #9892
Open
farfromrefug
wants to merge
431
commits into
NativeScript:main
Choose a base branch
from
Akylas:animations_rebuilt
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # packages/core/color/color-common.ts # packages/core/color/index.d.ts
# Conflicts: # .eslintrc.json # packages/core/bundle-entry-points.ts # packages/core/ui/core/bindable/index.ts # packages/core/ui/styling/style-scope.ts # packages/core/xml/index.ts # packages/webpack5/src/configuration/base.ts # packages/webpack5/src/helpers/index.ts
allow Color constructor to take hsl/hsv
This causes unecessary `requestLayout`
# Conflicts: # apps/automated/package.json # apps/toolbox/package.json # apps/ui/package.json # package.json # packages/core/application/index.android.ts # packages/core/application/index.ios.ts # packages/core/package.json # packages/core/platforms/android/native-api-usage.json # packages/core/platforms/ios/TNSWidgets.xcframework/Info.plist # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets # packages/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets # packages/core/ui/text-base/text-base-common.ts # packages/webpack/package.json # packages/webpack/project.json
…an N parent We can do this on both platforms. I could prevent memory leaks
# Conflicts: # packages/core/package.json
It could prevent errors when the client would be called while the runtime is dead NativeScript/android#1667
…change/augment delegates. also unset delegates in disposeNativeView to prevent memory leak
# Conflicts: # packages/core/ui/animation/animation-common.ts # packages/core/ui/animation/index.ios.ts # packages/core/ui/core/view/index.ios.ts # packages/core/ui/gestures/index.ios.ts # packages/core/ui/page/index.ios.ts # packages/core/ui/styling/style-scope.ts # packages/core/ui/text-base/index.ios.ts
…_rebuilt # Conflicts: # packages/core/ui/animation/index.android.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
This is a draft of rewriting the Animation system in N:
Animation
unaware of which properties can be animatedbackgroundColor
(which means going back to JS in every single animation step!)auto
sizeUIViewPropertyAnimator
. My issue right now is how to animate custom properties like text color.TODO:
View
subclass to define custom property animation handlingCSSProperty
andCSSAnimationProperty
? have to figure out the real difference between the 2 as there is no inheritance :s Merging would allow any prop to be animated through css