@tamagui/react-native-web-lite 1.113.0 → 1.113.2
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/dist/esm/AccessibilityInfo/index.native.js +62 -58
- package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/index.native.js +90 -82
- package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
- package/dist/esm/Alert/index.native.js +18 -14
- package/dist/esm/Alert/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
- package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
- package/dist/esm/AppRegistry/index.native.js +55 -50
- package/dist/esm/AppRegistry/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
- package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
- package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
- package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppState/index.native.js +51 -45
- package/dist/esm/AppState/index.native.js.map +6 -1
- package/dist/esm/Appearance/index.native.js +24 -27
- package/dist/esm/Appearance/index.native.js.map +6 -1
- package/dist/esm/BackHandler/index.native.js +13 -11
- package/dist/esm/BackHandler/index.native.js.map +6 -1
- package/dist/esm/Clipboard/index.native.js +26 -21
- package/dist/esm/Clipboard/index.native.js.map +6 -1
- package/dist/esm/DeviceEmitter.native.js +5 -3
- package/dist/esm/DeviceEmitter.native.js.map +6 -1
- package/dist/esm/DeviceInfo/index.native.js +33 -41
- package/dist/esm/DeviceInfo/index.native.js.map +6 -1
- package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Dimensions/index.native.js +53 -49
- package/dist/esm/Dimensions/index.native.js.map +6 -1
- package/dist/esm/I18nManager/index.native.js +13 -10
- package/dist/esm/I18nManager/index.native.js.map +6 -1
- package/dist/esm/Image/index.native.js +149 -174
- package/dist/esm/Image/index.native.js.map +6 -1
- package/dist/esm/Image/types.native.js +1 -2
- package/dist/esm/Image/types.native.js.map +6 -1
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ImageBackground/index.native.js +33 -35
- package/dist/esm/ImageBackground/index.native.js.map +6 -1
- package/dist/esm/Keyboard/index.native.js +17 -13
- package/dist/esm/Keyboard/index.native.js.map +6 -1
- package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Linking/index.native.js +49 -42
- package/dist/esm/Linking/index.native.js.map +6 -1
- package/dist/esm/LogBox/index.native.js +12 -7
- package/dist/esm/LogBox/index.native.js.map +6 -1
- package/dist/esm/Modal/ModalAnimation.native.js +112 -89
- package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
- package/dist/esm/Modal/ModalContent.native.js +54 -52
- package/dist/esm/Modal/ModalContent.native.js.map +6 -1
- package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
- package/dist/esm/Modal/ModalPortal.native.js +11 -9
- package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
- package/dist/esm/Modal/index.native.js +45 -53
- package/dist/esm/Modal/index.native.js.map +6 -1
- package/dist/esm/NativeModules/index.native.js +6 -5
- package/dist/esm/NativeModules/index.native.js.map +6 -1
- package/dist/esm/PanResponder/Alternative.js +122 -157
- package/dist/esm/PanResponder/Alternative.js.map +6 -1
- package/dist/esm/PanResponder/index.native.js +5 -3
- package/dist/esm/PanResponder/index.native.js.map +6 -1
- package/dist/esm/PixelRatio/index.native.js +59 -48
- package/dist/esm/PixelRatio/index.native.js.map +6 -1
- package/dist/esm/Pressable/index.native.js +67 -70
- package/dist/esm/Pressable/index.native.js.map +6 -1
- package/dist/esm/RefreshControl/index.native.js +6 -4
- package/dist/esm/RefreshControl/index.native.js.map +6 -1
- package/dist/esm/SafeAreaView/index.native.js +21 -24
- package/dist/esm/SafeAreaView/index.native.js.map +6 -1
- package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
- package/dist/esm/ScrollView/index.native.js +211 -183
- package/dist/esm/ScrollView/index.native.js.map +6 -1
- package/dist/esm/Share/index.native.js +36 -29
- package/dist/esm/Share/index.native.js.map +6 -1
- package/dist/esm/StatusBar/index.native.js +6 -3
- package/dist/esm/StatusBar/index.native.js.map +6 -1
- package/dist/esm/Text/index.native.js +100 -128
- package/dist/esm/Text/index.native.js.map +6 -1
- package/dist/esm/Text/types.native.js +1 -2
- package/dist/esm/Text/types.native.js.map +6 -1
- package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/TextInput/index.native.js +157 -220
- package/dist/esm/TextInput/index.native.js.map +6 -1
- package/dist/esm/TextInput/types.native.js +1 -2
- package/dist/esm/TextInput/types.native.js.map +6 -1
- package/dist/esm/TouchableOpacity.native.js +67 -63
- package/dist/esm/TouchableOpacity.native.js.map +6 -1
- package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
- package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
- package/dist/esm/UnimplementedView.native.js +30 -22
- package/dist/esm/UnimplementedView.native.js.map +6 -1
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +6 -1
- package/dist/esm/View/index.native.js +55 -84
- package/dist/esm/View/index.native.js.map +6 -1
- package/dist/esm/View/types.native.js +1 -2
- package/dist/esm/View/types.native.js.map +6 -1
- package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
- package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/createElement/index.native.js +14 -16
- package/dist/esm/createElement/index.native.js.map +6 -1
- package/dist/esm/createReactDOMStyle.native.js +4 -2
- package/dist/esm/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/findNodeHandle.native.js +7 -4
- package/dist/esm/findNodeHandle.native.js.map +6 -1
- package/dist/esm/index.native.js +133 -55
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/render/index.native.js +9 -4
- package/dist/esm/render/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +6 -1
- package/dist/esm/useLocaleContext/index.native.js +4 -2
- package/dist/esm/useLocaleContext/index.native.js.map +6 -1
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
- package/dist/esm/without-animated.native.js +115 -52
- package/dist/esm/without-animated.native.js.map +6 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import NativeAnimatedHelper from "../NativeAnimatedHelper
|
|
1
|
+
import NativeAnimatedHelper from "../NativeAnimatedHelper";
|
|
2
2
|
function _class_call_check(instance, Constructor) {
|
|
3
|
-
if (!(instance instanceof Constructor))
|
|
3
|
+
if (!(instance instanceof Constructor))
|
|
4
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4
5
|
}
|
|
5
6
|
function _defineProperties(target, props) {
|
|
6
7
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -11,49 +12,60 @@ function _defineProperties(target, props) {
|
|
|
11
12
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
12
13
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
13
14
|
}
|
|
14
|
-
var startNativeAnimationNextId = 1,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
var startNativeAnimationNextId = 1, Animation = /* @__PURE__ */ function() {
|
|
16
|
+
function Animation2() {
|
|
17
|
+
_class_call_check(this, Animation2);
|
|
18
|
+
}
|
|
19
|
+
return _create_class(Animation2, [
|
|
20
|
+
{
|
|
20
21
|
key: "start",
|
|
21
|
-
value: function
|
|
22
|
-
|
|
22
|
+
value: function(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
23
26
|
key: "stop",
|
|
24
|
-
value: function
|
|
27
|
+
value: function() {
|
|
25
28
|
this.__nativeId && NativeAnimatedHelper.API.stopAnimation(this.__nativeId);
|
|
26
29
|
}
|
|
27
|
-
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
28
32
|
key: "__getNativeAnimationConfig",
|
|
29
|
-
value: function
|
|
33
|
+
value: function() {
|
|
30
34
|
throw new Error("This animation type cannot be offloaded to native");
|
|
31
35
|
}
|
|
32
|
-
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
33
38
|
// Helper function for subclasses to make sure onEnd is only called once.
|
|
34
39
|
key: "__debouncedOnEnd",
|
|
35
|
-
value: function
|
|
40
|
+
value: function(result) {
|
|
36
41
|
var onEnd = this.__onEnd;
|
|
37
42
|
this.__onEnd = null, onEnd && onEnd(result);
|
|
38
43
|
}
|
|
39
|
-
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
40
46
|
key: "__startNativeAnimation",
|
|
41
|
-
value: function
|
|
47
|
+
value: function(animatedValue) {
|
|
42
48
|
var startNativeAnimationWaitId = startNativeAnimationNextId + ":startAnimation";
|
|
43
49
|
startNativeAnimationNextId += 1, NativeAnimatedHelper.API.setWaitingForIdentifier(startNativeAnimationWaitId);
|
|
44
50
|
try {
|
|
45
51
|
var config = this.__getNativeAnimationConfig();
|
|
46
|
-
animatedValue.__makeNative(config.platformConfig), this.__nativeId = NativeAnimatedHelper.generateNewAnimationId(), NativeAnimatedHelper.API.startAnimatingNode(
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
animatedValue.__makeNative(config.platformConfig), this.__nativeId = NativeAnimatedHelper.generateNewAnimationId(), NativeAnimatedHelper.API.startAnimatingNode(
|
|
53
|
+
this.__nativeId,
|
|
54
|
+
animatedValue.__getNativeTag(),
|
|
55
|
+
config,
|
|
56
|
+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
|
|
57
|
+
this.__debouncedOnEnd.bind(this)
|
|
58
|
+
);
|
|
49
59
|
} catch (e) {
|
|
50
60
|
throw e;
|
|
51
61
|
} finally {
|
|
52
62
|
NativeAnimatedHelper.API.unsetWaitingForIdentifier(startNativeAnimationWaitId);
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
|
|
65
|
+
}
|
|
66
|
+
]), Animation2;
|
|
67
|
+
}(), Animation_default = Animation;
|
|
68
|
+
export {
|
|
69
|
+
Animation_default as default
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=Animation.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/animations/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/animations/Animation.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,0BAA0B;;;;;;;;;;;;;;AACjC,IAAIC,6BAA6B,GAI3BC,YAAN,2BAAA;WAAMA,aAAAA;4BAAAA,UAAAA;;uBAAAA,YAAAA;;MACJC,KAAAA;aAAAA,SAAMC,WAAWC,UAAUC,OAAOC,mBAAmBC,eAAa;MAAG;;;MAErEC,KAAAA;aAAAA,WAAAA;AACE,QAAI,KAAKC,cACPV,qBAAqBW,IAAIC,cAAc,KAAKF,UAAU;MAE1D;;;MAEAG,KAAAA;aAAAA,WAAAA;AAGE,cAAM,IAAIC,MAAM,mDAAA;MAClB;;;;MAEAC,KAAAA;aAAAA,SAAiBC,QAAM;AACrB,YAAIV,QAAQ,KAAKW;AACjB,aAAKA,UAAU,MACfX,SAASA,MAAMU,MAAAA;MACjB;;;MAEAE,KAAAA;aAAAA,SAAuBV,eAAa;AAClC,YAAIW,6BAA6BlB,6BAA6B;AAC9DA,sCAA8B,GAC9BD,qBAAqBW,IAAIS,wBAAwBD,0BAAAA;AAEjD,YAAI;AACF,cAAIE,SAAS,KAAKR,2BAA0B;AAE5CL,wBAAcc,aAAaD,OAAOE,cAAc,GAEhD,KAAKb,aAAaV,qBAAqBwB,uBAAsB,GAC7DxB,qBAAqBW,IAAIc;YACvB,KAAKf;YACLF,cAAckB,eAAc;YAC5BL;;YACA,KAAKN,iBAAiBY,KAAK,IAAI;UAAA;QAEnC,SAASC,GAAG;AACV,gBAAMA;QACR,UAAA;AACE5B,+BAAqBW,IAAIkB,0BAA0BV,0BAAAA;QACrD;MACF;;MA3CIjB;KA8CN,oBAAeA;",
|
|
5
|
+
"names": ["NativeAnimatedHelper", "startNativeAnimationNextId", "Animation", "start", "fromValue", "onUpdate", "onEnd", "previousAnimation", "animatedValue", "stop", "__nativeId", "API", "stopAnimation", "__getNativeAnimationConfig", "Error", "__debouncedOnEnd", "result", "__onEnd", "__startNativeAnimation", "startNativeAnimationWaitId", "setWaitingForIdentifier", "config", "__makeNative", "platformConfig", "generateNewAnimationId", "startAnimatingNode", "__getNativeTag", "bind", "e", "unsetWaitingForIdentifier"]
|
|
6
|
+
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { shouldUseNativeDriver } from "../NativeAnimatedHelper
|
|
2
|
-
import Animation from "./Animation
|
|
1
|
+
import { shouldUseNativeDriver } from "../NativeAnimatedHelper";
|
|
2
|
+
import Animation from "./Animation";
|
|
3
3
|
function _assert_this_initialized(self) {
|
|
4
|
-
if (self === void 0)
|
|
4
|
+
if (self === void 0)
|
|
5
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
6
|
return self;
|
|
6
7
|
}
|
|
7
8
|
function _call_super(_this, derived, args) {
|
|
8
9
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
9
10
|
}
|
|
10
11
|
function _class_call_check(instance, Constructor) {
|
|
11
|
-
if (!(instance instanceof Constructor))
|
|
12
|
+
if (!(instance instanceof Constructor))
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
12
14
|
}
|
|
13
15
|
function _construct(Parent, args, Class) {
|
|
14
|
-
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function
|
|
15
|
-
var a = [
|
|
16
|
+
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function(Parent2, args2, Class2) {
|
|
17
|
+
var a = [
|
|
18
|
+
null
|
|
19
|
+
];
|
|
16
20
|
a.push.apply(a, args2);
|
|
17
|
-
var Constructor = Function.bind.apply(Parent2, a),
|
|
18
|
-
instance = new Constructor();
|
|
21
|
+
var Constructor = Function.bind.apply(Parent2, a), instance = new Constructor();
|
|
19
22
|
return Class2 && _set_prototype_of(instance, Class2.prototype), instance;
|
|
20
23
|
}, _construct.apply(null, arguments);
|
|
21
24
|
}
|
|
@@ -29,7 +32,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
29
32
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
30
33
|
}
|
|
31
34
|
function _get(target, property, receiver) {
|
|
32
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
35
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
33
36
|
var base = _super_prop_base(target2, property2);
|
|
34
37
|
if (base) {
|
|
35
38
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -38,12 +41,13 @@ function _get(target, property, receiver) {
|
|
|
38
41
|
}, _get(target, property, receiver || target);
|
|
39
42
|
}
|
|
40
43
|
function _get_prototype_of(o) {
|
|
41
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
44
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
42
45
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
43
46
|
}, _get_prototype_of(o);
|
|
44
47
|
}
|
|
45
48
|
function _inherits(subClass, superClass) {
|
|
46
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
49
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
50
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
47
51
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
52
|
constructor: {
|
|
49
53
|
value: subClass,
|
|
@@ -59,24 +63,25 @@ function _possible_constructor_return(self, call) {
|
|
|
59
63
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
60
64
|
}
|
|
61
65
|
function _set_prototype_of(o, p) {
|
|
62
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
66
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
63
67
|
return o2.__proto__ = p2, o2;
|
|
64
68
|
}, _set_prototype_of(o, p);
|
|
65
69
|
}
|
|
66
70
|
function _super_prop_base(object, property) {
|
|
67
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
71
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
72
|
+
;
|
|
68
73
|
return object;
|
|
69
74
|
}
|
|
70
75
|
function _type_of(obj) {
|
|
71
76
|
"@swc/helpers - typeof";
|
|
72
|
-
|
|
73
77
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _wrap_native_super(Class) {
|
|
76
|
-
var _cache = typeof Map == "function" ? /* @__PURE__ */new Map() : void 0;
|
|
77
|
-
return _wrap_native_super = function
|
|
80
|
+
var _cache = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
81
|
+
return _wrap_native_super = function(Class2) {
|
|
78
82
|
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
79
|
-
if (typeof Class2 != "function")
|
|
83
|
+
if (typeof Class2 != "function")
|
|
84
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
80
85
|
if (typeof _cache < "u") {
|
|
81
86
|
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
82
87
|
_cache.set(Class2, Wrapper);
|
|
@@ -96,22 +101,25 @@ function _wrap_native_super(Class) {
|
|
|
96
101
|
}
|
|
97
102
|
function _is_native_reflect_construct() {
|
|
98
103
|
try {
|
|
99
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
105
|
+
}));
|
|
106
|
+
} catch {
|
|
107
|
+
}
|
|
108
|
+
return (_is_native_reflect_construct = function() {
|
|
102
109
|
return !!result;
|
|
103
110
|
})();
|
|
104
111
|
}
|
|
105
|
-
var DecayAnimation = /* @__PURE__ */function
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
var DecayAnimation = /* @__PURE__ */ function(Animation2) {
|
|
113
|
+
_inherits(DecayAnimation2, Animation2);
|
|
114
|
+
function DecayAnimation2(config) {
|
|
115
|
+
_class_call_check(this, DecayAnimation2);
|
|
116
|
+
var _this, _config$deceleration, _config$isInteraction, _config$iterations;
|
|
117
|
+
return _this = _call_super(this, DecayAnimation2), _this._deceleration = (_config$deceleration = config.deceleration) !== null && _config$deceleration !== void 0 ? _config$deceleration : 0.998, _this._velocity = config.velocity, _this._useNativeDriver = shouldUseNativeDriver(config), _this.__isInteraction = (_config$isInteraction = config.isInteraction) !== null && _config$isInteraction !== void 0 ? _config$isInteraction : !_this._useNativeDriver, _this.__iterations = (_config$iterations = config.iterations) !== null && _config$iterations !== void 0 ? _config$iterations : 1, _this;
|
|
118
|
+
}
|
|
119
|
+
return _create_class(DecayAnimation2, [
|
|
120
|
+
{
|
|
113
121
|
key: "__getNativeAnimationConfig",
|
|
114
|
-
value: function
|
|
122
|
+
value: function() {
|
|
115
123
|
return {
|
|
116
124
|
type: "decay",
|
|
117
125
|
deceleration: this._deceleration,
|
|
@@ -119,16 +127,17 @@ var DecayAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
119
127
|
iterations: this.__iterations
|
|
120
128
|
};
|
|
121
129
|
}
|
|
122
|
-
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
123
132
|
key: "start",
|
|
124
|
-
value: function
|
|
133
|
+
value: function(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {
|
|
125
134
|
this.__active = !0, this._lastValue = fromValue, this._fromValue = fromValue, this._onUpdate = onUpdate, this.__onEnd = onEnd, this._startTime = Date.now(), this._useNativeDriver ? this.__startNativeAnimation(animatedValue) : this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
|
|
126
135
|
}
|
|
127
|
-
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
128
138
|
key: "onUpdate",
|
|
129
|
-
value: function
|
|
130
|
-
var now = Date.now(),
|
|
131
|
-
value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime)));
|
|
139
|
+
value: function() {
|
|
140
|
+
var now = Date.now(), value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime)));
|
|
132
141
|
if (this._onUpdate(value), Math.abs(this._lastValue - value) < 0.1) {
|
|
133
142
|
this.__debouncedOnEnd({
|
|
134
143
|
finished: !0
|
|
@@ -137,15 +146,18 @@ var DecayAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
137
146
|
}
|
|
138
147
|
this._lastValue = value, this.__active && (this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)));
|
|
139
148
|
}
|
|
140
|
-
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
141
151
|
key: "stop",
|
|
142
|
-
value: function
|
|
152
|
+
value: function() {
|
|
143
153
|
_get(_get_prototype_of(DecayAnimation2.prototype), "stop", this).call(this), this.__active = !1, global.cancelAnimationFrame(this._animationFrame), this.__debouncedOnEnd({
|
|
144
154
|
finished: !1
|
|
145
155
|
});
|
|
146
156
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
export {
|
|
151
|
-
|
|
157
|
+
}
|
|
158
|
+
]), DecayAnimation2;
|
|
159
|
+
}(_wrap_native_super(Animation)), DecayAnimation_default = DecayAnimation;
|
|
160
|
+
export {
|
|
161
|
+
DecayAnimation_default as default
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=DecayAnimation.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/animations/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/animations/DecayAnimation.js"],
|
|
4
|
+
"mappings": "AAWA,SAASA,6BAA6B;AACtC,OAAOC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB,IAAMC,iBAAN,yBAAAD,YAAA;YAAMC,iBAAAA,UAAAA;WAAAA,gBACQC,QAAM;4BADdD,eAAAA;eAEEE,sBAAsBC,uBAAuBC;mBAEjD,YAAA,MAJEJ,eAAAA,GAKF,MAAKK,iBACFH,uBAAuBD,OAAOK,kBAAkB,QACjDJ,yBAAyB,SACrBA,uBACA,OACN,MAAKK,YAAYN,OAAOO,UACxB,MAAKC,mBAAmBX,sBAAsBG,MAAAA,GAC9C,MAAKS,mBACFP,wBAAwBF,OAAOU,mBAAmB,QACnDR,0BAA0B,SACtBA,wBACA,CAAC,MAAKM,kBACZ,MAAKG,gBACFR,qBAAqBH,OAAOY,gBAAgB,QAAQT,uBAAuB,SACxEA,qBACA;;uBApBJJ,iBAAAA;;MAuBJc,KAAAA;aAAAA,WAAAA;AACE,eAAO;UACLC,MAAM;UACNT,cAAc,KAAKD;UACnBG,UAAU,KAAKD;UACfM,YAAY,KAAKD;QACnB;MACF;;;MAEAI,KAAAA;aAAAA,SAAMC,WAAWC,UAAUC,OAAOC,mBAAmBC,eAAa;AAChE,aAAKC,WAAW,IAChB,KAAKC,aAAaN,WAClB,KAAKO,aAAaP,WAClB,KAAKQ,YAAYP,UACjB,KAAKQ,UAAUP,OACf,KAAKQ,aAAaC,KAAKC,IAAG,GAEtB,KAAKpB,mBACP,KAAKqB,uBAAuBT,aAAAA,IAE5B,KAAKU,kBAAkBC,sBAAsB,KAAKd,SAASe,KAAK,IAAI,CAAA;MAExE;;;MAEAf,KAAAA;aAAAA,WAAAA;AACE,YAAIW,MAAMD,KAAKC,IAAG,GACdK,QACF,KAAKV,aACJ,KAAKjB,aAAa,IAAI,KAAKF,kBACzB,IAAI8B,KAAKC,IAAI,EAAE,IAAI,KAAK/B,kBAAkBwB,MAAM,KAAKF,WAAS;AAInE,YAFA,KAAKF,UAAUS,KAAAA,GAEXC,KAAKE,IAAI,KAAKd,aAAaW,KAAAA,IAAS,KAAK;AAC3C,eAAKI,iBAAiB;YACpBC,UAAU;UACZ,CAAA;AAEA;QACF;AAEA,aAAKhB,aAAaW,OAEd,KAAKZ,aACP,KAAKS,kBAAkBC,sBAAsB,KAAKd,SAASe,KAAK,IAAI,CAAA;MAExE;;;MAEAO,KAAAA;aAAAA,WAAAA;AACE,aAAA,kBAxEExC,gBAAAA,SAAAA,GAwEIwC,QAAN,IAAK,EAAA,KAAA,IAAA,GACL,KAAKlB,WAAW,IAChBmB,OAAOC,qBAAqB,KAAKX,eAAe,GAEhD,KAAKO,iBAAiB;UACpBC,UAAU;QACZ,CAAA;MACF;;MA/EIvC;qBAAuBD,SAAAA,CAAAA,GAkF7B,yBAAeC;",
|
|
5
|
+
"names": ["shouldUseNativeDriver", "Animation", "DecayAnimation", "config", "_config$deceleration", "_config$isInteraction", "_config$iterations", "_deceleration", "deceleration", "_velocity", "velocity", "_useNativeDriver", "__isInteraction", "isInteraction", "__iterations", "iterations", "__getNativeAnimationConfig", "type", "start", "fromValue", "onUpdate", "onEnd", "previousAnimation", "animatedValue", "__active", "_lastValue", "_fromValue", "_onUpdate", "__onEnd", "_startTime", "Date", "now", "__startNativeAnimation", "_animationFrame", "requestAnimationFrame", "bind", "value", "Math", "exp", "abs", "__debouncedOnEnd", "finished", "stop", "global", "cancelAnimationFrame"]
|
|
6
|
+
}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { invariant } from "@tamagui/react-native-web-internals";
|
|
2
|
-
import { shouldUseNativeDriver } from "../NativeAnimatedHelper
|
|
3
|
-
import SpringConfig from "../SpringConfig
|
|
4
|
-
import Animation from "./Animation
|
|
2
|
+
import { shouldUseNativeDriver } from "../NativeAnimatedHelper";
|
|
3
|
+
import SpringConfig from "../SpringConfig";
|
|
4
|
+
import Animation from "./Animation";
|
|
5
5
|
function _assert_this_initialized(self) {
|
|
6
|
-
if (self === void 0)
|
|
6
|
+
if (self === void 0)
|
|
7
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7
8
|
return self;
|
|
8
9
|
}
|
|
9
10
|
function _call_super(_this, derived, args) {
|
|
10
11
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
11
12
|
}
|
|
12
13
|
function _class_call_check(instance, Constructor) {
|
|
13
|
-
if (!(instance instanceof Constructor))
|
|
14
|
+
if (!(instance instanceof Constructor))
|
|
15
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
16
|
}
|
|
15
17
|
function _construct(Parent, args, Class) {
|
|
16
|
-
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function
|
|
17
|
-
var a = [
|
|
18
|
+
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function(Parent2, args2, Class2) {
|
|
19
|
+
var a = [
|
|
20
|
+
null
|
|
21
|
+
];
|
|
18
22
|
a.push.apply(a, args2);
|
|
19
|
-
var Constructor = Function.bind.apply(Parent2, a),
|
|
20
|
-
instance = new Constructor();
|
|
23
|
+
var Constructor = Function.bind.apply(Parent2, a), instance = new Constructor();
|
|
21
24
|
return Class2 && _set_prototype_of(instance, Class2.prototype), instance;
|
|
22
25
|
}, _construct.apply(null, arguments);
|
|
23
26
|
}
|
|
@@ -31,7 +34,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
31
34
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
32
35
|
}
|
|
33
36
|
function _get(target, property, receiver) {
|
|
34
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
37
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
35
38
|
var base = _super_prop_base(target2, property2);
|
|
36
39
|
if (base) {
|
|
37
40
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -40,12 +43,13 @@ function _get(target, property, receiver) {
|
|
|
40
43
|
}, _get(target, property, receiver || target);
|
|
41
44
|
}
|
|
42
45
|
function _get_prototype_of(o) {
|
|
43
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
46
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
44
47
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
45
48
|
}, _get_prototype_of(o);
|
|
46
49
|
}
|
|
47
50
|
function _inherits(subClass, superClass) {
|
|
48
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
51
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
52
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
49
53
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
50
54
|
constructor: {
|
|
51
55
|
value: subClass,
|
|
@@ -61,24 +65,25 @@ function _possible_constructor_return(self, call) {
|
|
|
61
65
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
62
66
|
}
|
|
63
67
|
function _set_prototype_of(o, p) {
|
|
64
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
68
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
65
69
|
return o2.__proto__ = p2, o2;
|
|
66
70
|
}, _set_prototype_of(o, p);
|
|
67
71
|
}
|
|
68
72
|
function _super_prop_base(object, property) {
|
|
69
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
73
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
74
|
+
;
|
|
70
75
|
return object;
|
|
71
76
|
}
|
|
72
77
|
function _type_of(obj) {
|
|
73
78
|
"@swc/helpers - typeof";
|
|
74
|
-
|
|
75
79
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
76
80
|
}
|
|
77
81
|
function _wrap_native_super(Class) {
|
|
78
|
-
var _cache = typeof Map == "function" ? /* @__PURE__ */new Map() : void 0;
|
|
79
|
-
return _wrap_native_super = function
|
|
82
|
+
var _cache = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
83
|
+
return _wrap_native_super = function(Class2) {
|
|
80
84
|
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
81
|
-
if (typeof Class2 != "function")
|
|
85
|
+
if (typeof Class2 != "function")
|
|
86
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
82
87
|
if (typeof _cache < "u") {
|
|
83
88
|
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
84
89
|
_cache.set(Class2, Wrapper);
|
|
@@ -98,36 +103,37 @@ function _wrap_native_super(Class) {
|
|
|
98
103
|
}
|
|
99
104
|
function _is_native_reflect_construct() {
|
|
100
105
|
try {
|
|
101
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
107
|
+
}));
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
return (_is_native_reflect_construct = function() {
|
|
104
111
|
return !!result;
|
|
105
112
|
})();
|
|
106
113
|
}
|
|
107
|
-
var SpringAnimation = /* @__PURE__ */function
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
_springConfig = SpringConfig.fromOrigamiTensionAndFriction((_config$tension = config.tension) !== null && _config$tension !== void 0 ? _config$tension : 40, (_config$friction = config.friction) !== null && _config$friction !== void 0 ? _config$friction : 7);
|
|
124
|
-
_this._stiffness = _springConfig.stiffness, _this._damping = _springConfig.damping, _this._mass = 1;
|
|
125
|
-
}
|
|
126
|
-
return invariant(_this._stiffness > 0, "Stiffness value must be greater than 0"), invariant(_this._damping > 0, "Damping value must be greater than 0"), invariant(_this._mass > 0, "Mass value must be greater than 0"), _this;
|
|
114
|
+
var SpringAnimation = /* @__PURE__ */ function(Animation2) {
|
|
115
|
+
_inherits(SpringAnimation2, Animation2);
|
|
116
|
+
function SpringAnimation2(config) {
|
|
117
|
+
_class_call_check(this, SpringAnimation2);
|
|
118
|
+
var _this, _config$overshootClam, _config$restDisplacem, _config$restSpeedThre, _config$velocity, _config$velocity2, _config$delay, _config$isInteraction, _config$iterations;
|
|
119
|
+
if (_this = _call_super(this, SpringAnimation2), _this._overshootClamping = (_config$overshootClam = config.overshootClamping) !== null && _config$overshootClam !== void 0 ? _config$overshootClam : !1, _this._restDisplacementThreshold = (_config$restDisplacem = config.restDisplacementThreshold) !== null && _config$restDisplacem !== void 0 ? _config$restDisplacem : 1e-3, _this._restSpeedThreshold = (_config$restSpeedThre = config.restSpeedThreshold) !== null && _config$restSpeedThre !== void 0 ? _config$restSpeedThre : 1e-3, _this._initialVelocity = (_config$velocity = config.velocity) !== null && _config$velocity !== void 0 ? _config$velocity : 0, _this._lastVelocity = (_config$velocity2 = config.velocity) !== null && _config$velocity2 !== void 0 ? _config$velocity2 : 0, _this._toValue = config.toValue, _this._delay = (_config$delay = config.delay) !== null && _config$delay !== void 0 ? _config$delay : 0, _this._useNativeDriver = shouldUseNativeDriver(config), _this._platformConfig = config.platformConfig, _this.__isInteraction = (_config$isInteraction = config.isInteraction) !== null && _config$isInteraction !== void 0 ? _config$isInteraction : !_this._useNativeDriver, _this.__iterations = (_config$iterations = config.iterations) !== null && _config$iterations !== void 0 ? _config$iterations : 1, config.stiffness !== void 0 || config.damping !== void 0 || config.mass !== void 0) {
|
|
120
|
+
var _config$stiffness, _config$damping, _config$mass;
|
|
121
|
+
invariant(config.bounciness === void 0 && config.speed === void 0 && config.tension === void 0 && config.friction === void 0, "You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"), _this._stiffness = (_config$stiffness = config.stiffness) !== null && _config$stiffness !== void 0 ? _config$stiffness : 100, _this._damping = (_config$damping = config.damping) !== null && _config$damping !== void 0 ? _config$damping : 10, _this._mass = (_config$mass = config.mass) !== null && _config$mass !== void 0 ? _config$mass : 1;
|
|
122
|
+
} else if (config.bounciness !== void 0 || config.speed !== void 0) {
|
|
123
|
+
var _config$bounciness, _config$speed;
|
|
124
|
+
invariant(config.tension === void 0 && config.friction === void 0 && config.stiffness === void 0 && config.damping === void 0 && config.mass === void 0, "You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");
|
|
125
|
+
var springConfig = SpringConfig.fromBouncinessAndSpeed((_config$bounciness = config.bounciness) !== null && _config$bounciness !== void 0 ? _config$bounciness : 8, (_config$speed = config.speed) !== null && _config$speed !== void 0 ? _config$speed : 12);
|
|
126
|
+
_this._stiffness = springConfig.stiffness, _this._damping = springConfig.damping, _this._mass = 1;
|
|
127
|
+
} else {
|
|
128
|
+
var _config$tension, _config$friction, _springConfig = SpringConfig.fromOrigamiTensionAndFriction((_config$tension = config.tension) !== null && _config$tension !== void 0 ? _config$tension : 40, (_config$friction = config.friction) !== null && _config$friction !== void 0 ? _config$friction : 7);
|
|
129
|
+
_this._stiffness = _springConfig.stiffness, _this._damping = _springConfig.damping, _this._mass = 1;
|
|
127
130
|
}
|
|
128
|
-
return
|
|
131
|
+
return invariant(_this._stiffness > 0, "Stiffness value must be greater than 0"), invariant(_this._damping > 0, "Damping value must be greater than 0"), invariant(_this._mass > 0, "Mass value must be greater than 0"), _this;
|
|
132
|
+
}
|
|
133
|
+
return _create_class(SpringAnimation2, [
|
|
134
|
+
{
|
|
129
135
|
key: "__getNativeAnimationConfig",
|
|
130
|
-
value: function
|
|
136
|
+
value: function() {
|
|
131
137
|
var _this$_initialVelocit;
|
|
132
138
|
return {
|
|
133
139
|
type: "spring",
|
|
@@ -143,29 +149,32 @@ var SpringAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
143
149
|
platformConfig: this._platformConfig
|
|
144
150
|
};
|
|
145
151
|
}
|
|
146
|
-
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
147
154
|
key: "start",
|
|
148
|
-
value: function
|
|
155
|
+
value: function(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {
|
|
149
156
|
var _this = this;
|
|
150
157
|
if (this.__active = !0, this._startPosition = fromValue, this._lastPosition = this._startPosition, this._onUpdate = onUpdate, this.__onEnd = onEnd, this._lastTime = Date.now(), this._frameTime = 0, previousAnimation instanceof SpringAnimation2) {
|
|
151
158
|
var internalState = previousAnimation.getInternalState();
|
|
152
159
|
this._lastPosition = internalState.lastPosition, this._lastVelocity = internalState.lastVelocity, this._initialVelocity = this._lastVelocity, this._lastTime = internalState.lastTime;
|
|
153
160
|
}
|
|
154
|
-
var start2 = function
|
|
161
|
+
var start2 = function() {
|
|
155
162
|
_this._useNativeDriver ? _this.__startNativeAnimation(animatedValue) : _this.onUpdate();
|
|
156
163
|
};
|
|
157
164
|
this._delay ? this._timeout = setTimeout(start2, this._delay) : start2();
|
|
158
165
|
}
|
|
159
|
-
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
160
168
|
key: "getInternalState",
|
|
161
|
-
value: function
|
|
169
|
+
value: function() {
|
|
162
170
|
return {
|
|
163
171
|
lastPosition: this._lastPosition,
|
|
164
172
|
lastVelocity: this._lastVelocity,
|
|
165
173
|
lastTime: this._lastTime
|
|
166
174
|
};
|
|
167
175
|
}
|
|
168
|
-
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
169
178
|
/**
|
|
170
179
|
* This spring model is based off of a damped harmonic oscillator
|
|
171
180
|
* (https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator).
|
|
@@ -188,23 +197,12 @@ var SpringAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
188
197
|
* a QuartzCore (iOS) API that creates spring animations.
|
|
189
198
|
*/
|
|
190
199
|
key: "onUpdate",
|
|
191
|
-
value: function
|
|
192
|
-
var MAX_STEPS = 64,
|
|
193
|
-
now = Date.now();
|
|
200
|
+
value: function() {
|
|
201
|
+
var MAX_STEPS = 64, now = Date.now();
|
|
194
202
|
now > this._lastTime + MAX_STEPS && (now = this._lastTime + MAX_STEPS);
|
|
195
203
|
var deltaTime = (now - this._lastTime) / 1e3;
|
|
196
204
|
this._frameTime += deltaTime;
|
|
197
|
-
var c = this._damping,
|
|
198
|
-
m = this._mass,
|
|
199
|
-
k = this._stiffness,
|
|
200
|
-
v0 = -this._initialVelocity,
|
|
201
|
-
zeta = c / (2 * Math.sqrt(k * m)),
|
|
202
|
-
omega0 = Math.sqrt(k / m),
|
|
203
|
-
omega1 = omega0 * Math.sqrt(1 - zeta * zeta),
|
|
204
|
-
x0 = this._toValue - this._startPosition,
|
|
205
|
-
position = 0,
|
|
206
|
-
velocity = 0,
|
|
207
|
-
t = this._frameTime;
|
|
205
|
+
var c = this._damping, m = this._mass, k = this._stiffness, v0 = -this._initialVelocity, zeta = c / (2 * Math.sqrt(k * m)), omega0 = Math.sqrt(k / m), omega1 = omega0 * Math.sqrt(1 - zeta * zeta), x0 = this._toValue - this._startPosition, position = 0, velocity = 0, t = this._frameTime;
|
|
208
206
|
if (zeta < 1) {
|
|
209
207
|
var envelope = Math.exp(-zeta * omega0 * t);
|
|
210
208
|
position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)), velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t));
|
|
@@ -215,8 +213,7 @@ var SpringAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
215
213
|
if (this._lastTime = now, this._lastPosition = position, this._lastVelocity = velocity, this._onUpdate(position), !!this.__active) {
|
|
216
214
|
var isOvershooting = !1;
|
|
217
215
|
this._overshootClamping && this._stiffness !== 0 && (this._startPosition < this._toValue ? isOvershooting = position > this._toValue : isOvershooting = position < this._toValue);
|
|
218
|
-
var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold,
|
|
219
|
-
isDisplacement = !0;
|
|
216
|
+
var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold, isDisplacement = !0;
|
|
220
217
|
if (this._stiffness !== 0 && (isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold), isOvershooting || isVelocity && isDisplacement) {
|
|
221
218
|
this._stiffness !== 0 && (this._lastPosition = this._toValue, this._lastVelocity = 0, this._onUpdate(this._toValue)), this.__debouncedOnEnd({
|
|
222
219
|
finished: !0
|
|
@@ -226,15 +223,18 @@ var SpringAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
226
223
|
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
|
|
227
224
|
}
|
|
228
225
|
}
|
|
229
|
-
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
230
228
|
key: "stop",
|
|
231
|
-
value: function
|
|
229
|
+
value: function() {
|
|
232
230
|
_get(_get_prototype_of(SpringAnimation2.prototype), "stop", this).call(this), this.__active = !1, clearTimeout(this._timeout), global.cancelAnimationFrame(this._animationFrame), this.__debouncedOnEnd({
|
|
233
231
|
finished: !1
|
|
234
232
|
});
|
|
235
233
|
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
export {
|
|
240
|
-
|
|
234
|
+
}
|
|
235
|
+
]), SpringAnimation2;
|
|
236
|
+
}(_wrap_native_super(Animation)), SpringAnimation_default = SpringAnimation;
|
|
237
|
+
export {
|
|
238
|
+
SpringAnimation_default as default
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=SpringAnimation.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/animations/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/animations/SpringAnimation.js"],
|
|
4
|
+
"mappings": "AAWA,SAASA,iBAAiB;AAE1B,SAASC,6BAA6B;AACtC,OAAOC,kBAAkB;AACzB,OAAOC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB,IAAMC,kBAAN,yBAAAD,YAAA;YAAMC,kBAAAA,UAAAA;WAAAA,iBACQC,QAAM;4BADdD,gBAAAA;eAEEE,uBACFC,uBACAC,uBACAC,kBACAC,mBACAC,eACAC,uBACAC;AA2CF,gBAzCA,YAAA,MAXET,gBAAAA,GAYF,MAAKU,sBACFR,wBAAwBD,OAAOU,uBAAuB,QACvDT,0BAA0B,SACtBA,wBACA,IACN,MAAKU,8BACFT,wBAAwBF,OAAOY,+BAA+B,QAC/DV,0BAA0B,SACtBA,wBACA,MACN,MAAKW,uBACFV,wBAAwBH,OAAOc,wBAAwB,QACxDX,0BAA0B,SACtBA,wBACA,MACN,MAAKY,oBAC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I,CAAA;;MACtE;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAA,kBA7TE3G,iBAAAA,SAAAA,GA6TI2G,QAAN,IAAK,EAAA,KAAA,IAAA,GACL,KAAK7C,WAAW,IAChB8C,aAAa,KAAK/B,QAAQ,GAC1BgC,OAAOC,qBAAqB,KAAKN,eAAe,GAEhD,KAAKF,iBAAiB;UACpBC,UAAU;QACZ,CAAA;MACF;;MArUIvG;qBAAwBD,SAAAA,CAAAA,GAwU9B,0BAAeC;",
|
|
5
|
+
"names": ["invariant", "shouldUseNativeDriver", "SpringConfig", "Animation", "SpringAnimation", "config", "_config$overshootClam", "_config$restDisplacem", "_config$restSpeedThre", "_config$velocity", "_config$velocity2", "_config$delay", "_config$isInteraction", "_config$iterations", "_overshootClamping", "overshootClamping", "_restDisplacementThreshold", "restDisplacementThreshold", "_restSpeedThreshold", "restSpeedThreshold", "_initialVelocity", "velocity", "_lastVelocity", "_toValue", "toValue", "_delay", "delay", "_useNativeDriver", "_platformConfig", "platformConfig", "__isInteraction", "isInteraction", "__iterations", "iterations", "stiffness", "undefined", "damping", "mass", "_config$stiffness", "_config$damping", "_config$mass", "bounciness", "speed", "tension", "friction", "_stiffness", "_damping", "_mass", "_config$bounciness", "_config$speed", "springConfig", "fromBouncinessAndSpeed", "_config$tension", "_config$friction", "_springConfig", "fromOrigamiTensionAndFriction", "__getNativeAnimationConfig", "_this$_initialVelocit", "type", "initialVelocity", "start", "fromValue", "onUpdate", "onEnd", "previousAnimation", "animatedValue", "__active", "_startPosition", "_lastPosition", "_onUpdate", "__onEnd", "_lastTime", "Date", "now", "_frameTime", "internalState", "getInternalState", "lastPosition", "lastVelocity", "lastTime", "__startNativeAnimation", "_timeout", "setTimeout", "MAX_STEPS", "deltaTime", "c", "m", "k", "v0", "zeta", "Math", "sqrt", "omega0", "omega1", "x0", "position", "t", "envelope", "exp", "sin", "cos", "_envelope", "isOvershooting", "isVelocity", "abs", "isDisplacement", "__debouncedOnEnd", "finished", "_animationFrame", "requestAnimationFrame", "bind", "stop", "clearTimeout", "global", "cancelAnimationFrame"]
|
|
6
|
+
}
|