@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,15 +1,17 @@
|
|
|
1
|
-
import AnimatedInterpolation from "./AnimatedInterpolation
|
|
2
|
-
import AnimatedValue from "./AnimatedValue
|
|
3
|
-
import AnimatedWithChildren from "./AnimatedWithChildren
|
|
1
|
+
import AnimatedInterpolation from "./AnimatedInterpolation";
|
|
2
|
+
import AnimatedValue from "./AnimatedValue";
|
|
3
|
+
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
4
4
|
function _assert_this_initialized(self) {
|
|
5
|
-
if (self === void 0)
|
|
5
|
+
if (self === void 0)
|
|
6
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6
7
|
return self;
|
|
7
8
|
}
|
|
8
9
|
function _call_super(_this, derived, args) {
|
|
9
10
|
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));
|
|
10
11
|
}
|
|
11
12
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
+
if (!(instance instanceof Constructor))
|
|
14
|
+
throw new TypeError("Cannot call a class as a function");
|
|
13
15
|
}
|
|
14
16
|
function _defineProperties(target, props) {
|
|
15
17
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -21,7 +23,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
21
23
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
22
24
|
}
|
|
23
25
|
function _get(target, property, receiver) {
|
|
24
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
26
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
25
27
|
var base = _super_prop_base(target2, property2);
|
|
26
28
|
if (base) {
|
|
27
29
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -30,12 +32,13 @@ function _get(target, property, receiver) {
|
|
|
30
32
|
}, _get(target, property, receiver || target);
|
|
31
33
|
}
|
|
32
34
|
function _get_prototype_of(o) {
|
|
33
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
35
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
34
36
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
35
37
|
}, _get_prototype_of(o);
|
|
36
38
|
}
|
|
37
39
|
function _inherits(subClass, superClass) {
|
|
38
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
40
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
41
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
39
42
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
43
|
constructor: {
|
|
41
44
|
value: subClass,
|
|
@@ -48,69 +51,82 @@ function _possible_constructor_return(self, call) {
|
|
|
48
51
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
49
52
|
}
|
|
50
53
|
function _set_prototype_of(o, p) {
|
|
51
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
54
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
52
55
|
return o2.__proto__ = p2, o2;
|
|
53
56
|
}, _set_prototype_of(o, p);
|
|
54
57
|
}
|
|
55
58
|
function _super_prop_base(object, property) {
|
|
56
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
59
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
60
|
+
;
|
|
57
61
|
return object;
|
|
58
62
|
}
|
|
59
63
|
function _type_of(obj) {
|
|
60
64
|
"@swc/helpers - typeof";
|
|
61
|
-
|
|
62
65
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
63
66
|
}
|
|
64
67
|
function _is_native_reflect_construct() {
|
|
65
68
|
try {
|
|
66
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
70
|
+
}));
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
return (_is_native_reflect_construct = function() {
|
|
69
74
|
return !!result;
|
|
70
75
|
})();
|
|
71
76
|
}
|
|
72
|
-
var AnimatedAddition = /* @__PURE__ */function
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
var AnimatedAddition = /* @__PURE__ */ function(AnimatedWithChildren2) {
|
|
78
|
+
_inherits(AnimatedAddition2, AnimatedWithChildren2);
|
|
79
|
+
function AnimatedAddition2(a, b) {
|
|
80
|
+
_class_call_check(this, AnimatedAddition2);
|
|
81
|
+
var _this;
|
|
82
|
+
return _this = _call_super(this, AnimatedAddition2), _this._a = typeof a == "number" ? new AnimatedValue(a) : a, _this._b = typeof b == "number" ? new AnimatedValue(b) : b, _this;
|
|
83
|
+
}
|
|
84
|
+
return _create_class(AnimatedAddition2, [
|
|
85
|
+
{
|
|
80
86
|
key: "__makeNative",
|
|
81
|
-
value: function
|
|
87
|
+
value: function(platformConfig) {
|
|
82
88
|
this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedAddition2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
83
89
|
}
|
|
84
|
-
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
85
92
|
key: "__getValue",
|
|
86
|
-
value: function
|
|
93
|
+
value: function() {
|
|
87
94
|
return this._a.__getValue() + this._b.__getValue();
|
|
88
95
|
}
|
|
89
|
-
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
90
98
|
key: "interpolate",
|
|
91
|
-
value: function
|
|
99
|
+
value: function(config) {
|
|
92
100
|
return new AnimatedInterpolation(this, config);
|
|
93
101
|
}
|
|
94
|
-
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
95
104
|
key: "__attach",
|
|
96
|
-
value: function
|
|
105
|
+
value: function() {
|
|
97
106
|
this._a.__addChild(this), this._b.__addChild(this);
|
|
98
107
|
}
|
|
99
|
-
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
100
110
|
key: "__detach",
|
|
101
|
-
value: function
|
|
111
|
+
value: function() {
|
|
102
112
|
this._a.__removeChild(this), this._b.__removeChild(this), _get(_get_prototype_of(AnimatedAddition2.prototype), "__detach", this).call(this);
|
|
103
113
|
}
|
|
104
|
-
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
105
116
|
key: "__getNativeConfig",
|
|
106
|
-
value: function
|
|
117
|
+
value: function() {
|
|
107
118
|
return {
|
|
108
119
|
type: "addition",
|
|
109
|
-
input: [
|
|
120
|
+
input: [
|
|
121
|
+
this._a.__getNativeTag(),
|
|
122
|
+
this._b.__getNativeTag()
|
|
123
|
+
]
|
|
110
124
|
};
|
|
111
125
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
|
|
126
|
+
}
|
|
127
|
+
]), AnimatedAddition2;
|
|
128
|
+
}(AnimatedWithChildren), AnimatedAddition_default = AnimatedAddition;
|
|
129
|
+
export {
|
|
130
|
+
AnimatedAddition_default as default
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=AnimatedAddition.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/AnimatedAddition.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,2BAA2B;AAClC,OAAOC,mBAAmB;AAC1B,OAAOC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMC,mBAAN,yBAAAD,uBAAA;YAAMC,mBAAAA,qBAAAA;WAAAA,kBACQC,GAAGC,GAAC;4BADZF,iBAAAA;;mBAEF,YAAA,MAFEA,iBAAAA,GAGF,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIH,cAAcG,CAAAA,IAAKA,GACzD,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIJ,cAAcI,CAAAA,IAAKA;;uBAJvDF,mBAAAA;;MAOJK,KAAAA;aAAAA,SAAaC,gBAAc;AACzB,aAAKH,GAAGE,aAAaC,cAAAA,GAErB,KAAKF,GAAGC,aAAaC,cAAAA,GAErB,KAAA,kBAZEN,kBAAAA,SAAAA,GAYIK,gBAAN,IAAK,EAAA,KAAA,MAAcC,cAAAA;MACrB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,eAAO,KAAKJ,GAAGI,WAAU,IAAK,KAAKH,GAAGG,WAAU;MAClD;;;MAEAC,KAAAA;aAAAA,SAAYC,QAAM;AAChB,eAAO,IAAIZ,sBAAsB,MAAMY,MAAAA;MACzC;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKP,GAAGQ,WAAW,IAAI,GAEvB,KAAKP,GAAGO,WAAW,IAAI;MACzB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKT,GAAGU,cAAc,IAAI,GAE1B,KAAKT,GAAGS,cAAc,IAAI,GAE1B,KAAA,kBAlCEb,kBAAAA,SAAAA,GAkCIY,YAAN,IAAK,EAAA,KAAA,IAAA;MACP;;;MAEAE,KAAAA;aAAAA,WAAAA;AACE,eAAO;UACLC,MAAM;UACNC,OAAO;YAAC,KAAKb,GAAGc,eAAc;YAAI,KAAKb,GAAGa,eAAc;;QAC1D;MACF;;MA1CIjB;EAAyBD,oBAAAA,GA6C/B,2BAAeC;",
|
|
5
|
+
"names": ["AnimatedInterpolation", "AnimatedValue", "AnimatedWithChildren", "AnimatedAddition", "a", "b", "_a", "_b", "__makeNative", "platformConfig", "__getValue", "interpolate", "config", "__attach", "__addChild", "__detach", "__removeChild", "__getNativeConfig", "type", "input", "__getNativeTag"]
|
|
6
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import normalizeColor from "@tamagui/normalize-css-color";
|
|
2
|
-
import NativeAnimatedHelper from "../NativeAnimatedHelper
|
|
3
|
-
import AnimatedValue from "./AnimatedValue
|
|
4
|
-
import AnimatedWithChildren from "./AnimatedWithChildren
|
|
2
|
+
import NativeAnimatedHelper from "../NativeAnimatedHelper";
|
|
3
|
+
import AnimatedValue from "./AnimatedValue";
|
|
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,53 +52,54 @@ 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 NativeAnimatedAPI = NativeAnimatedHelper.API,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
processColorObject = function (color) {
|
|
82
|
-
return color;
|
|
83
|
-
};
|
|
78
|
+
var NativeAnimatedAPI = NativeAnimatedHelper.API, defaultColor = {
|
|
79
|
+
r: 0,
|
|
80
|
+
g: 0,
|
|
81
|
+
b: 0,
|
|
82
|
+
a: 1
|
|
83
|
+
}, _uniqueId = 1, processColorObject = function(color) {
|
|
84
|
+
return color;
|
|
85
|
+
};
|
|
84
86
|
function processColor(color) {
|
|
85
|
-
if (color == null)
|
|
86
|
-
|
|
87
|
+
if (color == null)
|
|
88
|
+
return null;
|
|
89
|
+
if (isRgbaValue(color))
|
|
90
|
+
return color;
|
|
87
91
|
var normalizedColor = normalizeColor(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
93
|
+
color
|
|
94
|
+
);
|
|
95
|
+
if (normalizedColor == null)
|
|
96
|
+
return null;
|
|
91
97
|
if (typeof normalizedColor == "object") {
|
|
92
98
|
var processedColorObj = processColorObject(normalizedColor);
|
|
93
|
-
if (processedColorObj != null)
|
|
99
|
+
if (processedColorObj != null)
|
|
100
|
+
return processedColorObj;
|
|
94
101
|
} else if (typeof normalizedColor == "number") {
|
|
95
|
-
var r = (normalizedColor & 4278190080) >>> 24,
|
|
96
|
-
g = (normalizedColor & 16711680) >>> 16,
|
|
97
|
-
b = (normalizedColor & 65280) >>> 8,
|
|
98
|
-
a = (normalizedColor & 255) / 255;
|
|
102
|
+
var r = (normalizedColor & 4278190080) >>> 24, g = (normalizedColor & 16711680) >>> 16, b = (normalizedColor & 65280) >>> 8, a = (normalizedColor & 255) / 255;
|
|
99
103
|
return {
|
|
100
104
|
r,
|
|
101
105
|
g,
|
|
@@ -111,7 +115,7 @@ function isRgbaValue(value) {
|
|
|
111
115
|
function isRgbaAnimatedValue(value) {
|
|
112
116
|
return value && value.r instanceof AnimatedValue && value.g instanceof AnimatedValue && value.b instanceof AnimatedValue && value.a instanceof AnimatedValue;
|
|
113
117
|
}
|
|
114
|
-
var AnimatedColor = /* @__PURE__ */function
|
|
118
|
+
var AnimatedColor = /* @__PURE__ */ function(AnimatedWithChildren2) {
|
|
115
119
|
_inherits(AnimatedColor2, AnimatedWithChildren2);
|
|
116
120
|
function AnimatedColor2(valueIn, config) {
|
|
117
121
|
_class_call_check(this, AnimatedColor2);
|
|
@@ -122,160 +126,173 @@ var AnimatedColor = /* @__PURE__ */function (AnimatedWithChildren2) {
|
|
|
122
126
|
var rgbaAnimatedValue = value;
|
|
123
127
|
_this.r = rgbaAnimatedValue.r, _this.g = rgbaAnimatedValue.g, _this.b = rgbaAnimatedValue.b, _this.a = rgbaAnimatedValue.a;
|
|
124
128
|
} else {
|
|
125
|
-
var _processColor,
|
|
126
|
-
processedColor =
|
|
129
|
+
var _processColor, processedColor = (
|
|
127
130
|
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
128
|
-
(_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor
|
|
129
|
-
|
|
131
|
+
(_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor
|
|
132
|
+
), initColor = defaultColor;
|
|
130
133
|
isRgbaValue(processedColor) ? initColor = processedColor : _this.nativeColor = processedColor, _this.r = new AnimatedValue(initColor.r), _this.g = new AnimatedValue(initColor.g), _this.b = new AnimatedValue(initColor.b), _this.a = new AnimatedValue(initColor.a);
|
|
131
134
|
}
|
|
132
135
|
return (_this.nativeColor || config && config.useNativeDriver) && _this.__makeNative(), _this;
|
|
133
136
|
}
|
|
134
|
-
return _create_class(AnimatedColor2, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
shouldUpdateNodeConfig = !1;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
return _create_class(AnimatedColor2, [
|
|
138
|
+
{
|
|
139
|
+
/**
|
|
140
|
+
* Directly set the value. This will stop any animations running on the value
|
|
141
|
+
* and update all the bound properties.
|
|
142
|
+
*/
|
|
143
|
+
key: "setValue",
|
|
144
|
+
value: function(value) {
|
|
145
|
+
var _processColor2, shouldUpdateNodeConfig = !1;
|
|
146
|
+
if (this.__isNative) {
|
|
147
|
+
var nativeTag = this.__getNativeTag();
|
|
148
|
+
NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());
|
|
149
|
+
}
|
|
150
|
+
var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
|
|
151
|
+
if (isRgbaValue(processedColor)) {
|
|
152
|
+
var rgbaValue = processedColor;
|
|
153
|
+
this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
|
|
154
|
+
} else {
|
|
155
|
+
var nativeColor = processedColor;
|
|
156
|
+
this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
|
|
157
|
+
}
|
|
158
|
+
if (this.__isNative) {
|
|
159
|
+
var _nativeTag = this.__getNativeTag();
|
|
160
|
+
shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
|
|
161
|
+
}
|
|
146
162
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
/**
|
|
166
|
+
* Sets an offset that is applied on top of whatever value is set, whether
|
|
167
|
+
* via `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
168
|
+
* things like the start of a pan gesture.
|
|
169
|
+
*/
|
|
170
|
+
key: "setOffset",
|
|
171
|
+
value: function(offset) {
|
|
172
|
+
this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
|
|
154
173
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
/**
|
|
177
|
+
* Merges the offset value into the base value and resets the offset to zero.
|
|
178
|
+
* The final output of the value is unchanged.
|
|
179
|
+
*/
|
|
180
|
+
key: "flattenOffset",
|
|
181
|
+
value: function() {
|
|
182
|
+
this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
|
|
158
183
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
* Sets the offset value to the base value, and resets the base value to
|
|
182
|
-
* zero. The final output of the value is unchanged.
|
|
183
|
-
*/
|
|
184
|
-
key: "extractOffset",
|
|
185
|
-
value: function () {
|
|
186
|
-
this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
|
|
187
|
-
}
|
|
188
|
-
}, {
|
|
189
|
-
/**
|
|
190
|
-
* Adds an asynchronous listener to the value so you can observe updates from
|
|
191
|
-
* animations. This is useful because there is no way to synchronously read
|
|
192
|
-
* the value because it might be driven natively.
|
|
193
|
-
*
|
|
194
|
-
* Returns a string that serves as an identifier for the listener.
|
|
195
|
-
*/
|
|
196
|
-
key: "addListener",
|
|
197
|
-
value: function (callback) {
|
|
198
|
-
var _this = this,
|
|
199
|
-
id = String(_uniqueId++),
|
|
200
|
-
jointCallback = function (_ref) {
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
/**
|
|
187
|
+
* Sets the offset value to the base value, and resets the base value to
|
|
188
|
+
* zero. The final output of the value is unchanged.
|
|
189
|
+
*/
|
|
190
|
+
key: "extractOffset",
|
|
191
|
+
value: function() {
|
|
192
|
+
this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
/**
|
|
197
|
+
* Adds an asynchronous listener to the value so you can observe updates from
|
|
198
|
+
* animations. This is useful because there is no way to synchronously read
|
|
199
|
+
* the value because it might be driven natively.
|
|
200
|
+
*
|
|
201
|
+
* Returns a string that serves as an identifier for the listener.
|
|
202
|
+
*/
|
|
203
|
+
key: "addListener",
|
|
204
|
+
value: function(callback) {
|
|
205
|
+
var _this = this, id = String(_uniqueId++), jointCallback = function(_ref) {
|
|
201
206
|
var number = _ref.value;
|
|
202
207
|
callback(_this.__getValue());
|
|
203
208
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
209
|
+
return this._listeners[id] = {
|
|
210
|
+
r: this.r.addListener(jointCallback),
|
|
211
|
+
g: this.g.addListener(jointCallback),
|
|
212
|
+
b: this.b.addListener(jointCallback),
|
|
213
|
+
a: this.a.addListener(jointCallback)
|
|
214
|
+
}, id;
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
/**
|
|
219
|
+
* Unregister a listener. The `id` param shall match the identifier
|
|
220
|
+
* previously returned by `addListener()`.
|
|
221
|
+
*/
|
|
222
|
+
key: "removeListener",
|
|
223
|
+
value: function(id) {
|
|
224
|
+
this.r.removeListener(this._listeners[id].r), this.g.removeListener(this._listeners[id].g), this.b.removeListener(this._listeners[id].b), this.a.removeListener(this._listeners[id].a), delete this._listeners[id];
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
/**
|
|
229
|
+
* Remove all registered listeners.
|
|
230
|
+
*/
|
|
231
|
+
key: "removeAllListeners",
|
|
232
|
+
value: function() {
|
|
233
|
+
this.r.removeAllListeners(), this.g.removeAllListeners(), this.b.removeAllListeners(), this.a.removeAllListeners(), this._listeners = {};
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
/**
|
|
238
|
+
* Stops any running animation or tracking. `callback` is invoked with the
|
|
239
|
+
* final value after stopping the animation, which is useful for updating
|
|
240
|
+
* state to match the animation position with layout.
|
|
241
|
+
*/
|
|
242
|
+
key: "stopAnimation",
|
|
243
|
+
value: function(callback) {
|
|
244
|
+
this.r.stopAnimation(), this.g.stopAnimation(), this.b.stopAnimation(), this.a.stopAnimation(), callback && callback(this.__getValue());
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
/**
|
|
249
|
+
* Stops any animation and resets the value to its original.
|
|
250
|
+
*/
|
|
251
|
+
key: "resetAnimation",
|
|
252
|
+
value: function(callback) {
|
|
253
|
+
this.r.resetAnimation(), this.g.resetAnimation(), this.b.resetAnimation(), this.a.resetAnimation(), callback && callback(this.__getValue());
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
key: "__getValue",
|
|
258
|
+
value: function() {
|
|
259
|
+
return this.nativeColor != null ? this.nativeColor : "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")";
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
key: "__attach",
|
|
264
|
+
value: function() {
|
|
265
|
+
this.r.__addChild(this), this.g.__addChild(this), this.b.__addChild(this), this.a.__addChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__attach", this).call(this);
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
key: "__detach",
|
|
270
|
+
value: function() {
|
|
271
|
+
this.r.__removeChild(this), this.g.__removeChild(this), this.b.__removeChild(this), this.a.__removeChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__detach", this).call(this);
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
key: "__makeNative",
|
|
276
|
+
value: function(platformConfig) {
|
|
277
|
+
this.r.__makeNative(platformConfig), this.g.__makeNative(platformConfig), this.b.__makeNative(platformConfig), this.a.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedColor2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
key: "__getNativeConfig",
|
|
282
|
+
value: function() {
|
|
283
|
+
return {
|
|
284
|
+
type: "color",
|
|
285
|
+
r: this.r.__getNativeTag(),
|
|
286
|
+
g: this.g.__getNativeTag(),
|
|
287
|
+
b: this.b.__getNativeTag(),
|
|
288
|
+
a: this.a.__getNativeTag(),
|
|
289
|
+
nativeColor: this.nativeColor
|
|
290
|
+
};
|
|
291
|
+
}
|
|
277
292
|
}
|
|
278
|
-
|
|
293
|
+
]), AnimatedColor2;
|
|
279
294
|
}(AnimatedWithChildren);
|
|
280
|
-
export {
|
|
281
|
-
|
|
295
|
+
export {
|
|
296
|
+
AnimatedColor as default
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=AnimatedColor.js.map
|