@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,16 +1,18 @@
|
|
|
1
1
|
import normalizeColor from "@tamagui/normalize-css-color";
|
|
2
2
|
import { invariant } from "@tamagui/react-native-web-internals";
|
|
3
|
-
import NativeAnimatedHelper from "../NativeAnimatedHelper
|
|
4
|
-
import AnimatedWithChildren from "./AnimatedWithChildren
|
|
3
|
+
import NativeAnimatedHelper from "../NativeAnimatedHelper";
|
|
4
|
+
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
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 _defineProperties(target, props) {
|
|
16
18
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -22,7 +24,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
22
24
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
23
25
|
}
|
|
24
26
|
function _get(target, property, receiver) {
|
|
25
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
27
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
26
28
|
var base = _super_prop_base(target2, property2);
|
|
27
29
|
if (base) {
|
|
28
30
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -31,12 +33,13 @@ function _get(target, property, receiver) {
|
|
|
31
33
|
}, _get(target, property, receiver || target);
|
|
32
34
|
}
|
|
33
35
|
function _get_prototype_of(o) {
|
|
34
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
36
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
35
37
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
36
38
|
}, _get_prototype_of(o);
|
|
37
39
|
}
|
|
38
40
|
function _inherits(subClass, superClass) {
|
|
39
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
41
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
42
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
40
43
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
41
44
|
constructor: {
|
|
42
45
|
value: subClass,
|
|
@@ -49,41 +52,41 @@ function _possible_constructor_return(self, call) {
|
|
|
49
52
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
50
53
|
}
|
|
51
54
|
function _set_prototype_of(o, p) {
|
|
52
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
55
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
53
56
|
return o2.__proto__ = p2, o2;
|
|
54
57
|
}, _set_prototype_of(o, p);
|
|
55
58
|
}
|
|
56
59
|
function _super_prop_base(object, property) {
|
|
57
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
60
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
61
|
+
;
|
|
58
62
|
return object;
|
|
59
63
|
}
|
|
60
64
|
function _type_of(obj) {
|
|
61
65
|
"@swc/helpers - typeof";
|
|
62
|
-
|
|
63
66
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
67
|
}
|
|
65
68
|
function _is_native_reflect_construct() {
|
|
66
69
|
try {
|
|
67
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
71
|
+
}));
|
|
72
|
+
} catch {
|
|
73
|
+
}
|
|
74
|
+
return (_is_native_reflect_construct = function() {
|
|
70
75
|
return !!result;
|
|
71
76
|
})();
|
|
72
77
|
}
|
|
73
|
-
var __DEV__ = process.env.NODE_ENV !== "production",
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
78
|
+
var __DEV__ = process.env.NODE_ENV !== "production", linear = function(t) {
|
|
79
|
+
return t;
|
|
80
|
+
};
|
|
77
81
|
function createInterpolation(config) {
|
|
78
|
-
if (config.outputRange && typeof config.outputRange[0] == "string")
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
if (config.outputRange && typeof config.outputRange[0] == "string")
|
|
83
|
+
return createInterpolationFromStringOutputRange(config);
|
|
84
|
+
var outputRange = config.outputRange, inputRange = config.inputRange;
|
|
81
85
|
__DEV__ && (checkInfiniteRange("outputRange", outputRange), checkInfiniteRange("inputRange", inputRange), checkValidInputRange(inputRange), invariant(inputRange.length === outputRange.length, "inputRange (" + inputRange.length + ") and outputRange (" + outputRange.length + ") must have the same length"));
|
|
82
|
-
var easing = config.easing || linear,
|
|
83
|
-
extrapolateLeft = "extend";
|
|
86
|
+
var easing = config.easing || linear, extrapolateLeft = "extend";
|
|
84
87
|
config.extrapolateLeft !== void 0 ? extrapolateLeft = config.extrapolateLeft : config.extrapolate !== void 0 && (extrapolateLeft = config.extrapolate);
|
|
85
88
|
var extrapolateRight = "extend";
|
|
86
|
-
return config.extrapolateRight !== void 0 ? extrapolateRight = config.extrapolateRight : config.extrapolate !== void 0 && (extrapolateRight = config.extrapolate), function
|
|
89
|
+
return config.extrapolateRight !== void 0 ? extrapolateRight = config.extrapolateRight : config.extrapolate !== void 0 && (extrapolateRight = config.extrapolate), function(input) {
|
|
87
90
|
invariant(typeof input == "number", "Cannot interpolation an input which is not a number");
|
|
88
91
|
var range = findRange(input, inputRange);
|
|
89
92
|
return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight);
|
|
@@ -92,47 +95,46 @@ function createInterpolation(config) {
|
|
|
92
95
|
function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) {
|
|
93
96
|
var result = input;
|
|
94
97
|
if (result < inputMin) {
|
|
95
|
-
if (extrapolateLeft === "identity")
|
|
98
|
+
if (extrapolateLeft === "identity")
|
|
99
|
+
return result;
|
|
96
100
|
extrapolateLeft === "clamp" && (result = inputMin);
|
|
97
101
|
}
|
|
98
102
|
if (result > inputMax) {
|
|
99
|
-
if (extrapolateRight === "identity")
|
|
103
|
+
if (extrapolateRight === "identity")
|
|
104
|
+
return result;
|
|
100
105
|
extrapolateRight === "clamp" && (result = inputMax);
|
|
101
106
|
}
|
|
102
107
|
return outputMin === outputMax ? outputMin : inputMin === inputMax ? input <= inputMin ? outputMin : outputMax : (inputMin === -1 / 0 ? result = -result : inputMax === 1 / 0 ? result = result - inputMin : result = (result - inputMin) / (inputMax - inputMin), result = easing(result), outputMin === -1 / 0 ? result = -result : outputMax === 1 / 0 ? result = result + outputMin : result = result * (outputMax - outputMin) + outputMin, result);
|
|
103
108
|
}
|
|
104
109
|
function colorToRgba(input) {
|
|
105
110
|
var normalizedColor = normalizeColor(input);
|
|
106
|
-
if (normalizedColor === null || typeof normalizedColor != "number")
|
|
111
|
+
if (normalizedColor === null || typeof normalizedColor != "number")
|
|
112
|
+
return input;
|
|
107
113
|
normalizedColor = normalizedColor || 0;
|
|
108
|
-
var r = (normalizedColor & 4278190080) >>> 24,
|
|
109
|
-
g = (normalizedColor & 16711680) >>> 16,
|
|
110
|
-
b = (normalizedColor & 65280) >>> 8,
|
|
111
|
-
a = (normalizedColor & 255) / 255;
|
|
114
|
+
var r = (normalizedColor & 4278190080) >>> 24, g = (normalizedColor & 16711680) >>> 16, b = (normalizedColor & 65280) >>> 8, a = (normalizedColor & 255) / 255;
|
|
112
115
|
return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
|
|
113
116
|
}
|
|
114
117
|
var stringShapeRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;
|
|
115
118
|
function createInterpolationFromStringOutputRange(config) {
|
|
116
119
|
var outputRange = config.outputRange;
|
|
117
120
|
invariant(outputRange.length >= 2, "Bad output range"), outputRange = outputRange.map(colorToRgba), checkPattern(outputRange);
|
|
118
|
-
var outputRanges = outputRange[0].match(stringShapeRegex).map(function
|
|
121
|
+
var outputRanges = outputRange[0].match(stringShapeRegex).map(function() {
|
|
119
122
|
return [];
|
|
120
123
|
});
|
|
121
|
-
outputRange.forEach(function
|
|
122
|
-
value.match(stringShapeRegex).forEach(function
|
|
124
|
+
outputRange.forEach(function(value) {
|
|
125
|
+
value.match(stringShapeRegex).forEach(function(number, i) {
|
|
123
126
|
outputRanges[i].push(+number);
|
|
124
127
|
});
|
|
125
128
|
});
|
|
126
|
-
var interpolations = outputRange[0].match(stringShapeRegex).map(function
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return function (input) {
|
|
129
|
+
var interpolations = outputRange[0].match(stringShapeRegex).map(function(value, i) {
|
|
130
|
+
return createInterpolation({
|
|
131
|
+
...config,
|
|
132
|
+
outputRange: outputRanges[i]
|
|
133
|
+
});
|
|
134
|
+
}), shouldRound = isRgbOrRgba(outputRange[0]);
|
|
135
|
+
return function(input) {
|
|
134
136
|
var i = 0;
|
|
135
|
-
return outputRange[0].replace(stringShapeRegex, function
|
|
137
|
+
return outputRange[0].replace(stringShapeRegex, function() {
|
|
136
138
|
var val = +interpolations[i++](input);
|
|
137
139
|
return shouldRound && (val = i < 4 ? Math.round(val) : Math.round(val * 1e3) / 1e3), String(val);
|
|
138
140
|
});
|
|
@@ -142,79 +144,94 @@ function isRgbOrRgba(range) {
|
|
|
142
144
|
return typeof range == "string" && range.startsWith("rgb");
|
|
143
145
|
}
|
|
144
146
|
function checkPattern(arr) {
|
|
145
|
-
for (var pattern = arr[0].replace(stringShapeRegex, ""), i = 1; i < arr.length; ++i)
|
|
147
|
+
for (var pattern = arr[0].replace(stringShapeRegex, ""), i = 1; i < arr.length; ++i)
|
|
148
|
+
invariant(pattern === arr[i].replace(stringShapeRegex, ""), "invalid pattern " + arr[0] + " and " + arr[i]);
|
|
146
149
|
}
|
|
147
150
|
function findRange(input, inputRange) {
|
|
148
151
|
var i;
|
|
149
|
-
for (i = 1; i < inputRange.length - 1 && !(inputRange[i] >= input); ++i)
|
|
152
|
+
for (i = 1; i < inputRange.length - 1 && !(inputRange[i] >= input); ++i)
|
|
153
|
+
;
|
|
150
154
|
return i - 1;
|
|
151
155
|
}
|
|
152
156
|
function checkValidInputRange(arr) {
|
|
153
157
|
invariant(arr.length >= 2, "inputRange must have at least 2 elements");
|
|
154
|
-
for (var message = "inputRange must be monotonically non-decreasing " + String(arr), i = 1; i < arr.length; ++i)
|
|
158
|
+
for (var message = "inputRange must be monotonically non-decreasing " + String(arr), i = 1; i < arr.length; ++i)
|
|
159
|
+
invariant(arr[i] >= arr[i - 1], message);
|
|
155
160
|
}
|
|
156
161
|
function checkInfiniteRange(name, arr) {
|
|
157
|
-
invariant(arr.length >= 2, name + " must have at least 2 elements"), invariant(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
invariant(arr.length >= 2, name + " must have at least 2 elements"), invariant(
|
|
163
|
+
arr.length !== 2 || arr[0] !== -1 / 0 || arr[1] !== 1 / 0,
|
|
164
|
+
/* $FlowFixMe[incompatible-type] (>=0.13.0) - In the addition expression
|
|
165
|
+
* below this comment, one or both of the operands may be something that
|
|
166
|
+
* doesn't cleanly convert to a string, like undefined, null, and object,
|
|
167
|
+
* etc. If you really mean this implicit string conversion, you can do
|
|
168
|
+
* something like String(myThing) */
|
|
169
|
+
name + "cannot be ]-infinity;+infinity[ " + arr
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
var AnimatedInterpolation = /* @__PURE__ */ function(AnimatedWithChildren2) {
|
|
166
173
|
_inherits(AnimatedInterpolation2, AnimatedWithChildren2);
|
|
167
174
|
function AnimatedInterpolation2(parent, config) {
|
|
168
175
|
_class_call_check(this, AnimatedInterpolation2);
|
|
169
176
|
var _this;
|
|
170
177
|
return _this = _call_super(this, AnimatedInterpolation2), _this._parent = parent, _this._config = config, _this._interpolation = createInterpolation(config), _this;
|
|
171
178
|
}
|
|
172
|
-
return _create_class(AnimatedInterpolation2, [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
179
|
+
return _create_class(AnimatedInterpolation2, [
|
|
180
|
+
{
|
|
181
|
+
key: "__makeNative",
|
|
182
|
+
value: function(platformConfig) {
|
|
183
|
+
this._parent.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedInterpolation2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
key: "__getValue",
|
|
188
|
+
value: function() {
|
|
189
|
+
var parentValue = this._parent.__getValue();
|
|
190
|
+
return invariant(typeof parentValue == "number", "Cannot interpolate an input which is not a number."), this._interpolation(parentValue);
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
key: "interpolate",
|
|
195
|
+
value: function(config) {
|
|
196
|
+
return new AnimatedInterpolation2(this, config);
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
key: "__attach",
|
|
201
|
+
value: function() {
|
|
202
|
+
this._parent.__addChild(this);
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
key: "__detach",
|
|
207
|
+
value: function() {
|
|
208
|
+
this._parent.__removeChild(this), _get(_get_prototype_of(AnimatedInterpolation2.prototype), "__detach", this).call(this);
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
key: "__transformDataType",
|
|
213
|
+
value: function(range) {
|
|
214
|
+
return range.map(NativeAnimatedHelper.transformDataType);
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
key: "__getNativeConfig",
|
|
219
|
+
value: function() {
|
|
220
|
+
return __DEV__ && NativeAnimatedHelper.validateInterpolation(this._config), {
|
|
221
|
+
inputRange: this._config.inputRange,
|
|
222
|
+
// Only the `outputRange` can contain strings so we don't need to transform `inputRange` here
|
|
223
|
+
outputRange: this.__transformDataType(this._config.outputRange),
|
|
224
|
+
extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || "extend",
|
|
225
|
+
extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || "extend",
|
|
226
|
+
type: "interpolation"
|
|
227
|
+
};
|
|
228
|
+
}
|
|
214
229
|
}
|
|
215
|
-
|
|
230
|
+
]), AnimatedInterpolation2;
|
|
216
231
|
}(AnimatedWithChildren);
|
|
217
232
|
AnimatedInterpolation.__createInterpolation = createInterpolation;
|
|
218
233
|
var AnimatedInterpolation_default = AnimatedInterpolation;
|
|
219
|
-
export {
|
|
220
|
-
|
|
234
|
+
export {
|
|
235
|
+
AnimatedInterpolation_default as default
|
|
236
|
+
};
|
|
237
|
+
//# sourceMappingURL=AnimatedInterpolation.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/nodes/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.js"],
|
|
4
|
+
"mappings": "AAaA,OAAOA,oBAAoB;AAC3B,SAASC,iBAAiB;AAE1B,OAAOC,0BAA0B;AACjC,OAAOC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAIC,UAAUC,QAAQC,IAAIC,aAAa,cAEnCC,SAAS,SAACC,GAAAA;SAAMA;;AAMpB,SAASC,oBAAoBC,QAAM;AACjC,MAAIA,OAAOC,eAAe,OAAOD,OAAOC,YAAY,CAAA,KAAO;AACzD,WAAOC,yCAAyCF,MAAAA;AAGlD,MAAIC,cAAcD,OAAOC,aACrBE,aAAaH,OAAOG;AAExB,EAAIV,YACFW,mBAAmB,eAAeH,WAAAA,GAClCG,mBAAmB,cAAcD,UAAAA,GACjCE,qBAAqBF,UAAAA,GACrBb,UACEa,WAAWG,WAAWL,YAAYK,QAClC,iBACEH,WAAWG,SACX,wBACAL,YAAYK,SACZ,6BAAA;AAIN,MAAIC,SAASP,OAAOO,UAAUV,QAC1BW,kBAAkB;AAEtB,EAAIR,OAAO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AA;aAAAA,SAAaC,gBAAc;AACzB,aAAKJ,QAAQG,aAAaC,cAAAA,GAE1B,KAAA,kBAZEN,uBAAAA,SAAAA,GAYIK,gBAAN,IAAK,EAAA,KAAA,MAAcC,cAAAA;MACrB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,YAAIC,cAAc,KAAKN,QAAQK,WAAU;AAEzCpE,yBACE,OAAOqE,eAAgB,UACvB,oDAAA,GAEK,KAAKJ,eAAeI,WAAAA;MAC7B;;;MAEA5C,KAAAA;aAAAA,SAAYf,QAAM;AAChB,eAAO,IA1BLmD,uBA0B+B,MAAMnD,MAAAA;MACzC;;;MAEA4D,KAAAA;aAAAA,WAAAA;AACE,aAAKP,QAAQQ,WAAW,IAAI;MAC9B;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKT,QAAQU,cAAc,IAAI,GAE/B,KAAA,kBApCEZ,uBAAAA,SAAAA,GAoCIW,YAAN,IAAK,EAAA,KAAA,IAAA;MACP;;;MAEAE,KAAAA;aAAAA,SAAoBnD,OAAK;AACvB,eAAOA,MAAMgB,IAAItC,qBAAqB0E,iBAAiB;MACzD;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,eAAIzE,WACFF,qBAAqB4E,sBAAsB,KAAKb,OAAO,GAGlD;UACLnD,YAAY,KAAKmD,QAAQnD;;UAEzBF,aAAa,KAAK+D,oBAAoB,KAAKV,QAAQrD,WAAW;UAC9DO,iBACE,KAAK8C,QAAQ9C,mBAAmB,KAAK8C,QAAQ5C,eAAe;UAC9DC,kBACE,KAAK2C,QAAQ3C,oBAAoB,KAAK2C,QAAQ5C,eAAe;UAC/D0D,MAAM;QACR;MACF;;MA1DIjB;EAA8B3D,oBAAAA;AA6DpC2D,sBAAsBkB,wBAAwBtE;AAC9C,IAAA,gCAAeoD;",
|
|
5
|
+
"names": ["normalizeColor", "invariant", "NativeAnimatedHelper", "AnimatedWithChildren", "__DEV__", "process", "env", "NODE_ENV", "linear", "t", "createInterpolation", "config", "outputRange", "createInterpolationFromStringOutputRange", "inputRange", "checkInfiniteRange", "checkValidInputRange", "length", "easing", "extrapolateLeft", "undefined", "extrapolate", "extrapolateRight", "input", "range", "findRange", "interpolate", "inputMin", "inputMax", "outputMin", "outputMax", "result", "Infinity", "colorToRgba", "normalizedColor", "r", "g", "b", "a", "stringShapeRegex", "map", "checkPattern", "outputRanges", "match", "forEach", "value", "number", "i", "push", "interpolations", "shouldRound", "isRgbOrRgba", "replace", "val", "Math", "round", "String", "startsWith", "arr", "pattern", "message", "name", "AnimatedInterpolation", "parent", "_parent", "_config", "_interpolation", "__makeNative", "platformConfig", "__getValue", "parentValue", "__attach", "__addChild", "__detach", "__removeChild", "__transformDataType", "transformDataType", "__getNativeConfig", "validateInterpolation", "type", "__createInterpolation"]
|
|
6
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import AnimatedInterpolation from "./AnimatedInterpolation
|
|
2
|
-
import AnimatedWithChildren from "./AnimatedWithChildren
|
|
1
|
+
import AnimatedInterpolation from "./AnimatedInterpolation";
|
|
2
|
+
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
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 _defineProperties(target, props) {
|
|
14
16
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -20,7 +22,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
20
22
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
21
23
|
}
|
|
22
24
|
function _get(target, property, receiver) {
|
|
23
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
25
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
24
26
|
var base = _super_prop_base(target2, property2);
|
|
25
27
|
if (base) {
|
|
26
28
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -29,12 +31,13 @@ function _get(target, property, receiver) {
|
|
|
29
31
|
}, _get(target, property, receiver || target);
|
|
30
32
|
}
|
|
31
33
|
function _get_prototype_of(o) {
|
|
32
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
34
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
33
35
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
34
36
|
}, _get_prototype_of(o);
|
|
35
37
|
}
|
|
36
38
|
function _inherits(subClass, superClass) {
|
|
37
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
39
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
40
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
41
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
39
42
|
constructor: {
|
|
40
43
|
value: subClass,
|
|
@@ -47,70 +50,80 @@ function _possible_constructor_return(self, call) {
|
|
|
47
50
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
48
51
|
}
|
|
49
52
|
function _set_prototype_of(o, p) {
|
|
50
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
53
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
51
54
|
return o2.__proto__ = p2, o2;
|
|
52
55
|
}, _set_prototype_of(o, p);
|
|
53
56
|
}
|
|
54
57
|
function _super_prop_base(object, property) {
|
|
55
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
58
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
59
|
+
;
|
|
56
60
|
return object;
|
|
57
61
|
}
|
|
58
62
|
function _type_of(obj) {
|
|
59
63
|
"@swc/helpers - typeof";
|
|
60
|
-
|
|
61
64
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
62
65
|
}
|
|
63
66
|
function _is_native_reflect_construct() {
|
|
64
67
|
try {
|
|
65
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
69
|
+
}));
|
|
70
|
+
} catch {
|
|
71
|
+
}
|
|
72
|
+
return (_is_native_reflect_construct = function() {
|
|
68
73
|
return !!result;
|
|
69
74
|
})();
|
|
70
75
|
}
|
|
71
|
-
var AnimatedModulo = /* @__PURE__ */function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
var AnimatedModulo = /* @__PURE__ */ function(AnimatedWithChildren2) {
|
|
77
|
+
_inherits(AnimatedModulo2, AnimatedWithChildren2);
|
|
78
|
+
function AnimatedModulo2(a, modulus) {
|
|
79
|
+
_class_call_check(this, AnimatedModulo2);
|
|
80
|
+
var _this;
|
|
81
|
+
return _this = _call_super(this, AnimatedModulo2), _this._a = a, _this._modulus = modulus, _this;
|
|
82
|
+
}
|
|
83
|
+
return _create_class(AnimatedModulo2, [
|
|
84
|
+
{
|
|
79
85
|
key: "__makeNative",
|
|
80
|
-
value: function
|
|
86
|
+
value: function(platformConfig) {
|
|
81
87
|
this._a.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedModulo2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
82
88
|
}
|
|
83
|
-
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
84
91
|
key: "__getValue",
|
|
85
|
-
value: function
|
|
92
|
+
value: function() {
|
|
86
93
|
return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus;
|
|
87
94
|
}
|
|
88
|
-
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
89
97
|
key: "interpolate",
|
|
90
|
-
value: function
|
|
98
|
+
value: function(config) {
|
|
91
99
|
return new AnimatedInterpolation(this, config);
|
|
92
100
|
}
|
|
93
|
-
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
94
103
|
key: "__attach",
|
|
95
|
-
value: function
|
|
104
|
+
value: function() {
|
|
96
105
|
this._a.__addChild(this);
|
|
97
106
|
}
|
|
98
|
-
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
99
109
|
key: "__detach",
|
|
100
|
-
value: function
|
|
110
|
+
value: function() {
|
|
101
111
|
this._a.__removeChild(this), _get(_get_prototype_of(AnimatedModulo2.prototype), "__detach", this).call(this);
|
|
102
112
|
}
|
|
103
|
-
},
|
|
113
|
+
},
|
|
114
|
+
{
|
|
104
115
|
key: "__getNativeConfig",
|
|
105
|
-
value: function
|
|
116
|
+
value: function() {
|
|
106
117
|
return {
|
|
107
118
|
type: "modulus",
|
|
108
119
|
input: this._a.__getNativeTag(),
|
|
109
120
|
modulus: this._modulus
|
|
110
121
|
};
|
|
111
122
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
|
|
123
|
+
}
|
|
124
|
+
]), AnimatedModulo2;
|
|
125
|
+
}(AnimatedWithChildren), AnimatedModulo_default = AnimatedModulo;
|
|
126
|
+
export {
|
|
127
|
+
AnimatedModulo_default as default
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=AnimatedModulo.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/nodes/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/nodes/AnimatedModulo.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,2BAA2B;AAClC,OAAOC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMC,iBAAN,yBAAAD,uBAAA;YAAMC,iBAAAA,qBAAAA;WAAAA,gBACQC,GAAGC,SAAO;4BADlBF,eAAAA;;mBAEF,YAAA,MAFEA,eAAAA,GAGF,MAAKG,KAAKF,GACV,MAAKG,WAAWF;;uBAJdF,iBAAAA;;MAOJK,KAAAA;aAAAA,SAAaC,gBAAc;AACzB,aAAKH,GAAGE,aAAaC,cAAAA,GAErB,KAAA,kBAVEN,gBAAAA,SAAAA,GAUIK,gBAAN,IAAK,EAAA,KAAA,MAAcC,cAAAA;MACrB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,gBAAS,KAAKJ,GAAGI,WAAU,IAAK,KAAKH,WAAY,KAAKA,YAAY,KAAKA;MACzE;;;MAEAI,KAAAA;aAAAA,SAAYC,QAAM;AAChB,eAAO,IAAIX,sBAAsB,MAAMW,MAAAA;MACzC;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKP,GAAGQ,WAAW,IAAI;MACzB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKT,GAAGU,cAAc,IAAI,GAE1B,KAAA,kBA5BEb,gBAAAA,SAAAA,GA4BIY,YAAN,IAAK,EAAA,KAAA,IAAA;MACP;;;MAEAE,KAAAA;aAAAA,WAAAA;AACE,eAAO;UACLC,MAAM;UACNC,OAAO,KAAKb,GAAGc,eAAc;UAC7Bf,SAAS,KAAKE;QAChB;MACF;;MArCIJ;EAAuBD,oBAAAA,GAwC7B,yBAAeC;",
|
|
5
|
+
"names": ["AnimatedInterpolation", "AnimatedWithChildren", "AnimatedModulo", "a", "modulus", "_a", "_modulus", "__makeNative", "platformConfig", "__getValue", "interpolate", "config", "__attach", "__addChild", "__detach", "__removeChild", "__getNativeConfig", "type", "input", "__getNativeTag"]
|
|
6
|
+
}
|