react-native-reanimated 3.0.2 → 3.1.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/Fabric/FabricUtils.h +1 -1
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +38 -27
- package/Common/cpp/SharedItems/Shareables.h +22 -0
- package/Common/cpp/Tools/PlatformDepMethodsHolder.h +2 -0
- package/Common/cpp/Tools/RuntimeDecorator.cpp +4 -1
- package/Common/cpp/Tools/RuntimeDecorator.h +2 -1
- package/Common/cpp/Tools/SingleInstanceChecker.h +14 -2
- package/RNReanimated.podspec +5 -2
- package/android/CMakeLists.txt +4 -0
- package/android/build.gradle +18 -10
- package/android/src/main/cpp/NativeProxy.cpp +316 -337
- package/android/src/main/cpp/NativeProxy.h +53 -11
- package/android/src/main/java/com/swmansion/reanimated/NativeMethodsHelper.java +7 -12
- package/android/src/main/java/com/swmansion/reanimated/NodesManager.java +11 -8
- package/android/src/main/java/com/swmansion/reanimated/nativeProxy/NativeProxyCommon.java +21 -14
- package/android/src/paper/java/com/swmansion/reanimated/NativeProxy.java +0 -3
- package/ios/Fabric/REAInitializerRCTFabricSurface.mm +1 -0
- package/ios/REANodesManager.h +1 -0
- package/ios/REANodesManager.mm +30 -4
- package/ios/keyboardObserver/REAKeyboardEventObserver.m +51 -130
- package/ios/native/NativeMethods.mm +1 -1
- package/ios/native/NativeProxy.mm +4 -1
- package/ios/native/REAIOSErrorHandler.mm +1 -1
- package/ios/native/REAIOSLogger.mm +1 -1
- package/ios/native/REAIOSScheduler.mm +1 -1
- package/ios/native/REAInitializer.mm +1 -1
- package/ios/native/REAMessageThread.mm +2 -2
- package/lib/commonjs/Animated.js +0 -8
- package/lib/commonjs/Animated.js.map +1 -1
- package/lib/commonjs/ConfigHelper.js +8 -19
- package/lib/commonjs/ConfigHelper.js.map +1 -1
- package/lib/commonjs/createAnimatedComponent.js +20 -158
- package/lib/commonjs/createAnimatedComponent.js.map +1 -1
- package/lib/commonjs/index.js +0 -9
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +0 -7
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/reanimated2/Bezier.js +14 -34
- package/lib/commonjs/reanimated2/Bezier.js.map +1 -1
- package/lib/commonjs/reanimated2/Colors.js +60 -132
- package/lib/commonjs/reanimated2/Colors.js.map +1 -1
- package/lib/commonjs/reanimated2/Easing.js +81 -34
- package/lib/commonjs/reanimated2/Easing.js.map +1 -1
- package/lib/commonjs/reanimated2/NativeMethods.js +8 -20
- package/lib/commonjs/reanimated2/NativeMethods.js.map +1 -1
- package/lib/commonjs/reanimated2/NativeReanimated/NativeReanimated.js +5 -31
- package/lib/commonjs/reanimated2/NativeReanimated/NativeReanimated.js.map +1 -1
- package/lib/commonjs/reanimated2/NativeReanimated/index.js +0 -7
- package/lib/commonjs/reanimated2/NativeReanimated/index.js.map +1 -1
- package/lib/commonjs/reanimated2/PlatformChecker.js +0 -6
- package/lib/commonjs/reanimated2/PlatformChecker.js.map +1 -1
- package/lib/commonjs/reanimated2/PropAdapters.js +10 -12
- package/lib/commonjs/reanimated2/PropAdapters.js.map +1 -1
- package/lib/commonjs/reanimated2/UpdateProps.js +3 -12
- package/lib/commonjs/reanimated2/UpdateProps.js.map +1 -1
- package/lib/commonjs/reanimated2/ViewDescriptorsSet.js +0 -10
- package/lib/commonjs/reanimated2/ViewDescriptorsSet.js.map +1 -1
- package/lib/commonjs/reanimated2/WorkletEventHandler.js +5 -22
- package/lib/commonjs/reanimated2/WorkletEventHandler.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/decay.js +7 -18
- package/lib/commonjs/reanimated2/animation/decay.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/delay.js +0 -11
- package/lib/commonjs/reanimated2/animation/delay.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/index.js +0 -8
- package/lib/commonjs/reanimated2/animation/index.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/repeat.js +6 -22
- package/lib/commonjs/reanimated2/animation/repeat.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/sequence.js +3 -20
- package/lib/commonjs/reanimated2/animation/sequence.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/spring.js +11 -23
- package/lib/commonjs/reanimated2/animation/spring.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/styleAnimation.js +3 -35
- package/lib/commonjs/reanimated2/animation/styleAnimation.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/timing.js +0 -11
- package/lib/commonjs/reanimated2/animation/timing.js.map +1 -1
- package/lib/commonjs/reanimated2/animation/util.js +11 -41
- package/lib/commonjs/reanimated2/animation/util.js.map +1 -1
- package/lib/commonjs/reanimated2/commonTypes.js +16 -23
- package/lib/commonjs/reanimated2/commonTypes.js.map +1 -1
- package/lib/commonjs/reanimated2/component/FlatList.js +0 -16
- package/lib/commonjs/reanimated2/component/FlatList.js.map +1 -1
- package/lib/commonjs/reanimated2/component/Image.js +0 -4
- package/lib/commonjs/reanimated2/component/Image.js.map +1 -1
- package/lib/commonjs/reanimated2/component/ScrollView.js +0 -4
- package/lib/commonjs/reanimated2/component/ScrollView.js.map +1 -1
- package/lib/commonjs/reanimated2/component/Text.js +0 -4
- package/lib/commonjs/reanimated2/component/Text.js.map +1 -1
- package/lib/commonjs/reanimated2/component/View.js +0 -4
- package/lib/commonjs/reanimated2/component/View.js.map +1 -1
- package/lib/commonjs/reanimated2/core.js +6 -48
- package/lib/commonjs/reanimated2/core.js.map +1 -1
- package/lib/commonjs/reanimated2/errors.js +3 -14
- package/lib/commonjs/reanimated2/errors.js.map +1 -1
- package/lib/commonjs/reanimated2/fabricUtils.js +3 -5
- package/lib/commonjs/reanimated2/fabricUtils.js.map +1 -1
- package/lib/commonjs/reanimated2/fabricUtils.web.js +1 -3
- package/lib/commonjs/reanimated2/fabricUtils.web.js.map +1 -1
- package/lib/commonjs/reanimated2/frameCallback/FrameCallbackRegistryJS.js +3 -12
- package/lib/commonjs/reanimated2/frameCallback/FrameCallbackRegistryJS.js.map +1 -1
- package/lib/commonjs/reanimated2/frameCallback/FrameCallbackRegistryUI.js +13 -17
- package/lib/commonjs/reanimated2/frameCallback/FrameCallbackRegistryUI.js.map +1 -1
- package/lib/commonjs/reanimated2/globals.d.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/Hooks.js +0 -5
- package/lib/commonjs/reanimated2/hook/Hooks.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/commonTypes.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/index.js +0 -12
- package/lib/commonjs/reanimated2/hook/index.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedGestureHandler.js +4 -17
- package/lib/commonjs/reanimated2/hook/useAnimatedGestureHandler.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedKeyboard.js +2 -9
- package/lib/commonjs/reanimated2/hook/useAnimatedKeyboard.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedReaction.js +1 -11
- package/lib/commonjs/reanimated2/hook/useAnimatedReaction.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedRef.js +0 -12
- package/lib/commonjs/reanimated2/hook/useAnimatedRef.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedScrollHandler.js +2 -9
- package/lib/commonjs/reanimated2/hook/useAnimatedScrollHandler.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedSensor.js +8 -23
- package/lib/commonjs/reanimated2/hook/useAnimatedSensor.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useAnimatedStyle.js +13 -71
- package/lib/commonjs/reanimated2/hook/useAnimatedStyle.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useDerivedValue.js +4 -13
- package/lib/commonjs/reanimated2/hook/useDerivedValue.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useFrameCallback.js +0 -5
- package/lib/commonjs/reanimated2/hook/useFrameCallback.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useScrollViewOffset.js +0 -7
- package/lib/commonjs/reanimated2/hook/useScrollViewOffset.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/useSharedValue.js +2 -7
- package/lib/commonjs/reanimated2/hook/useSharedValue.js.map +1 -1
- package/lib/commonjs/reanimated2/hook/utils.js +8 -39
- package/lib/commonjs/reanimated2/hook/utils.js.map +1 -1
- package/lib/commonjs/reanimated2/index.js +0 -26
- package/lib/commonjs/reanimated2/index.js.map +1 -1
- package/lib/commonjs/reanimated2/initializers.js +21 -43
- package/lib/commonjs/reanimated2/initializers.js.map +1 -1
- package/lib/commonjs/reanimated2/interpolateColor.js +6 -43
- package/lib/commonjs/reanimated2/interpolateColor.js.map +1 -1
- package/lib/commonjs/reanimated2/interpolation.js +14 -29
- package/lib/commonjs/reanimated2/interpolation.js.map +1 -1
- package/lib/commonjs/reanimated2/jestUtils.js +11 -44
- package/lib/commonjs/reanimated2/jestUtils.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/JSReanimated.js +15 -39
- package/lib/commonjs/reanimated2/js-reanimated/JSReanimated.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/Mapper.js +9 -28
- package/lib/commonjs/reanimated2/js-reanimated/Mapper.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/MapperRegistry.js +7 -37
- package/lib/commonjs/reanimated2/js-reanimated/MapperRegistry.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/MutableValue.js +5 -18
- package/lib/commonjs/reanimated2/js-reanimated/MutableValue.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/global.js +2 -9
- package/lib/commonjs/reanimated2/js-reanimated/global.js.map +1 -1
- package/lib/commonjs/reanimated2/js-reanimated/index.js +3 -14
- package/lib/commonjs/reanimated2/js-reanimated/index.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +7 -26
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +3 -49
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/Keyframe.js +7 -43
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/Keyframe.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/commonTypes.js +4 -5
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/commonTypes.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/index.js +0 -4
- package/lib/commonjs/reanimated2/layoutReanimation/animationBuilder/index.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/animationsManager.js +4 -23
- package/lib/commonjs/reanimated2/layoutReanimation/animationsManager.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Bounce.js +3 -74
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Bounce.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Fade.js +3 -53
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Fade.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Flip.js +3 -63
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Flip.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js +7 -26
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js +3 -13
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Roll.js +3 -23
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Roll.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +3 -43
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Rotate.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Slide.js +3 -43
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Slide.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Stretch.js +3 -23
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Stretch.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +3 -83
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/Zoom.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/index.js +0 -20
- package/lib/commonjs/reanimated2/layoutReanimation/defaultAnimations/index.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js +3 -22
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +5 -29
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js +3 -9
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js +5 -11
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js +3 -8
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js +3 -12
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/index.js +0 -12
- package/lib/commonjs/reanimated2/layoutReanimation/defaultTransitions/index.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/index.js +0 -9
- package/lib/commonjs/reanimated2/layoutReanimation/index.js.map +1 -1
- package/lib/commonjs/reanimated2/layoutReanimation/sharedTransitions/index.js +3 -17
- package/lib/commonjs/reanimated2/layoutReanimation/sharedTransitions/index.js.map +1 -1
- package/lib/commonjs/reanimated2/mappers.js +26 -32
- package/lib/commonjs/reanimated2/mappers.js.map +1 -1
- package/lib/commonjs/reanimated2/mock.js +5 -15
- package/lib/commonjs/reanimated2/mock.js.map +1 -1
- package/lib/commonjs/reanimated2/mutables.js +2 -28
- package/lib/commonjs/reanimated2/mutables.js.map +1 -1
- package/lib/commonjs/reanimated2/platform-specific/RNRenderer.js +0 -2
- package/lib/commonjs/reanimated2/platform-specific/RNRenderer.js.map +1 -1
- package/lib/commonjs/reanimated2/platform-specific/RNRenderer.web.js.map +1 -1
- package/lib/commonjs/reanimated2/platform-specific/checkCppVersion.js +31 -0
- package/lib/commonjs/reanimated2/platform-specific/checkCppVersion.js.map +1 -0
- package/lib/commonjs/reanimated2/platform-specific/checkVersion.web.js +0 -2
- package/lib/commonjs/reanimated2/platform-specific/checkVersion.web.js.map +1 -1
- package/lib/commonjs/reanimated2/platform-specific/jsVersion.js +14 -0
- package/lib/commonjs/reanimated2/platform-specific/jsVersion.js.map +1 -0
- package/lib/commonjs/reanimated2/pluginUtils.js +0 -1
- package/lib/commonjs/reanimated2/pluginUtils.js.map +1 -1
- package/lib/commonjs/reanimated2/shareables.js +92 -49
- package/lib/commonjs/reanimated2/shareables.js.map +1 -1
- package/lib/commonjs/reanimated2/threads.js +42 -46
- package/lib/commonjs/reanimated2/threads.js.map +1 -1
- package/lib/commonjs/reanimated2/utils.js +0 -5
- package/lib/commonjs/reanimated2/utils.js.map +1 -1
- package/lib/commonjs/reanimated2/valueSetter.js +6 -21
- package/lib/commonjs/reanimated2/valueSetter.js.map +1 -1
- package/lib/commonjs/setAndForwardRef.js +3 -3
- package/lib/commonjs/setAndForwardRef.js.map +1 -1
- package/lib/module/Animated.js.map +1 -1
- package/lib/module/ConfigHelper.js +9 -15
- package/lib/module/ConfigHelper.js.map +1 -1
- package/lib/module/createAnimatedComponent.js +20 -139
- package/lib/module/createAnimatedComponent.js.map +1 -1
- package/lib/module/index.js +0 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/reanimated2/Bezier.js +14 -33
- package/lib/module/reanimated2/Bezier.js.map +1 -1
- package/lib/module/reanimated2/Colors.js +59 -109
- package/lib/module/reanimated2/Colors.js.map +1 -1
- package/lib/module/reanimated2/Easing.js +37 -33
- package/lib/module/reanimated2/Easing.js.map +1 -1
- package/lib/module/reanimated2/NativeMethods.js +8 -15
- package/lib/module/reanimated2/NativeMethods.js.map +1 -1
- package/lib/module/reanimated2/NativeReanimated/NativeReanimated.js +5 -27
- package/lib/module/reanimated2/NativeReanimated/NativeReanimated.js.map +1 -1
- package/lib/module/reanimated2/NativeReanimated/index.js +0 -2
- package/lib/module/reanimated2/NativeReanimated/index.js.map +1 -1
- package/lib/module/reanimated2/PlatformChecker.js.map +1 -1
- package/lib/module/reanimated2/PropAdapters.js +12 -10
- package/lib/module/reanimated2/PropAdapters.js.map +1 -1
- package/lib/module/reanimated2/UpdateProps.js +3 -5
- package/lib/module/reanimated2/UpdateProps.js.map +1 -1
- package/lib/module/reanimated2/ViewDescriptorsSet.js +0 -6
- package/lib/module/reanimated2/ViewDescriptorsSet.js.map +1 -1
- package/lib/module/reanimated2/WorkletEventHandler.js +5 -18
- package/lib/module/reanimated2/WorkletEventHandler.js.map +1 -1
- package/lib/module/reanimated2/animation/decay.js +7 -15
- package/lib/module/reanimated2/animation/decay.js.map +1 -1
- package/lib/module/reanimated2/animation/delay.js +0 -9
- package/lib/module/reanimated2/animation/delay.js.map +1 -1
- package/lib/module/reanimated2/animation/index.js.map +1 -1
- package/lib/module/reanimated2/animation/repeat.js +6 -20
- package/lib/module/reanimated2/animation/repeat.js.map +1 -1
- package/lib/module/reanimated2/animation/sequence.js +3 -18
- package/lib/module/reanimated2/animation/sequence.js.map +1 -1
- package/lib/module/reanimated2/animation/spring.js +11 -21
- package/lib/module/reanimated2/animation/spring.js.map +1 -1
- package/lib/module/reanimated2/animation/styleAnimation.js +7 -31
- package/lib/module/reanimated2/animation/styleAnimation.js.map +1 -1
- package/lib/module/reanimated2/animation/timing.js +0 -8
- package/lib/module/reanimated2/animation/timing.js.map +1 -1
- package/lib/module/reanimated2/animation/util.js +10 -33
- package/lib/module/reanimated2/animation/util.js.map +1 -1
- package/lib/module/reanimated2/commonTypes.js +12 -19
- package/lib/module/reanimated2/commonTypes.js.map +1 -1
- package/lib/module/reanimated2/component/FlatList.js +0 -4
- package/lib/module/reanimated2/component/FlatList.js.map +1 -1
- package/lib/module/reanimated2/component/Image.js.map +1 -1
- package/lib/module/reanimated2/component/ScrollView.js.map +1 -1
- package/lib/module/reanimated2/component/Text.js.map +1 -1
- package/lib/module/reanimated2/component/View.js.map +1 -1
- package/lib/module/reanimated2/core.js +6 -22
- package/lib/module/reanimated2/core.js.map +1 -1
- package/lib/module/reanimated2/errors.js +3 -13
- package/lib/module/reanimated2/errors.js.map +1 -1
- package/lib/module/reanimated2/fabricUtils.js +3 -3
- package/lib/module/reanimated2/fabricUtils.js.map +1 -1
- package/lib/module/reanimated2/fabricUtils.web.js +1 -1
- package/lib/module/reanimated2/fabricUtils.web.js.map +1 -1
- package/lib/module/reanimated2/frameCallback/FrameCallbackRegistryJS.js +3 -8
- package/lib/module/reanimated2/frameCallback/FrameCallbackRegistryJS.js.map +1 -1
- package/lib/module/reanimated2/frameCallback/FrameCallbackRegistryUI.js +13 -15
- package/lib/module/reanimated2/frameCallback/FrameCallbackRegistryUI.js.map +1 -1
- package/lib/module/reanimated2/globals.d.js.map +1 -1
- package/lib/module/reanimated2/hook/Hooks.js +3 -2
- package/lib/module/reanimated2/hook/Hooks.js.map +1 -1
- package/lib/module/reanimated2/hook/commonTypes.js.map +1 -1
- package/lib/module/reanimated2/hook/index.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedGestureHandler.js +3 -14
- package/lib/module/reanimated2/hook/useAnimatedGestureHandler.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedKeyboard.js +2 -5
- package/lib/module/reanimated2/hook/useAnimatedKeyboard.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedReaction.js +1 -7
- package/lib/module/reanimated2/hook/useAnimatedReaction.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedRef.js +0 -6
- package/lib/module/reanimated2/hook/useAnimatedRef.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedScrollHandler.js +2 -7
- package/lib/module/reanimated2/hook/useAnimatedScrollHandler.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedSensor.js +9 -20
- package/lib/module/reanimated2/hook/useAnimatedSensor.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedStyle.js +13 -59
- package/lib/module/reanimated2/hook/useAnimatedStyle.js.map +1 -1
- package/lib/module/reanimated2/hook/useDerivedValue.js +4 -8
- package/lib/module/reanimated2/hook/useDerivedValue.js.map +1 -1
- package/lib/module/reanimated2/hook/useFrameCallback.js.map +1 -1
- package/lib/module/reanimated2/hook/useScrollViewOffset.js +0 -1
- package/lib/module/reanimated2/hook/useScrollViewOffset.js.map +1 -1
- package/lib/module/reanimated2/hook/useSharedValue.js +2 -3
- package/lib/module/reanimated2/hook/useSharedValue.js.map +1 -1
- package/lib/module/reanimated2/hook/utils.js +8 -21
- package/lib/module/reanimated2/hook/utils.js.map +1 -1
- package/lib/module/reanimated2/index.js.map +1 -1
- package/lib/module/reanimated2/initializers.js +23 -37
- package/lib/module/reanimated2/initializers.js.map +1 -1
- package/lib/module/reanimated2/interpolateColor.js +5 -34
- package/lib/module/reanimated2/interpolateColor.js.map +1 -1
- package/lib/module/reanimated2/interpolation.js +13 -28
- package/lib/module/reanimated2/interpolation.js.map +1 -1
- package/lib/module/reanimated2/jestUtils.js +11 -35
- package/lib/module/reanimated2/jestUtils.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/JSReanimated.js +15 -35
- package/lib/module/reanimated2/js-reanimated/JSReanimated.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/Mapper.js +9 -23
- package/lib/module/reanimated2/js-reanimated/Mapper.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/MapperRegistry.js +7 -35
- package/lib/module/reanimated2/js-reanimated/MapperRegistry.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/MutableValue.js +5 -16
- package/lib/module/reanimated2/js-reanimated/MutableValue.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/global.js +2 -6
- package/lib/module/reanimated2/js-reanimated/global.js.map +1 -1
- package/lib/module/reanimated2/js-reanimated/index.js +3 -9
- package/lib/module/reanimated2/js-reanimated/index.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +7 -23
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +3 -45
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/Keyframe.js +7 -39
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/Keyframe.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/commonTypes.js +3 -3
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/commonTypes.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationBuilder/index.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/animationsManager.js +4 -19
- package/lib/module/reanimated2/layoutReanimation/animationsManager.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Bounce.js +3 -52
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Bounce.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Fade.js +3 -32
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Fade.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Flip.js +3 -38
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Flip.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js +7 -16
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js +3 -8
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Roll.js +3 -14
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Roll.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +3 -26
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Rotate.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Slide.js +3 -26
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Slide.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Stretch.js +3 -14
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Stretch.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +3 -50
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/Zoom.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultAnimations/index.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js +3 -17
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +5 -23
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js +3 -5
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js +5 -6
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js +3 -5
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js +3 -8
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/defaultTransitions/index.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/index.js.map +1 -1
- package/lib/module/reanimated2/layoutReanimation/sharedTransitions/index.js +3 -13
- package/lib/module/reanimated2/layoutReanimation/sharedTransitions/index.js.map +1 -1
- package/lib/module/reanimated2/mappers.js +26 -25
- package/lib/module/reanimated2/mappers.js.map +1 -1
- package/lib/module/reanimated2/mock.js +5 -15
- package/lib/module/reanimated2/mock.js.map +1 -1
- package/lib/module/reanimated2/mutables.js +2 -19
- package/lib/module/reanimated2/mutables.js.map +1 -1
- package/lib/module/reanimated2/platform-specific/RNRenderer.js.map +1 -1
- package/lib/module/reanimated2/platform-specific/RNRenderer.web.js.map +1 -1
- package/lib/module/reanimated2/platform-specific/checkCppVersion.js +24 -0
- package/lib/module/reanimated2/platform-specific/checkCppVersion.js.map +1 -0
- package/lib/module/reanimated2/platform-specific/checkVersion.web.js +0 -1
- package/lib/module/reanimated2/platform-specific/checkVersion.web.js.map +1 -1
- package/lib/module/reanimated2/platform-specific/jsVersion.js +7 -0
- package/lib/module/reanimated2/platform-specific/jsVersion.js.map +1 -0
- package/lib/module/reanimated2/pluginUtils.js.map +1 -1
- package/lib/module/reanimated2/shareables.js +96 -44
- package/lib/module/reanimated2/shareables.js.map +1 -1
- package/lib/module/reanimated2/threads.js +39 -33
- package/lib/module/reanimated2/threads.js.map +1 -1
- package/lib/module/reanimated2/utils.js +0 -3
- package/lib/module/reanimated2/utils.js.map +1 -1
- package/lib/module/reanimated2/valueSetter.js +6 -19
- package/lib/module/reanimated2/valueSetter.js.map +1 -1
- package/lib/module/setAndForwardRef.js +3 -2
- package/lib/module/setAndForwardRef.js.map +1 -1
- package/package.json +46 -40
- package/plugin/.eslintrc.js +7 -0
- package/plugin/README.md +241 -0
- package/plugin/build/plugin.js +714 -0
- package/plugin/build/plugin.js.map +7 -0
- package/plugin/index.js +1 -807
- package/plugin/package.json +23 -0
- package/plugin/src/buildWorkletString.ts +213 -0
- package/plugin/src/commonObjects.ts +60 -0
- package/plugin/src/injectVersion.ts +37 -0
- package/plugin/src/makeWorklet.ts +375 -0
- package/plugin/src/plugin.ts +49 -0
- package/plugin/src/processForCalleesWorklets.ts +106 -0
- package/plugin/src/processIfGestureHandlerEventCallbackFunctionNode.ts +156 -0
- package/plugin/src/processIfWorkletFunction.ts +55 -0
- package/plugin/src/processIfWorkletNode.ts +44 -0
- package/plugin/src/processInlineStylesWarning.ts +129 -0
- package/plugin/src/processWorkletObjectMethod.ts +31 -0
- package/plugin/src/types.ts +15 -0
- package/plugin/src/utils.ts +6 -0
- package/plugin/tsconfig.json +15 -0
- package/plugin/yarn.lock +2193 -0
- package/react-native-reanimated.d.ts +1 -0
- package/scripts/reanimated_utils.rb +2 -2
- package/src/createAnimatedComponent.tsx +2 -3
- package/src/reanimated2/Easing.ts +19 -0
- package/src/reanimated2/NativeMethods.ts +9 -4
- package/src/reanimated2/NativeReanimated/NativeReanimated.ts +2 -2
- package/src/reanimated2/UpdateProps.ts +2 -2
- package/src/reanimated2/animation/decay.ts +7 -1
- package/src/reanimated2/animation/styleAnimation.ts +5 -1
- package/src/reanimated2/core.ts +4 -4
- package/src/reanimated2/errors.ts +1 -0
- package/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +12 -4
- package/src/reanimated2/globals.d.ts +71 -112
- package/src/reanimated2/hook/commonTypes.ts +1 -1
- package/src/reanimated2/hook/useAnimatedReaction.ts +2 -2
- package/src/reanimated2/hook/useAnimatedSensor.ts +2 -2
- package/src/reanimated2/initializers.ts +11 -8
- package/src/reanimated2/jestUtils.ts +0 -1
- package/src/reanimated2/js-reanimated/JSReanimated.ts +5 -1
- package/src/reanimated2/js-reanimated/index.ts +1 -1
- package/src/reanimated2/mappers.ts +26 -4
- package/src/reanimated2/mock.ts +1 -0
- package/src/reanimated2/platform-specific/checkCppVersion.ts +29 -0
- package/src/reanimated2/platform-specific/jsVersion.ts +6 -0
- package/src/reanimated2/shareables.ts +107 -8
- package/src/reanimated2/threads.ts +36 -17
- package/lib/commonjs/reanimated2/platform-specific/checkVersion.js +0 -42
- package/lib/commonjs/reanimated2/platform-specific/checkVersion.js.map +0 -1
- package/lib/module/reanimated2/platform-specific/checkVersion.js +0 -35
- package/lib/module/reanimated2/platform-specific/checkVersion.js.map +0 -1
- package/src/reanimated2/platform-specific/checkVersion.ts +0 -39
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.RotateOutUpRight = exports.RotateOutUpLeft = exports.RotateOutDownRight = exports.RotateOutDownLeft = exports.RotateInUpRight = exports.RotateInUpLeft = exports.RotateInDownRight = exports.RotateInDownLeft = void 0;
|
|
7
|
-
|
|
8
7
|
var _animationBuilder = require("../animationBuilder");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
11
|
class RotateInDownLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
13
12
|
constructor() {
|
|
14
13
|
super(...arguments);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "build", () => {
|
|
17
15
|
const delayFunction = this.getDelayFunction();
|
|
18
16
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -49,19 +47,14 @@ class RotateInDownLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
49
47
|
};
|
|
50
48
|
});
|
|
51
49
|
}
|
|
52
|
-
|
|
53
50
|
static createInstance() {
|
|
54
51
|
return new RotateInDownLeft();
|
|
55
52
|
}
|
|
56
|
-
|
|
57
53
|
}
|
|
58
|
-
|
|
59
54
|
exports.RotateInDownLeft = RotateInDownLeft;
|
|
60
|
-
|
|
61
55
|
class RotateInDownRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
62
56
|
constructor() {
|
|
63
57
|
super(...arguments);
|
|
64
|
-
|
|
65
58
|
_defineProperty(this, "build", () => {
|
|
66
59
|
const delayFunction = this.getDelayFunction();
|
|
67
60
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -98,19 +91,14 @@ class RotateInDownRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
98
91
|
};
|
|
99
92
|
});
|
|
100
93
|
}
|
|
101
|
-
|
|
102
94
|
static createInstance() {
|
|
103
95
|
return new RotateInDownRight();
|
|
104
96
|
}
|
|
105
|
-
|
|
106
97
|
}
|
|
107
|
-
|
|
108
98
|
exports.RotateInDownRight = RotateInDownRight;
|
|
109
|
-
|
|
110
99
|
class RotateInUpLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
111
100
|
constructor() {
|
|
112
101
|
super(...arguments);
|
|
113
|
-
|
|
114
102
|
_defineProperty(this, "build", () => {
|
|
115
103
|
const delayFunction = this.getDelayFunction();
|
|
116
104
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -147,19 +135,14 @@ class RotateInUpLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
147
135
|
};
|
|
148
136
|
});
|
|
149
137
|
}
|
|
150
|
-
|
|
151
138
|
static createInstance() {
|
|
152
139
|
return new RotateInUpLeft();
|
|
153
140
|
}
|
|
154
|
-
|
|
155
141
|
}
|
|
156
|
-
|
|
157
142
|
exports.RotateInUpLeft = RotateInUpLeft;
|
|
158
|
-
|
|
159
143
|
class RotateInUpRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
160
144
|
constructor() {
|
|
161
145
|
super(...arguments);
|
|
162
|
-
|
|
163
146
|
_defineProperty(this, "build", () => {
|
|
164
147
|
const delayFunction = this.getDelayFunction();
|
|
165
148
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -196,19 +179,14 @@ class RotateInUpRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
196
179
|
};
|
|
197
180
|
});
|
|
198
181
|
}
|
|
199
|
-
|
|
200
182
|
static createInstance() {
|
|
201
183
|
return new RotateInUpRight();
|
|
202
184
|
}
|
|
203
|
-
|
|
204
185
|
}
|
|
205
|
-
|
|
206
186
|
exports.RotateInUpRight = RotateInUpRight;
|
|
207
|
-
|
|
208
187
|
class RotateOutDownLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
209
188
|
constructor() {
|
|
210
189
|
super(...arguments);
|
|
211
|
-
|
|
212
190
|
_defineProperty(this, "build", () => {
|
|
213
191
|
const delayFunction = this.getDelayFunction();
|
|
214
192
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -245,19 +223,14 @@ class RotateOutDownLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
245
223
|
};
|
|
246
224
|
});
|
|
247
225
|
}
|
|
248
|
-
|
|
249
226
|
static createInstance() {
|
|
250
227
|
return new RotateOutDownLeft();
|
|
251
228
|
}
|
|
252
|
-
|
|
253
229
|
}
|
|
254
|
-
|
|
255
230
|
exports.RotateOutDownLeft = RotateOutDownLeft;
|
|
256
|
-
|
|
257
231
|
class RotateOutDownRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
258
232
|
constructor() {
|
|
259
233
|
super(...arguments);
|
|
260
|
-
|
|
261
234
|
_defineProperty(this, "build", () => {
|
|
262
235
|
const delayFunction = this.getDelayFunction();
|
|
263
236
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -294,19 +267,14 @@ class RotateOutDownRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
294
267
|
};
|
|
295
268
|
});
|
|
296
269
|
}
|
|
297
|
-
|
|
298
270
|
static createInstance() {
|
|
299
271
|
return new RotateOutDownRight();
|
|
300
272
|
}
|
|
301
|
-
|
|
302
273
|
}
|
|
303
|
-
|
|
304
274
|
exports.RotateOutDownRight = RotateOutDownRight;
|
|
305
|
-
|
|
306
275
|
class RotateOutUpLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
307
276
|
constructor() {
|
|
308
277
|
super(...arguments);
|
|
309
|
-
|
|
310
278
|
_defineProperty(this, "build", () => {
|
|
311
279
|
const delayFunction = this.getDelayFunction();
|
|
312
280
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -343,19 +311,14 @@ class RotateOutUpLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
343
311
|
};
|
|
344
312
|
});
|
|
345
313
|
}
|
|
346
|
-
|
|
347
314
|
static createInstance() {
|
|
348
315
|
return new RotateOutUpLeft();
|
|
349
316
|
}
|
|
350
|
-
|
|
351
317
|
}
|
|
352
|
-
|
|
353
318
|
exports.RotateOutUpLeft = RotateOutUpLeft;
|
|
354
|
-
|
|
355
319
|
class RotateOutUpRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
356
320
|
constructor() {
|
|
357
321
|
super(...arguments);
|
|
358
|
-
|
|
359
322
|
_defineProperty(this, "build", () => {
|
|
360
323
|
const delayFunction = this.getDelayFunction();
|
|
361
324
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -392,12 +355,9 @@ class RotateOutUpRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
392
355
|
};
|
|
393
356
|
});
|
|
394
357
|
}
|
|
395
|
-
|
|
396
358
|
static createInstance() {
|
|
397
359
|
return new RotateOutUpRight();
|
|
398
360
|
}
|
|
399
|
-
|
|
400
361
|
}
|
|
401
|
-
|
|
402
362
|
exports.RotateOutUpRight = RotateOutUpRight;
|
|
403
363
|
//# sourceMappingURL=Rotate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RotateInDownLeft","ComplexAnimationBuilder","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","opacity","transform","rotate","translateX","translateY","targetWidth","targetHeight","createInstance","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","currentWidth","currentHeight","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight"],"sources":["Rotate.ts"],"sourcesContent":["import { ComplexAnimationBuilder } from '../animationBuilder';\nimport {\n EntryAnimationsValues,\n ExitAnimationsValues,\n AnimationConfigFunction,\n IEntryAnimationBuilder,\n IExitAnimationBuilder,\n} from '../animationBuilder/commonTypes';\n\nexport class RotateInDownLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInDownLeft {\n return new RotateInDownLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '-90deg' },\n { translateX: values.targetWidth / 2 - values.targetHeight / 2 },\n { translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInDownRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInDownRight {\n return new RotateInDownRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '90deg' },\n { translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },\n { translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInUpLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInUpLeft {\n return new RotateInUpLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '90deg' },\n { translateX: values.targetWidth / 2 - values.targetHeight / 2 },\n { translateY: values.targetWidth / 2 - values.targetHeight / 2 },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInUpRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInUpRight {\n return new RotateInUpRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '-90deg' },\n { translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },\n { translateY: values.targetWidth / 2 - values.targetHeight / 2 },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutDownLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutDownLeft {\n return new RotateOutDownLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutDownRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutDownRight {\n return new RotateOutDownRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('-90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutUpLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutUpLeft {\n return new RotateOutUpLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('-90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutUpRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutUpRight {\n return new RotateOutUpRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n"],"mappings":";;;;;;;AAAA;;;;AASO,MAAMA,gBAAN,SACGC,yCADH,CAGP;EAAA;IAAA;;IAAA,+BAKU,MAAsD;MAC5D,MAAMC,aAAa,GAAG,KAAKC,gBAAL,EAAtB;MACA,MAAM,CAACC,SAAD,EAAYC,MAAZ,IAAsB,KAAKC,qBAAL,EAA5B;MACA,MAAMC,KAAK,GAAG,KAAKC,QAAL,EAAd;MACA,MAAMC,QAAQ,GAAG,KAAKC,SAAtB;MACA,MAAMC,aAAa,GAAG,KAAKA,aAA3B;MAEA,OAAQC,MAAD,IAAY;QACjB;;QACA,OAAO;UACLC,UAAU,EAAE;YACVC,OAAO,EAAEZ,aAAa,CAACK,KAAD,EAAQH,SAAS,CAAC,CAAD,EAAIC,MAAJ,CAAjB,CADZ;YAEVU,SAAS,EAAE,CACT;cA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CD,CA/CH;EAAA;;EACuB,OAAdY,cAAc,GAAqB;IACxC,OAAO,IAAIS,gBAAJ,EAAP;EACD;;AAHH"}
|
|
1
|
+
{"version":3,"names":["_animationBuilder","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","RotateInDownLeft","ComplexAnimationBuilder","constructor","arguments","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","opacity","transform","rotate","translateX","translateY","targetWidth","targetHeight","createInstance","exports","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","currentWidth","currentHeight","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight"],"sources":["Rotate.ts"],"sourcesContent":["import { ComplexAnimationBuilder } from '../animationBuilder';\nimport {\n EntryAnimationsValues,\n ExitAnimationsValues,\n AnimationConfigFunction,\n IEntryAnimationBuilder,\n IExitAnimationBuilder,\n} from '../animationBuilder/commonTypes';\n\nexport class RotateInDownLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInDownLeft {\n return new RotateInDownLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '-90deg' },\n { translateX: values.targetWidth / 2 - values.targetHeight / 2 },\n { translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInDownRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInDownRight {\n return new RotateInDownRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '90deg' },\n { translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },\n { translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInUpLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInUpLeft {\n return new RotateInUpLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '90deg' },\n { translateX: values.targetWidth / 2 - values.targetHeight / 2 },\n { translateY: values.targetWidth / 2 - values.targetHeight / 2 },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateInUpRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): RotateInUpRight {\n return new RotateInUpRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(1, config)),\n transform: [\n { rotate: delayFunction(delay, animation('0deg', config)) },\n { translateX: delayFunction(delay, animation(0, config)) },\n { translateY: delayFunction(delay, animation(0, config)) },\n ],\n },\n initialValues: {\n opacity: 0,\n transform: [\n { rotate: '-90deg' },\n { translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },\n { translateY: values.targetWidth / 2 - values.targetHeight / 2 },\n ],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutDownLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutDownLeft {\n return new RotateOutDownLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutDownRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutDownRight {\n return new RotateOutDownRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('-90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutUpLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutUpLeft {\n return new RotateOutUpLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('-90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n values.currentWidth / 2 - values.currentHeight / 2,\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class RotateOutUpRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): RotateOutUpRight {\n return new RotateOutUpRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n opacity: delayFunction(delay, animation(0, config)),\n transform: [\n { rotate: delayFunction(delay, animation('90deg', config)) },\n {\n translateX: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n {\n translateY: delayFunction(\n delay,\n animation(\n -(values.currentWidth / 2 - values.currentHeight / 2),\n config\n )\n ),\n },\n ],\n },\n initialValues: {\n opacity: 1,\n transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAA8D,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAA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AAcA,CAAA,EAAqB;IACxC,OAAO,IAAIU,gBAAgB,EAAE;EAC/B;AA6CF;AAACT,OAAA,CAAAS,gBAAA,GAAAA,gBAAA"}
|
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SlideOutUp = exports.SlideOutRight = exports.SlideOutLeft = exports.SlideOutDown = exports.SlideInUp = exports.SlideInRight = exports.SlideInLeft = exports.SlideInDown = void 0;
|
|
7
|
-
|
|
8
7
|
var _animationBuilder = require("../animationBuilder");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
11
|
class SlideInRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
13
12
|
constructor() {
|
|
14
13
|
super(...arguments);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "build", () => {
|
|
17
15
|
const delayFunction = this.getDelayFunction();
|
|
18
16
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -35,19 +33,14 @@ class SlideInRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
35
33
|
};
|
|
36
34
|
});
|
|
37
35
|
}
|
|
38
|
-
|
|
39
36
|
static createInstance() {
|
|
40
37
|
return new SlideInRight();
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
}
|
|
44
|
-
|
|
45
40
|
exports.SlideInRight = SlideInRight;
|
|
46
|
-
|
|
47
41
|
class SlideInLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
48
42
|
constructor() {
|
|
49
43
|
super(...arguments);
|
|
50
|
-
|
|
51
44
|
_defineProperty(this, "build", () => {
|
|
52
45
|
const delayFunction = this.getDelayFunction();
|
|
53
46
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -70,19 +63,14 @@ class SlideInLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
70
63
|
};
|
|
71
64
|
});
|
|
72
65
|
}
|
|
73
|
-
|
|
74
66
|
static createInstance() {
|
|
75
67
|
return new SlideInLeft();
|
|
76
68
|
}
|
|
77
|
-
|
|
78
69
|
}
|
|
79
|
-
|
|
80
70
|
exports.SlideInLeft = SlideInLeft;
|
|
81
|
-
|
|
82
71
|
class SlideOutRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
83
72
|
constructor() {
|
|
84
73
|
super(...arguments);
|
|
85
|
-
|
|
86
74
|
_defineProperty(this, "build", () => {
|
|
87
75
|
const delayFunction = this.getDelayFunction();
|
|
88
76
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -105,19 +93,14 @@ class SlideOutRight extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
105
93
|
};
|
|
106
94
|
});
|
|
107
95
|
}
|
|
108
|
-
|
|
109
96
|
static createInstance() {
|
|
110
97
|
return new SlideOutRight();
|
|
111
98
|
}
|
|
112
|
-
|
|
113
99
|
}
|
|
114
|
-
|
|
115
100
|
exports.SlideOutRight = SlideOutRight;
|
|
116
|
-
|
|
117
101
|
class SlideOutLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
118
102
|
constructor() {
|
|
119
103
|
super(...arguments);
|
|
120
|
-
|
|
121
104
|
_defineProperty(this, "build", () => {
|
|
122
105
|
const delayFunction = this.getDelayFunction();
|
|
123
106
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -140,19 +123,14 @@ class SlideOutLeft extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
140
123
|
};
|
|
141
124
|
});
|
|
142
125
|
}
|
|
143
|
-
|
|
144
126
|
static createInstance() {
|
|
145
127
|
return new SlideOutLeft();
|
|
146
128
|
}
|
|
147
|
-
|
|
148
129
|
}
|
|
149
|
-
|
|
150
130
|
exports.SlideOutLeft = SlideOutLeft;
|
|
151
|
-
|
|
152
131
|
class SlideInUp extends _animationBuilder.ComplexAnimationBuilder {
|
|
153
132
|
constructor() {
|
|
154
133
|
super(...arguments);
|
|
155
|
-
|
|
156
134
|
_defineProperty(this, "build", () => {
|
|
157
135
|
const delayFunction = this.getDelayFunction();
|
|
158
136
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -175,19 +153,14 @@ class SlideInUp extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
175
153
|
};
|
|
176
154
|
});
|
|
177
155
|
}
|
|
178
|
-
|
|
179
156
|
static createInstance() {
|
|
180
157
|
return new SlideInUp();
|
|
181
158
|
}
|
|
182
|
-
|
|
183
159
|
}
|
|
184
|
-
|
|
185
160
|
exports.SlideInUp = SlideInUp;
|
|
186
|
-
|
|
187
161
|
class SlideInDown extends _animationBuilder.ComplexAnimationBuilder {
|
|
188
162
|
constructor() {
|
|
189
163
|
super(...arguments);
|
|
190
|
-
|
|
191
164
|
_defineProperty(this, "build", () => {
|
|
192
165
|
const delayFunction = this.getDelayFunction();
|
|
193
166
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -210,19 +183,14 @@ class SlideInDown extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
210
183
|
};
|
|
211
184
|
});
|
|
212
185
|
}
|
|
213
|
-
|
|
214
186
|
static createInstance() {
|
|
215
187
|
return new SlideInDown();
|
|
216
188
|
}
|
|
217
|
-
|
|
218
189
|
}
|
|
219
|
-
|
|
220
190
|
exports.SlideInDown = SlideInDown;
|
|
221
|
-
|
|
222
191
|
class SlideOutUp extends _animationBuilder.ComplexAnimationBuilder {
|
|
223
192
|
constructor() {
|
|
224
193
|
super(...arguments);
|
|
225
|
-
|
|
226
194
|
_defineProperty(this, "build", () => {
|
|
227
195
|
const delayFunction = this.getDelayFunction();
|
|
228
196
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -245,19 +213,14 @@ class SlideOutUp extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
245
213
|
};
|
|
246
214
|
});
|
|
247
215
|
}
|
|
248
|
-
|
|
249
216
|
static createInstance() {
|
|
250
217
|
return new SlideOutUp();
|
|
251
218
|
}
|
|
252
|
-
|
|
253
219
|
}
|
|
254
|
-
|
|
255
220
|
exports.SlideOutUp = SlideOutUp;
|
|
256
|
-
|
|
257
221
|
class SlideOutDown extends _animationBuilder.ComplexAnimationBuilder {
|
|
258
222
|
constructor() {
|
|
259
223
|
super(...arguments);
|
|
260
|
-
|
|
261
224
|
_defineProperty(this, "build", () => {
|
|
262
225
|
const delayFunction = this.getDelayFunction();
|
|
263
226
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -280,12 +243,9 @@ class SlideOutDown extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
280
243
|
};
|
|
281
244
|
});
|
|
282
245
|
}
|
|
283
|
-
|
|
284
246
|
static createInstance() {
|
|
285
247
|
return new SlideOutDown();
|
|
286
248
|
}
|
|
287
|
-
|
|
288
249
|
}
|
|
289
|
-
|
|
290
250
|
exports.SlideOutDown = SlideOutDown;
|
|
291
251
|
//# sourceMappingURL=Slide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SlideInRight","ComplexAnimationBuilder","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","originX","targetOriginX","windowWidth","createInstance","SlideInLeft","SlideOutRight","Math","max","currentOriginX","SlideOutLeft","min","SlideInUp","originY","targetOriginY","windowHeight","SlideInDown","SlideOutUp","currentOriginY","SlideOutDown"],"sources":["Slide.ts"],"sourcesContent":["import {\n EntryAnimationsValues,\n ExitAnimationsValues,\n AnimationConfigFunction,\n IEntryAnimationBuilder,\n IExitAnimationBuilder,\n} from '../animationBuilder/commonTypes';\nimport { ComplexAnimationBuilder } from '../animationBuilder';\n\nexport class SlideInRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInRight {\n return new SlideInRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(values.targetOriginX, config)\n ),\n },\n initialValues: {\n originX: values.targetOriginX + values.windowWidth,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInLeft {\n return new SlideInLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(values.targetOriginX, config)\n ),\n },\n initialValues: {\n originX: values.targetOriginX - values.windowWidth,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutRight {\n return new SlideOutRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(\n Math.max(\n values.currentOriginX + values.windowWidth,\n values.windowWidth\n ),\n config\n )\n ),\n },\n initialValues: {\n originX: values.currentOriginX,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutLeft {\n return new SlideOutLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(\n Math.min(\n values.currentOriginX - values.windowWidth,\n -values.windowWidth\n ),\n config\n )\n ),\n },\n initialValues: {\n originX: values.currentOriginX,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInUp\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInUp {\n return new SlideInUp();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(values.targetOriginY, config)\n ),\n },\n initialValues: {\n originY: -values.windowHeight,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInDown\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInDown {\n return new SlideInDown();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(values.targetOriginY, config)\n ),\n },\n initialValues: {\n originY: values.targetOriginY + values.windowHeight,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutUp\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutUp {\n return new SlideOutUp();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(\n Math.min(\n values.currentOriginY - values.windowHeight,\n -values.windowHeight\n ),\n config\n )\n ),\n },\n initialValues: { originY: values.currentOriginY, ...initialValues },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutDown\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutDown {\n return new SlideOutDown();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(\n Math.max(\n values.currentOriginY + values.windowHeight,\n values.windowHeight\n ),\n config\n )\n ),\n },\n initialValues: { originY: values.currentOriginY, ...initialValues },\n callback: callback,\n };\n };\n };\n}\n"],"mappings":";;;;;;;AAOA;;;;AAEO,MAAMA,YAAN,SACGC,yCADH,CAGP;EAAA;IAAA;;IAAA,+BAKU,MAAsD;MAC5D,MAAMC,aAAa,GAAG,KAAKC,gBAAL,EAAtB;MACA,MAAM,CAACC,SAAD,EAAYC,MAAZ,IAAsB,KAAKC,qBAAL,EAA5B;MACA,MAAMC,KAAK,GAAG,KAAKC,QAAL,EAAd;MACA,MAAMC,QAAQ,GAAG,KAAKC,SAAtB;MACA,MAAMC,aAAa,GAAG,KAAKA,aAA3B;MAEA,OAAQC,MAAD,IAAY;QACjB;;QAC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IAAIa,UAAJ,EAAP;EACD;;AAHH;;;;AAkCO,MAAME,YAAN,SACG/B,yCADH,CAGP;EAAA;IAAA;;IAAA,+BAKU,MAAqD;MAC3D,MAAMC,aAAa,GAAG,KAAKC,gBAAL,EAAtB;MACA,MAAM,CAACC,SAAD,EAAYC,MAAZ,IAAsB,KAAKC,qBAAL,EAA5B;MACA,MAAMC,KAAK,GAAG,KAAKC,QAAL,EAAd;MACA,MAAMC,QAAQ,GAAG,KAAKC,SAAtB;MACA,MAAMC,aAAa,GAAG,KAAKA,aAA3B;MAEA,OAAQC,MAAD,IAAY;QACjB;;QACA,OAAO;UACLC,UAAU,EAAE;YACVa,OAAO,EAAExB,aAAa,CACpBK,KADoB,EAEpBH,SAAS,CACPgB,IAAI,CAACC,GAAL,CACET,MAAM,CAACmB,cAAP,GAAwBnB,MAAM,CAACgB,YADjC,EAEEhB,MAAM,CAACgB,YAFT,CADO,EAKPvB,MALO,CAFW;UADZ,CADP;UAaLM,aAAa,EAAE;YAAEe,OAAO,EAAEd,MAAM,CAACmB,cAAlB;YAAkC,GAAGpB;UAArC,CAbV;UAcLF,QAAQ,EAAEA;QAdL,CAAP;MAgBD,CAlBD;IAmBD,CA/BH;EAAA;;EACuB,OAAdQ,cAAc,GAAiB;IACpC,OAAO,IAAIe,YAAJ,EAAP;EACD;;AAHH"}
|
|
1
|
+
{"version":3,"names":["_animationBuilder","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","SlideInRight","ComplexAnimationBuilder","constructor","arguments","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","originX","targetOriginX","windowWidth","createInstance","exports","SlideInLeft","SlideOutRight","Math","max","currentOriginX","SlideOutLeft","min","SlideInUp","originY","targetOriginY","windowHeight","SlideInDown","SlideOutUp","currentOriginY","SlideOutDown"],"sources":["Slide.ts"],"sourcesContent":["import {\n EntryAnimationsValues,\n ExitAnimationsValues,\n AnimationConfigFunction,\n IEntryAnimationBuilder,\n IExitAnimationBuilder,\n} from '../animationBuilder/commonTypes';\nimport { ComplexAnimationBuilder } from '../animationBuilder';\n\nexport class SlideInRight\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInRight {\n return new SlideInRight();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(values.targetOriginX, config)\n ),\n },\n initialValues: {\n originX: values.targetOriginX + values.windowWidth,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInLeft\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInLeft {\n return new SlideInLeft();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(values.targetOriginX, config)\n ),\n },\n initialValues: {\n originX: values.targetOriginX - values.windowWidth,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutRight\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutRight {\n return new SlideOutRight();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(\n Math.max(\n values.currentOriginX + values.windowWidth,\n values.windowWidth\n ),\n config\n )\n ),\n },\n initialValues: {\n originX: values.currentOriginX,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutLeft\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutLeft {\n return new SlideOutLeft();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originX: delayFunction(\n delay,\n animation(\n Math.min(\n values.currentOriginX - values.windowWidth,\n -values.windowWidth\n ),\n config\n )\n ),\n },\n initialValues: {\n originX: values.currentOriginX,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInUp\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInUp {\n return new SlideInUp();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(values.targetOriginY, config)\n ),\n },\n initialValues: {\n originY: -values.windowHeight,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideInDown\n extends ComplexAnimationBuilder\n implements IEntryAnimationBuilder\n{\n static createInstance(): SlideInDown {\n return new SlideInDown();\n }\n\n build = (): AnimationConfigFunction<EntryAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(values.targetOriginY, config)\n ),\n },\n initialValues: {\n originY: values.targetOriginY + values.windowHeight,\n ...initialValues,\n },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutUp\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutUp {\n return new SlideOutUp();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(\n Math.min(\n values.currentOriginY - values.windowHeight,\n -values.windowHeight\n ),\n config\n )\n ),\n },\n initialValues: { originY: values.currentOriginY, ...initialValues },\n callback: callback,\n };\n };\n };\n}\n\nexport class SlideOutDown\n extends ComplexAnimationBuilder\n implements IExitAnimationBuilder\n{\n static createInstance(): SlideOutDown {\n return new SlideOutDown();\n }\n\n build = (): AnimationConfigFunction<ExitAnimationsValues> => {\n const delayFunction = this.getDelayFunction();\n const [animation, config] = this.getAnimationAndConfig();\n const delay = this.getDelay();\n const callback = this.callbackV;\n const initialValues = this.initialValues;\n\n return (values) => {\n 'worklet';\n return {\n animations: {\n originY: delayFunction(\n delay,\n animation(\n Math.max(\n values.currentOriginY + values.windowHeight,\n values.windowHeight\n ),\n config\n )\n ),\n },\n initialValues: { originY: values.currentOriginY, ...initialValues },\n callback: callback,\n };\n };\n };\n}\n"],"mappings":";;;;;;AAOA,IAAAA,iBAAA,GAAAC,OAAA;AAA8D,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IA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AAA,CAAAe,YAAA,GAAAA,YAAA"}
|
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StretchOutY = exports.StretchOutX = exports.StretchInY = exports.StretchInX = void 0;
|
|
7
|
-
|
|
8
7
|
var _animationBuilder = require("../animationBuilder");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
11
|
class StretchInX extends _animationBuilder.ComplexAnimationBuilder {
|
|
13
12
|
constructor() {
|
|
14
13
|
super(...arguments);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "build", () => {
|
|
17
15
|
const delayFunction = this.getDelayFunction();
|
|
18
16
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -39,19 +37,14 @@ class StretchInX extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
39
37
|
};
|
|
40
38
|
});
|
|
41
39
|
}
|
|
42
|
-
|
|
43
40
|
static createInstance() {
|
|
44
41
|
return new StretchInX();
|
|
45
42
|
}
|
|
46
|
-
|
|
47
43
|
}
|
|
48
|
-
|
|
49
44
|
exports.StretchInX = StretchInX;
|
|
50
|
-
|
|
51
45
|
class StretchInY extends _animationBuilder.ComplexAnimationBuilder {
|
|
52
46
|
constructor() {
|
|
53
47
|
super(...arguments);
|
|
54
|
-
|
|
55
48
|
_defineProperty(this, "build", () => {
|
|
56
49
|
const delayFunction = this.getDelayFunction();
|
|
57
50
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -78,19 +71,14 @@ class StretchInY extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
78
71
|
};
|
|
79
72
|
});
|
|
80
73
|
}
|
|
81
|
-
|
|
82
74
|
static createInstance() {
|
|
83
75
|
return new StretchInY();
|
|
84
76
|
}
|
|
85
|
-
|
|
86
77
|
}
|
|
87
|
-
|
|
88
78
|
exports.StretchInY = StretchInY;
|
|
89
|
-
|
|
90
79
|
class StretchOutX extends _animationBuilder.ComplexAnimationBuilder {
|
|
91
80
|
constructor() {
|
|
92
81
|
super(...arguments);
|
|
93
|
-
|
|
94
82
|
_defineProperty(this, "build", () => {
|
|
95
83
|
const delayFunction = this.getDelayFunction();
|
|
96
84
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -117,19 +105,14 @@ class StretchOutX extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
117
105
|
};
|
|
118
106
|
});
|
|
119
107
|
}
|
|
120
|
-
|
|
121
108
|
static createInstance() {
|
|
122
109
|
return new StretchOutX();
|
|
123
110
|
}
|
|
124
|
-
|
|
125
111
|
}
|
|
126
|
-
|
|
127
112
|
exports.StretchOutX = StretchOutX;
|
|
128
|
-
|
|
129
113
|
class StretchOutY extends _animationBuilder.ComplexAnimationBuilder {
|
|
130
114
|
constructor() {
|
|
131
115
|
super(...arguments);
|
|
132
|
-
|
|
133
116
|
_defineProperty(this, "build", () => {
|
|
134
117
|
const delayFunction = this.getDelayFunction();
|
|
135
118
|
const [animation, config] = this.getAnimationAndConfig();
|
|
@@ -156,12 +139,9 @@ class StretchOutY extends _animationBuilder.ComplexAnimationBuilder {
|
|
|
156
139
|
};
|
|
157
140
|
});
|
|
158
141
|
}
|
|
159
|
-
|
|
160
142
|
static createInstance() {
|
|
161
143
|
return new StretchOutY();
|
|
162
144
|
}
|
|
163
|
-
|
|
164
145
|
}
|
|
165
|
-
|
|
166
146
|
exports.StretchOutY = StretchOutY;
|
|
167
147
|
//# sourceMappingURL=Stretch.js.map
|