react-native-reanimated 2.3.3 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +72 -0
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +30 -1
- package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +64 -39
- package/Common/cpp/Tools/RuntimeDecorator.cpp +2 -0
- package/Common/cpp/headers/AnimatedSensor/AnimatedSensorModule.h +41 -0
- package/Common/cpp/headers/NativeModules/NativeReanimatedModule.h +14 -0
- package/Common/cpp/headers/NativeModules/NativeReanimatedModuleSpec.h +14 -0
- package/Common/cpp/headers/SharedItems/MutableValue.h +4 -1
- package/Common/cpp/headers/SharedItems/ShareableValue.h +3 -0
- package/Common/cpp/headers/SharedItems/ValueWrapper.h +3 -0
- package/Common/cpp/headers/Tools/PlatformDepMethodsHolder.h +11 -0
- package/Common/cpp/headers/Tools/RuntimeDecorator.h +2 -0
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/CMakeLists.txt +198 -0
- package/android/README.md +15 -0
- package/android/build.gradle +686 -73
- package/android/empty.cpp +1 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +25 -0
- package/android/gradlew +234 -0
- package/android/gradlew.bat +89 -0
- package/android/react-native-reanimated-64-hermes.aar +0 -0
- package/android/react-native-reanimated-64-jsc.aar +0 -0
- package/android/react-native-reanimated-65-hermes.aar +0 -0
- package/android/react-native-reanimated-65-jsc.aar +0 -0
- package/android/react-native-reanimated-66-hermes.aar +0 -0
- package/android/react-native-reanimated-66-jsc.aar +0 -0
- package/android/react-native-reanimated-67-hermes.aar +0 -0
- package/android/react-native-reanimated-67-jsc.aar +0 -0
- package/android/react-native-reanimated-68-hermes.aar +0 -0
- package/android/react-native-reanimated-68-jsc.aar +0 -0
- package/android/rnVersionPatch/62/layoutReanimation/ReanimatedNativeHierarchyManager.java +412 -0
- package/android/rnVersionPatch/62/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/63/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/64/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/65/.gitkeep +0 -0
- package/android/rnVersionPatch/66/.gitkeep +0 -0
- package/android/rnVersionPatch/67/.gitkeep +0 -0
- package/android/rnVersionPatch/68/.gitkeep +0 -0
- package/android/rnVersionPatch/backup/.gitkeep +0 -0
- package/android/settings.gradle +1 -0
- package/android/spotless.gradle +9 -0
- package/android/src/{AndroidManifest.xml → main/AndroidManifest.xml} +0 -0
- package/android/src/main/cpp/AndroidErrorHandler.cpp +42 -0
- package/android/src/main/cpp/AndroidLogger.cpp +27 -0
- package/android/src/main/cpp/AndroidScheduler.cpp +59 -0
- package/android/src/main/cpp/JNIHelper.cpp +59 -0
- package/android/src/main/cpp/LayoutAnimations.cpp +103 -0
- package/android/src/main/cpp/NativeProxy.cpp +327 -0
- package/android/src/main/cpp/OnLoad.cpp +17 -0
- package/android/src/main/cpp/TurboModule.cpp +44 -0
- package/android/src/main/cpp/headers/AndroidErrorHandler.h +30 -0
- package/android/src/main/cpp/headers/AndroidLogger.h +16 -0
- package/android/src/main/cpp/headers/AndroidScheduler.h +41 -0
- package/android/src/main/cpp/headers/JNIHelper.h +30 -0
- package/android/src/main/cpp/headers/LayoutAnimations.h +42 -0
- package/android/src/main/cpp/headers/NativeProxy.h +170 -0
- package/android/src/main/cpp/headers/TurboModule.h +70 -0
- package/android/src/main/java/com/facebook/react/uimanager/UIManagerReanimatedHelper.java +15 -0
- package/android/src/main/java/com/swmansion/common/GestureHandlerStateManager.java +5 -0
- package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +8 -0
- package/android/src/main/java/com/swmansion/reanimated/CopiedEvent.java +43 -0
- package/android/src/main/java/com/swmansion/reanimated/MapUtils.java +26 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeMethodsHelper.java +117 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +285 -0
- package/android/src/main/java/com/swmansion/reanimated/NodesManager.java +682 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java +29 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java +251 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java +96 -0
- package/android/src/main/java/com/swmansion/reanimated/Scheduler.java +51 -0
- package/android/src/main/java/com/swmansion/reanimated/UpdateContext.java +11 -0
- package/android/src/main/java/com/swmansion/reanimated/Utils.java +32 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +517 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/LayoutAnimations.java +56 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/NativeMethodsHolder.java +11 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedNativeHierarchyManager.java +410 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java +292 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/Snapshot.java +121 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ViewHierarchyObserver.java +12 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/AlwaysNode.java +29 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java +87 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/BlockNode.java +24 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/CallFuncNode.java +49 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ClockNode.java +38 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ClockOpNode.java +73 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ConcatNode.java +36 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/CondNode.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/DebugNode.java +33 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/EventNode.java +83 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/FinalNode.java +5 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/FunctionNode.java +20 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/JSCallNode.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/Node.java +139 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/NoopNode.java +37 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/OperatorNode.java +377 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ParamNode.java +71 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/PropsNode.java +153 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/SetNode.java +32 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/StyleNode.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/TransformNode.java +84 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ValueNode.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorContainer.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorListener.java +31 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorType.java +35 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/ChangeTransition.java +84 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/SaneSidePropagation.java +25 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/Scale.java +86 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/TransitionModule.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/TransitionUtils.java +161 -0
- package/ios/LayoutReanimation/REAAnimationsManager.h +1 -1
- package/ios/LayoutReanimation/REAAnimationsManager.m +18 -4
- package/ios/REAModule.m +8 -9
- package/ios/REANodesManager.h +4 -1
- package/ios/REANodesManager.m +75 -3
- package/ios/native/NativeMethods.h +1 -1
- package/ios/native/NativeProxy.mm +85 -5
- package/ios/sensor/ReanimatedSensor.h +21 -0
- package/ios/sensor/ReanimatedSensor.m +169 -0
- package/ios/sensor/ReanimatedSensorContainer.h +13 -0
- package/ios/sensor/ReanimatedSensorContainer.m +41 -0
- package/ios/sensor/ReanimatedSensorType.h +7 -0
- package/lib/ConfigHelper.js +2 -2
- package/lib/createAnimatedComponent.js +3 -4
- package/lib/reanimated1/core/AnimatedFunction.js +1 -1
- package/lib/reanimated1/derived/interpolate.js +2 -4
- package/lib/reanimated2/Colors.js +3 -98
- package/lib/reanimated2/Easing.js +5 -0
- package/lib/reanimated2/NativeMethods.js +15 -5
- package/lib/reanimated2/NativeReanimated/NativeReanimated.js +25 -12
- package/lib/reanimated2/NativeReanimated/index.js +2 -6
- package/lib/reanimated2/ViewDescriptorsSet.js +2 -2
- package/lib/reanimated2/animation/styleAnimation.js +2 -1
- package/lib/reanimated2/core.js +30 -24
- package/lib/reanimated2/globals.d.ts +6 -0
- package/lib/reanimated2/hook/index.js +1 -0
- package/lib/reanimated2/hook/useAnimatedGestureHandler.js +1 -2
- package/lib/reanimated2/hook/useAnimatedSensor.js +66 -0
- package/lib/reanimated2/hook/useAnimatedStyle.js +31 -14
- package/lib/reanimated2/hook/utils.js +14 -11
- package/lib/reanimated2/index.js +2 -0
- package/lib/reanimated2/interpolateColor.js +98 -0
- package/lib/reanimated2/interpolation.js +1 -1
- package/lib/reanimated2/jestUtils.js +9 -4
- package/lib/reanimated2/js-reanimated/JSReanimated.js +24 -3
- package/lib/reanimated2/js-reanimated/commonTypes.js +1 -0
- package/lib/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +8 -0
- package/lib/reanimated2/layoutReanimation/animationBuilder/Keyframe.js +2 -1
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Bounce.js +32 -42
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Fade.js +20 -38
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.js +32 -44
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js +8 -16
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js +6 -10
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Roll.js +8 -12
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +20 -36
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.js +16 -20
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Stretch.js +8 -12
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +32 -48
- package/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +22 -18
- package/lib/reanimated2/mock.js +3 -2
- package/mock.js +6 -4
- package/package.json +44 -36
- package/plugin.js +3 -0
- package/react-native-reanimated.d.ts +102 -15
- package/src/ConfigHelper.ts +4 -4
- package/src/createAnimatedComponent.tsx +3 -3
- package/src/reanimated1/core/AnimatedFunction.js +1 -1
- package/src/reanimated1/derived/interpolate.js +2 -4
- package/src/reanimated2/Colors.ts +8 -151
- package/src/reanimated2/Easing.ts +11 -0
- package/src/reanimated2/NativeMethods.ts +19 -6
- package/src/reanimated2/NativeReanimated/NativeReanimated.ts +42 -14
- package/src/reanimated2/NativeReanimated/index.ts +2 -8
- package/src/reanimated2/ViewDescriptorsSet.ts +2 -3
- package/src/reanimated2/animation/commonTypes.ts +44 -40
- package/src/reanimated2/animation/decay.ts +1 -1
- package/src/reanimated2/animation/delay.ts +2 -16
- package/src/reanimated2/animation/index.ts +8 -8
- package/src/reanimated2/animation/repeat.ts +2 -12
- package/src/reanimated2/animation/sequence.ts +3 -10
- package/src/reanimated2/animation/spring.ts +1 -1
- package/src/reanimated2/animation/styleAnimation.ts +11 -25
- package/src/reanimated2/animation/timing.ts +4 -2
- package/src/reanimated2/animation/util.ts +22 -20
- package/src/reanimated2/commonTypes.ts +68 -1
- package/src/reanimated2/component/FlatList.tsx +2 -1
- package/src/reanimated2/core.ts +35 -29
- package/src/reanimated2/globals.d.ts +6 -0
- package/src/reanimated2/hook/commonTypes.ts +5 -0
- package/src/reanimated2/hook/index.ts +1 -0
- package/src/reanimated2/hook/useAnimatedGestureHandler.ts +1 -2
- package/src/reanimated2/hook/useAnimatedRef.ts +1 -5
- package/src/reanimated2/hook/useAnimatedSensor.ts +91 -0
- package/src/reanimated2/hook/useAnimatedStyle.ts +35 -16
- package/src/reanimated2/hook/utils.ts +20 -18
- package/src/reanimated2/index.ts +2 -0
- package/src/reanimated2/interpolateColor.ts +178 -0
- package/src/reanimated2/interpolation.ts +2 -6
- package/src/reanimated2/jestUtils.ts +9 -4
- package/src/reanimated2/js-reanimated/JSReanimated.ts +28 -6
- package/src/reanimated2/js-reanimated/Mapper.ts +1 -1
- package/src/reanimated2/js-reanimated/MapperRegistry.ts +1 -1
- package/src/reanimated2/js-reanimated/commonTypes.ts +51 -0
- package/src/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +13 -0
- package/src/reanimated2/layoutReanimation/animationBuilder/Keyframe.ts +2 -3
- package/src/reanimated2/layoutReanimation/defaultAnimations/Bounce.ts +51 -21
- package/src/reanimated2/layoutReanimation/defaultAnimations/Fade.ts +40 -10
- package/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +48 -12
- package/src/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.ts +8 -2
- package/src/reanimated2/layoutReanimation/defaultAnimations/Roll.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +32 -8
- package/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +32 -10
- package/src/reanimated2/layoutReanimation/defaultAnimations/Stretch.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +64 -16
- package/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +32 -21
- package/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +2 -1
- package/src/reanimated2/mock.ts +3 -2
- package/src/reanimated2/utils.ts +1 -1
- package/android/react-native-reanimated-63-hermes.aar +0 -0
- package/android/react-native-reanimated-63-jsc.aar +0 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedProxyPackage.java +0 -15
- package/libSo/fbjni/jni/arm64-v8a/libfbjni.so +0 -0
- package/libSo/fbjni/jni/armeabi-v7a/libfbjni.so +0 -0
- package/libSo/fbjni/jni/x86/libfbjni.so +0 -0
- package/libSo/fbjni/jni/x86_64/libfbjni.so +0 -0
|
@@ -7,6 +7,7 @@ export class RotateInDownLeft extends ComplexAnimationBuilder {
|
|
|
7
7
|
const [animation, config] = this.getAnimationAndConfig();
|
|
8
8
|
const delay = this.getDelay();
|
|
9
9
|
const callback = this.callbackV;
|
|
10
|
+
const initialValues = this.initialValues;
|
|
10
11
|
return (values) => {
|
|
11
12
|
'worklet';
|
|
12
13
|
return {
|
|
@@ -18,14 +19,11 @@ export class RotateInDownLeft extends ComplexAnimationBuilder {
|
|
|
18
19
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
19
20
|
],
|
|
20
21
|
},
|
|
21
|
-
initialValues: {
|
|
22
|
-
opacity: 0,
|
|
23
|
-
transform: [
|
|
22
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
24
23
|
{ rotate: '-90deg' },
|
|
25
24
|
{ translateX: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
26
25
|
{ translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
26
|
+
] }, initialValues),
|
|
29
27
|
callback: callback,
|
|
30
28
|
};
|
|
31
29
|
};
|
|
@@ -43,6 +41,7 @@ export class RotateInDownRight extends ComplexAnimationBuilder {
|
|
|
43
41
|
const [animation, config] = this.getAnimationAndConfig();
|
|
44
42
|
const delay = this.getDelay();
|
|
45
43
|
const callback = this.callbackV;
|
|
44
|
+
const initialValues = this.initialValues;
|
|
46
45
|
return (values) => {
|
|
47
46
|
'worklet';
|
|
48
47
|
return {
|
|
@@ -54,14 +53,11 @@ export class RotateInDownRight extends ComplexAnimationBuilder {
|
|
|
54
53
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
55
54
|
],
|
|
56
55
|
},
|
|
57
|
-
initialValues: {
|
|
58
|
-
opacity: 0,
|
|
59
|
-
transform: [
|
|
56
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
60
57
|
{ rotate: '90deg' },
|
|
61
58
|
{ translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
62
59
|
{ translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
63
|
-
],
|
|
64
|
-
},
|
|
60
|
+
] }, initialValues),
|
|
65
61
|
callback: callback,
|
|
66
62
|
};
|
|
67
63
|
};
|
|
@@ -79,6 +75,7 @@ export class RotateInUpLeft extends ComplexAnimationBuilder {
|
|
|
79
75
|
const [animation, config] = this.getAnimationAndConfig();
|
|
80
76
|
const delay = this.getDelay();
|
|
81
77
|
const callback = this.callbackV;
|
|
78
|
+
const initialValues = this.initialValues;
|
|
82
79
|
return (values) => {
|
|
83
80
|
'worklet';
|
|
84
81
|
return {
|
|
@@ -90,14 +87,11 @@ export class RotateInUpLeft extends ComplexAnimationBuilder {
|
|
|
90
87
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
91
88
|
],
|
|
92
89
|
},
|
|
93
|
-
initialValues: {
|
|
94
|
-
opacity: 0,
|
|
95
|
-
transform: [
|
|
90
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
96
91
|
{ rotate: '90deg' },
|
|
97
92
|
{ translateX: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
98
93
|
{ translateY: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
99
|
-
],
|
|
100
|
-
},
|
|
94
|
+
] }, initialValues),
|
|
101
95
|
callback: callback,
|
|
102
96
|
};
|
|
103
97
|
};
|
|
@@ -115,6 +109,7 @@ export class RotateInUpRight extends ComplexAnimationBuilder {
|
|
|
115
109
|
const [animation, config] = this.getAnimationAndConfig();
|
|
116
110
|
const delay = this.getDelay();
|
|
117
111
|
const callback = this.callbackV;
|
|
112
|
+
const initialValues = this.initialValues;
|
|
118
113
|
return (values) => {
|
|
119
114
|
'worklet';
|
|
120
115
|
return {
|
|
@@ -126,14 +121,11 @@ export class RotateInUpRight extends ComplexAnimationBuilder {
|
|
|
126
121
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
127
122
|
],
|
|
128
123
|
},
|
|
129
|
-
initialValues: {
|
|
130
|
-
opacity: 0,
|
|
131
|
-
transform: [
|
|
124
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
132
125
|
{ rotate: '-90deg' },
|
|
133
126
|
{ translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
134
127
|
{ translateY: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
135
|
-
],
|
|
136
|
-
},
|
|
128
|
+
] }, initialValues),
|
|
137
129
|
callback: callback,
|
|
138
130
|
};
|
|
139
131
|
};
|
|
@@ -151,6 +143,7 @@ export class RotateOutDownLeft extends ComplexAnimationBuilder {
|
|
|
151
143
|
const [animation, config] = this.getAnimationAndConfig();
|
|
152
144
|
const delay = this.getDelay();
|
|
153
145
|
const callback = this.callbackV;
|
|
146
|
+
const initialValues = this.initialValues;
|
|
154
147
|
return (values) => {
|
|
155
148
|
'worklet';
|
|
156
149
|
return {
|
|
@@ -166,10 +159,7 @@ export class RotateOutDownLeft extends ComplexAnimationBuilder {
|
|
|
166
159
|
},
|
|
167
160
|
],
|
|
168
161
|
},
|
|
169
|
-
initialValues: {
|
|
170
|
-
opacity: 1,
|
|
171
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
172
|
-
},
|
|
162
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
173
163
|
callback: callback,
|
|
174
164
|
};
|
|
175
165
|
};
|
|
@@ -187,6 +177,7 @@ export class RotateOutDownRight extends ComplexAnimationBuilder {
|
|
|
187
177
|
const [animation, config] = this.getAnimationAndConfig();
|
|
188
178
|
const delay = this.getDelay();
|
|
189
179
|
const callback = this.callbackV;
|
|
180
|
+
const initialValues = this.initialValues;
|
|
190
181
|
return (values) => {
|
|
191
182
|
'worklet';
|
|
192
183
|
return {
|
|
@@ -202,10 +193,7 @@ export class RotateOutDownRight extends ComplexAnimationBuilder {
|
|
|
202
193
|
},
|
|
203
194
|
],
|
|
204
195
|
},
|
|
205
|
-
initialValues: {
|
|
206
|
-
opacity: 1,
|
|
207
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
208
|
-
},
|
|
196
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
209
197
|
callback: callback,
|
|
210
198
|
};
|
|
211
199
|
};
|
|
@@ -223,6 +211,7 @@ export class RotateOutUpLeft extends ComplexAnimationBuilder {
|
|
|
223
211
|
const [animation, config] = this.getAnimationAndConfig();
|
|
224
212
|
const delay = this.getDelay();
|
|
225
213
|
const callback = this.callbackV;
|
|
214
|
+
const initialValues = this.initialValues;
|
|
226
215
|
return (values) => {
|
|
227
216
|
'worklet';
|
|
228
217
|
return {
|
|
@@ -238,10 +227,7 @@ export class RotateOutUpLeft extends ComplexAnimationBuilder {
|
|
|
238
227
|
},
|
|
239
228
|
],
|
|
240
229
|
},
|
|
241
|
-
initialValues: {
|
|
242
|
-
opacity: 1,
|
|
243
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
244
|
-
},
|
|
230
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
245
231
|
callback: callback,
|
|
246
232
|
};
|
|
247
233
|
};
|
|
@@ -259,6 +245,7 @@ export class RotateOutUpRight extends ComplexAnimationBuilder {
|
|
|
259
245
|
const [animation, config] = this.getAnimationAndConfig();
|
|
260
246
|
const delay = this.getDelay();
|
|
261
247
|
const callback = this.callbackV;
|
|
248
|
+
const initialValues = this.initialValues;
|
|
262
249
|
return (values) => {
|
|
263
250
|
'worklet';
|
|
264
251
|
return {
|
|
@@ -274,10 +261,7 @@ export class RotateOutUpRight extends ComplexAnimationBuilder {
|
|
|
274
261
|
},
|
|
275
262
|
],
|
|
276
263
|
},
|
|
277
|
-
initialValues: {
|
|
278
|
-
opacity: 1,
|
|
279
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
280
|
-
},
|
|
264
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
281
265
|
callback: callback,
|
|
282
266
|
};
|
|
283
267
|
};
|
|
@@ -9,15 +9,14 @@ export class SlideInRight extends ComplexAnimationBuilder {
|
|
|
9
9
|
const [animation, config] = this.getAnimationAndConfig();
|
|
10
10
|
const delay = this.getDelay();
|
|
11
11
|
const callback = this.callbackV;
|
|
12
|
+
const initialValues = this.initialValues;
|
|
12
13
|
return (values) => {
|
|
13
14
|
'worklet';
|
|
14
15
|
return {
|
|
15
16
|
animations: {
|
|
16
17
|
originX: delayFunction(delay, animation(values.targetOriginX, config)),
|
|
17
18
|
},
|
|
18
|
-
initialValues: {
|
|
19
|
-
originX: values.targetOriginX + width,
|
|
20
|
-
},
|
|
19
|
+
initialValues: Object.assign({ originX: values.targetOriginX + width }, initialValues),
|
|
21
20
|
callback: callback,
|
|
22
21
|
};
|
|
23
22
|
};
|
|
@@ -35,15 +34,14 @@ export class SlideInLeft extends ComplexAnimationBuilder {
|
|
|
35
34
|
const [animation, config] = this.getAnimationAndConfig();
|
|
36
35
|
const delay = this.getDelay();
|
|
37
36
|
const callback = this.callbackV;
|
|
37
|
+
const initialValues = this.initialValues;
|
|
38
38
|
return (values) => {
|
|
39
39
|
'worklet';
|
|
40
40
|
return {
|
|
41
41
|
animations: {
|
|
42
42
|
originX: delayFunction(delay, animation(values.targetOriginX, config)),
|
|
43
43
|
},
|
|
44
|
-
initialValues: {
|
|
45
|
-
originX: values.targetOriginX - width,
|
|
46
|
-
},
|
|
44
|
+
initialValues: Object.assign({ originX: values.targetOriginX - width }, initialValues),
|
|
47
45
|
callback: callback,
|
|
48
46
|
};
|
|
49
47
|
};
|
|
@@ -61,15 +59,14 @@ export class SlideOutRight extends ComplexAnimationBuilder {
|
|
|
61
59
|
const [animation, config] = this.getAnimationAndConfig();
|
|
62
60
|
const delay = this.getDelay();
|
|
63
61
|
const callback = this.callbackV;
|
|
62
|
+
const initialValues = this.initialValues;
|
|
64
63
|
return (values) => {
|
|
65
64
|
'worklet';
|
|
66
65
|
return {
|
|
67
66
|
animations: {
|
|
68
67
|
originX: delayFunction(delay, animation(Math.max(values.currentOriginX + width, width), config)),
|
|
69
68
|
},
|
|
70
|
-
initialValues: {
|
|
71
|
-
originX: values.currentOriginX,
|
|
72
|
-
},
|
|
69
|
+
initialValues: Object.assign({ originX: values.currentOriginX }, initialValues),
|
|
73
70
|
callback: callback,
|
|
74
71
|
};
|
|
75
72
|
};
|
|
@@ -87,15 +84,14 @@ export class SlideOutLeft extends ComplexAnimationBuilder {
|
|
|
87
84
|
const [animation, config] = this.getAnimationAndConfig();
|
|
88
85
|
const delay = this.getDelay();
|
|
89
86
|
const callback = this.callbackV;
|
|
87
|
+
const initialValues = this.initialValues;
|
|
90
88
|
return (values) => {
|
|
91
89
|
'worklet';
|
|
92
90
|
return {
|
|
93
91
|
animations: {
|
|
94
92
|
originX: delayFunction(delay, animation(Math.min(values.currentOriginX - width, -width), config)),
|
|
95
93
|
},
|
|
96
|
-
initialValues: {
|
|
97
|
-
originX: values.currentOriginX,
|
|
98
|
-
},
|
|
94
|
+
initialValues: Object.assign({ originX: values.currentOriginX }, initialValues),
|
|
99
95
|
callback: callback,
|
|
100
96
|
};
|
|
101
97
|
};
|
|
@@ -113,15 +109,14 @@ export class SlideInUp extends ComplexAnimationBuilder {
|
|
|
113
109
|
const [animation, config] = this.getAnimationAndConfig();
|
|
114
110
|
const delay = this.getDelay();
|
|
115
111
|
const callback = this.callbackV;
|
|
112
|
+
const initialValues = this.initialValues;
|
|
116
113
|
return (values) => {
|
|
117
114
|
'worklet';
|
|
118
115
|
return {
|
|
119
116
|
animations: {
|
|
120
117
|
originY: delayFunction(delay, animation(values.targetOriginY, config)),
|
|
121
118
|
},
|
|
122
|
-
initialValues: {
|
|
123
|
-
originY: -height,
|
|
124
|
-
},
|
|
119
|
+
initialValues: Object.assign({ originY: -height }, initialValues),
|
|
125
120
|
callback: callback,
|
|
126
121
|
};
|
|
127
122
|
};
|
|
@@ -139,15 +134,14 @@ export class SlideInDown extends ComplexAnimationBuilder {
|
|
|
139
134
|
const [animation, config] = this.getAnimationAndConfig();
|
|
140
135
|
const delay = this.getDelay();
|
|
141
136
|
const callback = this.callbackV;
|
|
137
|
+
const initialValues = this.initialValues;
|
|
142
138
|
return (values) => {
|
|
143
139
|
'worklet';
|
|
144
140
|
return {
|
|
145
141
|
animations: {
|
|
146
142
|
originY: delayFunction(delay, animation(values.targetOriginY, config)),
|
|
147
143
|
},
|
|
148
|
-
initialValues: {
|
|
149
|
-
originY: values.targetOriginY + height,
|
|
150
|
-
},
|
|
144
|
+
initialValues: Object.assign({ originY: values.targetOriginY + height }, initialValues),
|
|
151
145
|
callback: callback,
|
|
152
146
|
};
|
|
153
147
|
};
|
|
@@ -165,13 +159,14 @@ export class SlideOutUp extends ComplexAnimationBuilder {
|
|
|
165
159
|
const [animation, config] = this.getAnimationAndConfig();
|
|
166
160
|
const delay = this.getDelay();
|
|
167
161
|
const callback = this.callbackV;
|
|
162
|
+
const initialValues = this.initialValues;
|
|
168
163
|
return (values) => {
|
|
169
164
|
'worklet';
|
|
170
165
|
return {
|
|
171
166
|
animations: {
|
|
172
167
|
originY: delayFunction(delay, animation(Math.min(values.currentOriginY - height, -height), config)),
|
|
173
168
|
},
|
|
174
|
-
initialValues: { originY: values.currentOriginY },
|
|
169
|
+
initialValues: Object.assign({ originY: values.currentOriginY }, initialValues),
|
|
175
170
|
callback: callback,
|
|
176
171
|
};
|
|
177
172
|
};
|
|
@@ -189,13 +184,14 @@ export class SlideOutDown extends ComplexAnimationBuilder {
|
|
|
189
184
|
const [animation, config] = this.getAnimationAndConfig();
|
|
190
185
|
const delay = this.getDelay();
|
|
191
186
|
const callback = this.callbackV;
|
|
187
|
+
const initialValues = this.initialValues;
|
|
192
188
|
return (values) => {
|
|
193
189
|
'worklet';
|
|
194
190
|
return {
|
|
195
191
|
animations: {
|
|
196
192
|
originY: delayFunction(delay, animation(Math.max(values.currentOriginY + height, height), config)),
|
|
197
193
|
},
|
|
198
|
-
initialValues: { originY: values.currentOriginY },
|
|
194
|
+
initialValues: Object.assign({ originY: values.currentOriginY }, initialValues),
|
|
199
195
|
callback: callback,
|
|
200
196
|
};
|
|
201
197
|
};
|
|
@@ -7,15 +7,14 @@ export class StretchInX extends ComplexAnimationBuilder {
|
|
|
7
7
|
const [animation, config] = this.getAnimationAndConfig();
|
|
8
8
|
const delay = this.getDelay();
|
|
9
9
|
const callback = this.callbackV;
|
|
10
|
+
const initialValues = this.initialValues;
|
|
10
11
|
return () => {
|
|
11
12
|
'worklet';
|
|
12
13
|
return {
|
|
13
14
|
animations: {
|
|
14
15
|
transform: [{ scaleX: delayFunction(delay, animation(1, config)) }],
|
|
15
16
|
},
|
|
16
|
-
initialValues: {
|
|
17
|
-
transform: [{ scaleX: 0 }],
|
|
18
|
-
},
|
|
17
|
+
initialValues: Object.assign({ transform: [{ scaleX: 0 }] }, initialValues),
|
|
19
18
|
callback: callback,
|
|
20
19
|
};
|
|
21
20
|
};
|
|
@@ -33,15 +32,14 @@ export class StretchInY extends ComplexAnimationBuilder {
|
|
|
33
32
|
const [animation, config] = this.getAnimationAndConfig();
|
|
34
33
|
const delay = this.getDelay();
|
|
35
34
|
const callback = this.callbackV;
|
|
35
|
+
const initialValues = this.initialValues;
|
|
36
36
|
return () => {
|
|
37
37
|
'worklet';
|
|
38
38
|
return {
|
|
39
39
|
animations: {
|
|
40
40
|
transform: [{ scaleY: delayFunction(delay, animation(1, config)) }],
|
|
41
41
|
},
|
|
42
|
-
initialValues: {
|
|
43
|
-
transform: [{ scaleY: 0 }],
|
|
44
|
-
},
|
|
42
|
+
initialValues: Object.assign({ transform: [{ scaleY: 0 }] }, initialValues),
|
|
45
43
|
callback: callback,
|
|
46
44
|
};
|
|
47
45
|
};
|
|
@@ -59,15 +57,14 @@ export class StretchOutX extends ComplexAnimationBuilder {
|
|
|
59
57
|
const [animation, config] = this.getAnimationAndConfig();
|
|
60
58
|
const delay = this.getDelay();
|
|
61
59
|
const callback = this.callbackV;
|
|
60
|
+
const initialValues = this.initialValues;
|
|
62
61
|
return () => {
|
|
63
62
|
'worklet';
|
|
64
63
|
return {
|
|
65
64
|
animations: {
|
|
66
65
|
transform: [{ scaleX: delayFunction(delay, animation(0, config)) }],
|
|
67
66
|
},
|
|
68
|
-
initialValues: {
|
|
69
|
-
transform: [{ scaleX: 1 }],
|
|
70
|
-
},
|
|
67
|
+
initialValues: Object.assign({ transform: [{ scaleX: 1 }] }, initialValues),
|
|
71
68
|
callback: callback,
|
|
72
69
|
};
|
|
73
70
|
};
|
|
@@ -85,15 +82,14 @@ export class StretchOutY extends ComplexAnimationBuilder {
|
|
|
85
82
|
const [animation, config] = this.getAnimationAndConfig();
|
|
86
83
|
const delay = this.getDelay();
|
|
87
84
|
const callback = this.callbackV;
|
|
85
|
+
const initialValues = this.initialValues;
|
|
88
86
|
return () => {
|
|
89
87
|
'worklet';
|
|
90
88
|
return {
|
|
91
89
|
animations: {
|
|
92
90
|
transform: [{ scaleY: delayFunction(delay, animation(0, config)) }],
|
|
93
91
|
},
|
|
94
|
-
initialValues: {
|
|
95
|
-
transform: [{ scaleY: 1 }],
|
|
96
|
-
},
|
|
92
|
+
initialValues: Object.assign({ transform: [{ scaleY: 1 }] }, initialValues),
|
|
97
93
|
callback: callback,
|
|
98
94
|
};
|
|
99
95
|
};
|
|
@@ -9,15 +9,14 @@ export class ZoomIn extends ComplexAnimationBuilder {
|
|
|
9
9
|
const [animation, config] = this.getAnimationAndConfig();
|
|
10
10
|
const delay = this.getDelay();
|
|
11
11
|
const callback = this.callbackV;
|
|
12
|
+
const initialValues = this.initialValues;
|
|
12
13
|
return () => {
|
|
13
14
|
'worklet';
|
|
14
15
|
return {
|
|
15
16
|
animations: {
|
|
16
17
|
transform: [{ scale: delayFunction(delay, animation(1, config)) }],
|
|
17
18
|
},
|
|
18
|
-
initialValues: {
|
|
19
|
-
transform: [{ scale: 0 }],
|
|
20
|
-
},
|
|
19
|
+
initialValues: Object.assign({ transform: [{ scale: 0 }] }, initialValues),
|
|
21
20
|
callback: callback,
|
|
22
21
|
};
|
|
23
22
|
};
|
|
@@ -36,6 +35,7 @@ export class ZoomInRotate extends ComplexAnimationBuilder {
|
|
|
36
35
|
const delay = this.getDelay();
|
|
37
36
|
const rotate = this.rotateV ? this.rotateV : '0.3';
|
|
38
37
|
const callback = this.callbackV;
|
|
38
|
+
const initialValues = this.initialValues;
|
|
39
39
|
return () => {
|
|
40
40
|
'worklet';
|
|
41
41
|
return {
|
|
@@ -45,9 +45,7 @@ export class ZoomInRotate extends ComplexAnimationBuilder {
|
|
|
45
45
|
{ rotate: delayFunction(delay, animation(0, config)) },
|
|
46
46
|
],
|
|
47
47
|
},
|
|
48
|
-
initialValues: {
|
|
49
|
-
transform: [{ scale: 0 }, { rotate: rotate }],
|
|
50
|
-
},
|
|
48
|
+
initialValues: Object.assign({ transform: [{ scale: 0 }, { rotate: rotate }] }, initialValues),
|
|
51
49
|
callback: callback,
|
|
52
50
|
};
|
|
53
51
|
};
|
|
@@ -65,6 +63,7 @@ export class ZoomInLeft extends ComplexAnimationBuilder {
|
|
|
65
63
|
const [animation, config] = this.getAnimationAndConfig();
|
|
66
64
|
const delay = this.getDelay();
|
|
67
65
|
const callback = this.callbackV;
|
|
66
|
+
const initialValues = this.initialValues;
|
|
68
67
|
return () => {
|
|
69
68
|
'worklet';
|
|
70
69
|
return {
|
|
@@ -74,9 +73,7 @@ export class ZoomInLeft extends ComplexAnimationBuilder {
|
|
|
74
73
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
75
74
|
],
|
|
76
75
|
},
|
|
77
|
-
initialValues: {
|
|
78
|
-
transform: [{ translateX: -width }, { scale: 0 }],
|
|
79
|
-
},
|
|
76
|
+
initialValues: Object.assign({ transform: [{ translateX: -width }, { scale: 0 }] }, initialValues),
|
|
80
77
|
callback: callback,
|
|
81
78
|
};
|
|
82
79
|
};
|
|
@@ -94,6 +91,7 @@ export class ZoomInRight extends ComplexAnimationBuilder {
|
|
|
94
91
|
const [animation, config] = this.getAnimationAndConfig();
|
|
95
92
|
const delay = this.getDelay();
|
|
96
93
|
const callback = this.callbackV;
|
|
94
|
+
const initialValues = this.initialValues;
|
|
97
95
|
return () => {
|
|
98
96
|
'worklet';
|
|
99
97
|
return {
|
|
@@ -103,9 +101,7 @@ export class ZoomInRight extends ComplexAnimationBuilder {
|
|
|
103
101
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
104
102
|
],
|
|
105
103
|
},
|
|
106
|
-
initialValues: {
|
|
107
|
-
transform: [{ translateX: width }, { scale: 0 }],
|
|
108
|
-
},
|
|
104
|
+
initialValues: Object.assign({ transform: [{ translateX: width }, { scale: 0 }] }, initialValues),
|
|
109
105
|
callback: callback,
|
|
110
106
|
};
|
|
111
107
|
};
|
|
@@ -123,6 +119,7 @@ export class ZoomInUp extends ComplexAnimationBuilder {
|
|
|
123
119
|
const [animation, config] = this.getAnimationAndConfig();
|
|
124
120
|
const delay = this.getDelay();
|
|
125
121
|
const callback = this.callbackV;
|
|
122
|
+
const initialValues = this.initialValues;
|
|
126
123
|
return () => {
|
|
127
124
|
'worklet';
|
|
128
125
|
return {
|
|
@@ -132,9 +129,7 @@ export class ZoomInUp extends ComplexAnimationBuilder {
|
|
|
132
129
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
133
130
|
],
|
|
134
131
|
},
|
|
135
|
-
initialValues: {
|
|
136
|
-
transform: [{ translateY: -height }, { scale: 0 }],
|
|
137
|
-
},
|
|
132
|
+
initialValues: Object.assign({ transform: [{ translateY: -height }, { scale: 0 }] }, initialValues),
|
|
138
133
|
callback: callback,
|
|
139
134
|
};
|
|
140
135
|
};
|
|
@@ -152,6 +147,7 @@ export class ZoomInDown extends ComplexAnimationBuilder {
|
|
|
152
147
|
const [animation, config] = this.getAnimationAndConfig();
|
|
153
148
|
const delay = this.getDelay();
|
|
154
149
|
const callback = this.callbackV;
|
|
150
|
+
const initialValues = this.initialValues;
|
|
155
151
|
return () => {
|
|
156
152
|
'worklet';
|
|
157
153
|
return {
|
|
@@ -161,9 +157,7 @@ export class ZoomInDown extends ComplexAnimationBuilder {
|
|
|
161
157
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
162
158
|
],
|
|
163
159
|
},
|
|
164
|
-
initialValues: {
|
|
165
|
-
transform: [{ translateY: height }, { scale: 0 }],
|
|
166
|
-
},
|
|
160
|
+
initialValues: Object.assign({ transform: [{ translateY: height }, { scale: 0 }] }, initialValues),
|
|
167
161
|
callback: callback,
|
|
168
162
|
};
|
|
169
163
|
};
|
|
@@ -181,6 +175,7 @@ export class ZoomInEasyUp extends ComplexAnimationBuilder {
|
|
|
181
175
|
const [animation, config] = this.getAnimationAndConfig();
|
|
182
176
|
const delay = this.getDelay();
|
|
183
177
|
const callback = this.callbackV;
|
|
178
|
+
const initialValues = this.initialValues;
|
|
184
179
|
return (values) => {
|
|
185
180
|
'worklet';
|
|
186
181
|
return {
|
|
@@ -190,9 +185,7 @@ export class ZoomInEasyUp extends ComplexAnimationBuilder {
|
|
|
190
185
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
191
186
|
],
|
|
192
187
|
},
|
|
193
|
-
initialValues: {
|
|
194
|
-
transform: [{ translateY: -values.targetHeight }, { scale: 0 }],
|
|
195
|
-
},
|
|
188
|
+
initialValues: Object.assign({ transform: [{ translateY: -values.targetHeight }, { scale: 0 }] }, initialValues),
|
|
196
189
|
callback: callback,
|
|
197
190
|
};
|
|
198
191
|
};
|
|
@@ -210,6 +203,7 @@ export class ZoomInEasyDown extends ComplexAnimationBuilder {
|
|
|
210
203
|
const [animation, config] = this.getAnimationAndConfig();
|
|
211
204
|
const delay = this.getDelay();
|
|
212
205
|
const callback = this.callbackV;
|
|
206
|
+
const initialValues = this.initialValues;
|
|
213
207
|
return (values) => {
|
|
214
208
|
'worklet';
|
|
215
209
|
return {
|
|
@@ -219,9 +213,7 @@ export class ZoomInEasyDown extends ComplexAnimationBuilder {
|
|
|
219
213
|
{ scale: delayFunction(delay, animation(1, config)) },
|
|
220
214
|
],
|
|
221
215
|
},
|
|
222
|
-
initialValues: {
|
|
223
|
-
transform: [{ translateY: values.targetHeight }, { scale: 0 }],
|
|
224
|
-
},
|
|
216
|
+
initialValues: Object.assign({ transform: [{ translateY: values.targetHeight }, { scale: 0 }] }, initialValues),
|
|
225
217
|
callback: callback,
|
|
226
218
|
};
|
|
227
219
|
};
|
|
@@ -239,15 +231,14 @@ export class ZoomOut extends ComplexAnimationBuilder {
|
|
|
239
231
|
const [animation, config] = this.getAnimationAndConfig();
|
|
240
232
|
const delay = this.getDelay();
|
|
241
233
|
const callback = this.callbackV;
|
|
234
|
+
const initialValues = this.initialValues;
|
|
242
235
|
return () => {
|
|
243
236
|
'worklet';
|
|
244
237
|
return {
|
|
245
238
|
animations: {
|
|
246
239
|
transform: [{ scale: delayFunction(delay, animation(0, config)) }],
|
|
247
240
|
},
|
|
248
|
-
initialValues: {
|
|
249
|
-
transform: [{ scale: 1 }],
|
|
250
|
-
},
|
|
241
|
+
initialValues: Object.assign({ transform: [{ scale: 1 }] }, initialValues),
|
|
251
242
|
callback: callback,
|
|
252
243
|
};
|
|
253
244
|
};
|
|
@@ -266,6 +257,7 @@ export class ZoomOutRotate extends ComplexAnimationBuilder {
|
|
|
266
257
|
const delay = this.getDelay();
|
|
267
258
|
const rotate = this.rotateV ? this.rotateV : '0.3';
|
|
268
259
|
const callback = this.callbackV;
|
|
260
|
+
const initialValues = this.initialValues;
|
|
269
261
|
return () => {
|
|
270
262
|
'worklet';
|
|
271
263
|
return {
|
|
@@ -275,9 +267,7 @@ export class ZoomOutRotate extends ComplexAnimationBuilder {
|
|
|
275
267
|
{ rotate: delayFunction(delay, animation(rotate, config)) },
|
|
276
268
|
],
|
|
277
269
|
},
|
|
278
|
-
initialValues: {
|
|
279
|
-
transform: [{ scale: 1 }, { rotate: '0' }],
|
|
280
|
-
},
|
|
270
|
+
initialValues: Object.assign({ transform: [{ scale: 1 }, { rotate: '0' }] }, initialValues),
|
|
281
271
|
callback: callback,
|
|
282
272
|
};
|
|
283
273
|
};
|
|
@@ -295,6 +285,7 @@ export class ZoomOutLeft extends ComplexAnimationBuilder {
|
|
|
295
285
|
const [animation, config] = this.getAnimationAndConfig();
|
|
296
286
|
const delay = this.getDelay();
|
|
297
287
|
const callback = this.callbackV;
|
|
288
|
+
const initialValues = this.initialValues;
|
|
298
289
|
return () => {
|
|
299
290
|
'worklet';
|
|
300
291
|
return {
|
|
@@ -304,9 +295,7 @@ export class ZoomOutLeft extends ComplexAnimationBuilder {
|
|
|
304
295
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
305
296
|
],
|
|
306
297
|
},
|
|
307
|
-
initialValues: {
|
|
308
|
-
transform: [{ translateX: 0 }, { scale: 1 }],
|
|
309
|
-
},
|
|
298
|
+
initialValues: Object.assign({ transform: [{ translateX: 0 }, { scale: 1 }] }, initialValues),
|
|
310
299
|
callback: callback,
|
|
311
300
|
};
|
|
312
301
|
};
|
|
@@ -324,6 +313,7 @@ export class ZoomOutRight extends ComplexAnimationBuilder {
|
|
|
324
313
|
const [animation, config] = this.getAnimationAndConfig();
|
|
325
314
|
const delay = this.getDelay();
|
|
326
315
|
const callback = this.callbackV;
|
|
316
|
+
const initialValues = this.initialValues;
|
|
327
317
|
return () => {
|
|
328
318
|
'worklet';
|
|
329
319
|
return {
|
|
@@ -333,9 +323,7 @@ export class ZoomOutRight extends ComplexAnimationBuilder {
|
|
|
333
323
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
334
324
|
],
|
|
335
325
|
},
|
|
336
|
-
initialValues: {
|
|
337
|
-
transform: [{ translateX: 0 }, { scale: 1 }],
|
|
338
|
-
},
|
|
326
|
+
initialValues: Object.assign({ transform: [{ translateX: 0 }, { scale: 1 }] }, initialValues),
|
|
339
327
|
callback: callback,
|
|
340
328
|
};
|
|
341
329
|
};
|
|
@@ -353,6 +341,7 @@ export class ZoomOutUp extends ComplexAnimationBuilder {
|
|
|
353
341
|
const [animation, config] = this.getAnimationAndConfig();
|
|
354
342
|
const delay = this.getDelay();
|
|
355
343
|
const callback = this.callbackV;
|
|
344
|
+
const initialValues = this.initialValues;
|
|
356
345
|
return () => {
|
|
357
346
|
'worklet';
|
|
358
347
|
return {
|
|
@@ -362,9 +351,7 @@ export class ZoomOutUp extends ComplexAnimationBuilder {
|
|
|
362
351
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
363
352
|
],
|
|
364
353
|
},
|
|
365
|
-
initialValues: {
|
|
366
|
-
transform: [{ translateY: 0 }, { scale: 1 }],
|
|
367
|
-
},
|
|
354
|
+
initialValues: Object.assign({ transform: [{ translateY: 0 }, { scale: 1 }] }, initialValues),
|
|
368
355
|
callback: callback,
|
|
369
356
|
};
|
|
370
357
|
};
|
|
@@ -382,6 +369,7 @@ export class ZoomOutDown extends ComplexAnimationBuilder {
|
|
|
382
369
|
const [animation, config] = this.getAnimationAndConfig();
|
|
383
370
|
const delay = this.getDelay();
|
|
384
371
|
const callback = this.callbackV;
|
|
372
|
+
const initialValues = this.initialValues;
|
|
385
373
|
return () => {
|
|
386
374
|
'worklet';
|
|
387
375
|
return {
|
|
@@ -391,9 +379,7 @@ export class ZoomOutDown extends ComplexAnimationBuilder {
|
|
|
391
379
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
392
380
|
],
|
|
393
381
|
},
|
|
394
|
-
initialValues: {
|
|
395
|
-
transform: [{ translateY: 0 }, { scale: 1 }],
|
|
396
|
-
},
|
|
382
|
+
initialValues: Object.assign({ transform: [{ translateY: 0 }, { scale: 1 }] }, initialValues),
|
|
397
383
|
callback: callback,
|
|
398
384
|
};
|
|
399
385
|
};
|
|
@@ -411,6 +397,7 @@ export class ZoomOutEasyUp extends ComplexAnimationBuilder {
|
|
|
411
397
|
const [animation, config] = this.getAnimationAndConfig();
|
|
412
398
|
const delay = this.getDelay();
|
|
413
399
|
const callback = this.callbackV;
|
|
400
|
+
const initialValues = this.initialValues;
|
|
414
401
|
return (values) => {
|
|
415
402
|
'worklet';
|
|
416
403
|
return {
|
|
@@ -422,9 +409,7 @@ export class ZoomOutEasyUp extends ComplexAnimationBuilder {
|
|
|
422
409
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
423
410
|
],
|
|
424
411
|
},
|
|
425
|
-
initialValues: {
|
|
426
|
-
transform: [{ translateY: 0 }, { scale: 1 }],
|
|
427
|
-
},
|
|
412
|
+
initialValues: Object.assign({ transform: [{ translateY: 0 }, { scale: 1 }] }, initialValues),
|
|
428
413
|
callback: callback,
|
|
429
414
|
};
|
|
430
415
|
};
|
|
@@ -442,6 +427,7 @@ export class ZoomOutEasyDown extends ComplexAnimationBuilder {
|
|
|
442
427
|
const [animation, config] = this.getAnimationAndConfig();
|
|
443
428
|
const delay = this.getDelay();
|
|
444
429
|
const callback = this.callbackV;
|
|
430
|
+
const initialValues = this.initialValues;
|
|
445
431
|
return (values) => {
|
|
446
432
|
'worklet';
|
|
447
433
|
return {
|
|
@@ -453,9 +439,7 @@ export class ZoomOutEasyDown extends ComplexAnimationBuilder {
|
|
|
453
439
|
{ scale: delayFunction(delay, animation(0, config)) },
|
|
454
440
|
],
|
|
455
441
|
},
|
|
456
|
-
initialValues: {
|
|
457
|
-
transform: [{ translateY: 0 }, { scale: 1 }],
|
|
458
|
-
},
|
|
442
|
+
initialValues: Object.assign({ transform: [{ translateY: 0 }, { scale: 1 }] }, initialValues),
|
|
459
443
|
callback: callback,
|
|
460
444
|
};
|
|
461
445
|
};
|