@tamagui/animations-react-native 1.89.26 → 1.89.27-1708113113238
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/cjs/createAnimations.native.js +290 -145
- package/dist/cjs/createAnimations.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/polyfill.native.js.map +3 -3
- package/dist/esm/createAnimations.native.js +290 -145
- package/dist/esm/createAnimations.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/polyfill.native.js.map +3 -3
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/polyfill.ts"],
|
|
4
|
-
"mappings": ";AACI,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/animations-react-native/src/polyfill.ts"],
|
|
4
|
+
"mappings": ";AACI,OAAOA,wBAA0B,QACnCC,WAAW,wBAA2BC;",
|
|
5
|
+
"names": ["requestAnimationFrame", "globalThis", "setImmediate"]
|
|
6
6
|
}
|
|
@@ -3,7 +3,121 @@ import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
|
3
3
|
import { useEvent } from "@tamagui/web";
|
|
4
4
|
import { useEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { Animated } from "react-native";
|
|
6
|
-
|
|
6
|
+
function _array_like_to_array(arr, len) {
|
|
7
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
8
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9
|
+
arr2[i] = arr[i];
|
|
10
|
+
return arr2;
|
|
11
|
+
}
|
|
12
|
+
function _array_with_holes(arr) {
|
|
13
|
+
if (Array.isArray(arr))
|
|
14
|
+
return arr;
|
|
15
|
+
}
|
|
16
|
+
function _array_without_holes(arr) {
|
|
17
|
+
if (Array.isArray(arr))
|
|
18
|
+
return _array_like_to_array(arr);
|
|
19
|
+
}
|
|
20
|
+
function _define_property(obj, key, value) {
|
|
21
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
22
|
+
value,
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0
|
|
26
|
+
}) : obj[key] = value, obj;
|
|
27
|
+
}
|
|
28
|
+
function _iterable_to_array(iter) {
|
|
29
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
30
|
+
return Array.from(iter);
|
|
31
|
+
}
|
|
32
|
+
function _iterable_to_array_limit(arr, i) {
|
|
33
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
34
|
+
if (_i != null) {
|
|
35
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
36
|
+
try {
|
|
37
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
38
|
+
;
|
|
39
|
+
} catch (err) {
|
|
40
|
+
_d = !0, _e = err;
|
|
41
|
+
} finally {
|
|
42
|
+
try {
|
|
43
|
+
!_n && _i.return != null && _i.return();
|
|
44
|
+
} finally {
|
|
45
|
+
if (_d)
|
|
46
|
+
throw _e;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return _arr;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function _non_iterable_rest() {
|
|
53
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54
|
+
}
|
|
55
|
+
function _non_iterable_spread() {
|
|
56
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
57
|
+
}
|
|
58
|
+
function _object_spread(target) {
|
|
59
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
60
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
61
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
62
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
63
|
+
}))), ownKeys2.forEach(function(key) {
|
|
64
|
+
_define_property(target, key, source[key]);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return target;
|
|
68
|
+
}
|
|
69
|
+
function ownKeys(object, enumerableOnly) {
|
|
70
|
+
var keys = Object.keys(object);
|
|
71
|
+
if (Object.getOwnPropertySymbols) {
|
|
72
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
73
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
74
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
75
|
+
})), keys.push.apply(keys, symbols);
|
|
76
|
+
}
|
|
77
|
+
return keys;
|
|
78
|
+
}
|
|
79
|
+
function _object_spread_props(target, source) {
|
|
80
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
81
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
82
|
+
}), target;
|
|
83
|
+
}
|
|
84
|
+
function _object_without_properties(source, excluded) {
|
|
85
|
+
if (source == null)
|
|
86
|
+
return {};
|
|
87
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
88
|
+
if (Object.getOwnPropertySymbols) {
|
|
89
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
90
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
91
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
92
|
+
}
|
|
93
|
+
return target;
|
|
94
|
+
}
|
|
95
|
+
function _object_without_properties_loose(source, excluded) {
|
|
96
|
+
if (source == null)
|
|
97
|
+
return {};
|
|
98
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
99
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
100
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
101
|
+
return target;
|
|
102
|
+
}
|
|
103
|
+
function _sliced_to_array(arr, i) {
|
|
104
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
105
|
+
}
|
|
106
|
+
function _to_consumable_array(arr) {
|
|
107
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
108
|
+
}
|
|
109
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
110
|
+
if (o) {
|
|
111
|
+
if (typeof o == "string")
|
|
112
|
+
return _array_like_to_array(o, minLen);
|
|
113
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
114
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
115
|
+
return Array.from(n);
|
|
116
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
117
|
+
return _array_like_to_array(o, minLen);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
var animatedStyleKey = {
|
|
7
121
|
transform: !0,
|
|
8
122
|
opacity: !0
|
|
9
123
|
}, colorStyleKey = {
|
|
@@ -14,7 +128,7 @@ const animatedStyleKey = {
|
|
|
14
128
|
borderRightColor: !0,
|
|
15
129
|
borderTopColor: !0,
|
|
16
130
|
borderBottomColor: !0
|
|
17
|
-
}, costlyToAnimateStyleKey = {
|
|
131
|
+
}, costlyToAnimateStyleKey = _object_spread({
|
|
18
132
|
borderRadius: !0,
|
|
19
133
|
borderTopLeftRadius: !0,
|
|
20
134
|
borderTopRightRadius: !0,
|
|
@@ -24,66 +138,71 @@ const animatedStyleKey = {
|
|
|
24
138
|
borderLeftWidth: !0,
|
|
25
139
|
borderRightWidth: !0,
|
|
26
140
|
borderTopWidth: !0,
|
|
27
|
-
borderBottomWidth: !0
|
|
28
|
-
|
|
29
|
-
// TODO for other keys like height or width, it's better to not add them here till layout animations are ready
|
|
30
|
-
}, AnimatedView = Animated.View, AnimatedText = Animated.Text;
|
|
141
|
+
borderBottomWidth: !0
|
|
142
|
+
}, colorStyleKey), AnimatedView = Animated.View, AnimatedText = Animated.Text;
|
|
31
143
|
function useAnimatedNumber(initial) {
|
|
32
|
-
|
|
33
|
-
null
|
|
34
|
-
);
|
|
144
|
+
var state = useRef(null);
|
|
35
145
|
return state.current || (state.current = {
|
|
36
146
|
composite: null,
|
|
37
147
|
val: new Animated.Value(initial),
|
|
38
|
-
strategy: {
|
|
148
|
+
strategy: {
|
|
149
|
+
type: "spring"
|
|
150
|
+
}
|
|
39
151
|
}), {
|
|
40
|
-
getInstance() {
|
|
152
|
+
getInstance: function() {
|
|
41
153
|
return state.current.val;
|
|
42
154
|
},
|
|
43
|
-
getValue() {
|
|
155
|
+
getValue: function() {
|
|
44
156
|
return state.current.val._value;
|
|
45
157
|
},
|
|
46
|
-
stop() {
|
|
47
|
-
var
|
|
48
|
-
(
|
|
158
|
+
stop: function() {
|
|
159
|
+
var _state_current_composite;
|
|
160
|
+
(_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop(), state.current.composite = null;
|
|
49
161
|
},
|
|
50
|
-
setValue(next
|
|
51
|
-
var
|
|
52
|
-
|
|
162
|
+
setValue: function(next) {
|
|
163
|
+
var _param = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
164
|
+
type: "spring"
|
|
165
|
+
}, onFinish = arguments.length > 2 ? arguments[2] : void 0, type = _param.type, config = _object_without_properties(_param, [
|
|
166
|
+
"type"
|
|
167
|
+
]), val = state.current.val, handleFinish = onFinish ? function(param) {
|
|
168
|
+
var finished = param.finished;
|
|
169
|
+
return finished ? onFinish() : null;
|
|
170
|
+
} : void 0;
|
|
53
171
|
if (type === "direct")
|
|
54
172
|
val.setValue(next);
|
|
55
173
|
else if (type === "spring") {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
174
|
+
var _state_current_composite;
|
|
175
|
+
(_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop();
|
|
176
|
+
var composite = Animated.spring(val, _object_spread_props(_object_spread({}, config), {
|
|
59
177
|
toValue: next,
|
|
60
178
|
useNativeDriver: !isWeb
|
|
61
|
-
});
|
|
179
|
+
}));
|
|
62
180
|
composite.start(handleFinish), state.current.composite = composite;
|
|
63
181
|
} else {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
182
|
+
var _state_current_composite1;
|
|
183
|
+
(_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 || _state_current_composite1.stop();
|
|
184
|
+
var composite1 = Animated.timing(val, _object_spread_props(_object_spread({}, config), {
|
|
67
185
|
toValue: next,
|
|
68
186
|
useNativeDriver: !isWeb
|
|
69
|
-
});
|
|
70
|
-
|
|
187
|
+
}));
|
|
188
|
+
composite1.start(handleFinish), state.current.composite = composite1;
|
|
71
189
|
}
|
|
72
190
|
}
|
|
73
191
|
};
|
|
74
192
|
}
|
|
75
|
-
function useAnimatedNumberReaction({
|
|
76
|
-
value
|
|
77
|
-
}, onValue) {
|
|
78
|
-
const onChange = useEvent((current) => {
|
|
193
|
+
function useAnimatedNumberReaction(param, onValue) {
|
|
194
|
+
var value = param.value, onChange = useEvent(function(current) {
|
|
79
195
|
onValue(current.value);
|
|
80
196
|
});
|
|
81
|
-
useEffect(()
|
|
82
|
-
|
|
83
|
-
return ()
|
|
197
|
+
useEffect(function() {
|
|
198
|
+
var id = value.getInstance().addListener(onChange);
|
|
199
|
+
return function() {
|
|
84
200
|
value.getInstance().removeListener(id);
|
|
85
201
|
};
|
|
86
|
-
}, [
|
|
202
|
+
}, [
|
|
203
|
+
value,
|
|
204
|
+
onChange
|
|
205
|
+
]);
|
|
87
206
|
}
|
|
88
207
|
function useAnimatedNumberStyle(value, getStyle) {
|
|
89
208
|
return getStyle(value.getInstance());
|
|
@@ -99,14 +218,64 @@ function createAnimations(animations) {
|
|
|
99
218
|
useAnimatedNumberStyle,
|
|
100
219
|
usePresence,
|
|
101
220
|
ResetPresence,
|
|
102
|
-
useAnimations: (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
221
|
+
useAnimations: function(param) {
|
|
222
|
+
var props = param.props, onDidAnimate = param.onDidAnimate, style = param.style, componentState = param.componentState, presence = param.presence, isExiting = (presence == null ? void 0 : presence[0]) === !1, sendExitComplete = presence == null ? void 0 : presence[1], animateStyles = useRef({}), animatedTranforms = useRef([]), animationsState = useRef(/* @__PURE__ */ new WeakMap()), animateOnly = props.animateOnly || [], hasAnimateOnly = !!props.animateOnly, args = [
|
|
223
|
+
JSON.stringify(style),
|
|
224
|
+
componentState,
|
|
225
|
+
isExiting,
|
|
226
|
+
!!onDidAnimate
|
|
227
|
+
], isThereNoNativeStyleKeys = useMemo(function() {
|
|
228
|
+
return isWeb ? !0 : Object.keys(style).some(function(key) {
|
|
229
|
+
return animateOnly.length ? !animatedStyleKey[key] && animateOnly.indexOf(key) === -1 : !animatedStyleKey[key];
|
|
230
|
+
});
|
|
231
|
+
}, args), res = useMemo(function() {
|
|
232
|
+
var update = function(key2, animated, valIn) {
|
|
233
|
+
var isColorStyleKey = colorStyleKey[key2], _ref = _sliced_to_array(isColorStyleKey ? [
|
|
234
|
+
0,
|
|
235
|
+
void 0
|
|
236
|
+
] : getValue(valIn), 2), val2 = _ref[0], type = _ref[1], animateToValue = val2, value = animated || new Animated.Value(val2), curInterpolation = animationsState.current.get(value), interpolateArgs;
|
|
237
|
+
if (type) {
|
|
238
|
+
var _curInterpolation_current;
|
|
239
|
+
interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation == null ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
|
|
240
|
+
interpolation: value.interpolate(interpolateArgs),
|
|
241
|
+
current: val2
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
if (isColorStyleKey && (animateToValue = curInterpolation != null && curInterpolation.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(
|
|
245
|
+
curInterpolation == null ? void 0 : curInterpolation.current,
|
|
246
|
+
// valIn is the next color
|
|
247
|
+
valIn,
|
|
248
|
+
animateToValue
|
|
249
|
+
), animationsState.current.set(value, {
|
|
250
|
+
current: valIn,
|
|
251
|
+
interpolation: value.interpolate(interpolateArgs),
|
|
252
|
+
animateToValue: curInterpolation != null && curInterpolation.animateToValue ? 0 : 1
|
|
253
|
+
})), value) {
|
|
254
|
+
var animationConfig = getAnimationConfig(key2, animations, props.animation), resolve, promise = new Promise(function(res2) {
|
|
255
|
+
resolve = res2;
|
|
256
|
+
});
|
|
257
|
+
completions.push(promise), runners.push(function() {
|
|
258
|
+
var getAnimation = function() {
|
|
259
|
+
return Animated[animationConfig.type || "spring"](value, _object_spread({
|
|
260
|
+
toValue: animateToValue,
|
|
261
|
+
useNativeDriver: !isWeb && !isThereNoNativeStyleKeys
|
|
262
|
+
}, animationConfig));
|
|
263
|
+
};
|
|
264
|
+
value.stopAnimation();
|
|
265
|
+
var animation = animationConfig.delay ? Animated.sequence([
|
|
266
|
+
Animated.delay(animationConfig.delay),
|
|
267
|
+
getAnimation()
|
|
268
|
+
]) : getAnimation();
|
|
269
|
+
animation.start(function(param2) {
|
|
270
|
+
var finished = param2.finished;
|
|
271
|
+
finished && resolve();
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, "from (".concat(value._value, ") to"), valIn, "(".concat(val2, ")"), "type", type, "interpolate", interpolateArgs), value;
|
|
276
|
+
}, runners = [], completions = [], nonAnimatedStyle = {};
|
|
277
|
+
for (var key in style) {
|
|
278
|
+
var val = style[key];
|
|
110
279
|
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
111
280
|
nonAnimatedStyle[key] = val;
|
|
112
281
|
continue;
|
|
@@ -124,151 +293,127 @@ function createAnimations(animations) {
|
|
|
124
293
|
console.warn("Warning: Tamagui can't animate string transforms yet!");
|
|
125
294
|
continue;
|
|
126
295
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
296
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
297
|
+
try {
|
|
298
|
+
for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
299
|
+
var _step_value = _sliced_to_array(_step.value, 2), index = _step_value[0], transform = _step_value[1], _animatedTranforms_current_index;
|
|
300
|
+
if (transform) {
|
|
301
|
+
var tkey = Object.keys(transform)[0], currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
302
|
+
animatedTranforms.current[index] = _define_property({}, tkey, update(tkey, currentTransform, transform[tkey])), animatedTranforms.current = _to_consumable_array(animatedTranforms.current);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
} catch (err) {
|
|
306
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
307
|
+
} finally {
|
|
308
|
+
try {
|
|
309
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
310
|
+
} finally {
|
|
311
|
+
if (_didIteratorError)
|
|
312
|
+
throw _iteratorError;
|
|
313
|
+
}
|
|
134
314
|
}
|
|
135
315
|
}
|
|
136
316
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
transform: animatedTranforms.current.map((r) => {
|
|
148
|
-
var _a2;
|
|
149
|
-
const key = Object.keys(r)[0], val = ((_a2 = animationsState.current.get(r[key])) == null ? void 0 : _a2.interpolation) || r[key];
|
|
150
|
-
return { [key]: val };
|
|
317
|
+
var animatedStyle = _object_spread_props(_object_spread({}, Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {
|
|
318
|
+
var _param = _sliced_to_array(param2, 2), k = _param[0], v = _param[1], _animationsState_current_get;
|
|
319
|
+
return [
|
|
320
|
+
k,
|
|
321
|
+
((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v
|
|
322
|
+
];
|
|
323
|
+
}))), {
|
|
324
|
+
transform: animatedTranforms.current.map(function(r) {
|
|
325
|
+
var _animationsState_current_get, key2 = Object.keys(r)[0], val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
|
|
326
|
+
return _define_property({}, key2, val2);
|
|
151
327
|
})
|
|
152
|
-
};
|
|
328
|
+
});
|
|
153
329
|
return {
|
|
154
330
|
runners,
|
|
155
331
|
completions,
|
|
156
|
-
style: [
|
|
332
|
+
style: [
|
|
333
|
+
nonAnimatedStyle,
|
|
334
|
+
animatedStyle
|
|
335
|
+
]
|
|
157
336
|
};
|
|
158
|
-
function update(key, animated, valIn) {
|
|
159
|
-
const isColorStyleKey = colorStyleKey[key], [val, type] = isColorStyleKey ? [0, void 0] : getValue(valIn);
|
|
160
|
-
let animateToValue = val;
|
|
161
|
-
const value = animated || new Animated.Value(val), curInterpolation = animationsState.current.get(value);
|
|
162
|
-
let interpolateArgs;
|
|
163
|
-
if (type && (interpolateArgs = getInterpolated(
|
|
164
|
-
(curInterpolation == null ? void 0 : curInterpolation.current) ?? value._value,
|
|
165
|
-
val,
|
|
166
|
-
type
|
|
167
|
-
), animationsState.current.set(value, {
|
|
168
|
-
interpolation: value.interpolate(interpolateArgs),
|
|
169
|
-
current: val
|
|
170
|
-
})), isColorStyleKey && (animateToValue = curInterpolation != null && curInterpolation.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(
|
|
171
|
-
curInterpolation == null ? void 0 : curInterpolation.current,
|
|
172
|
-
// valIn is the next color
|
|
173
|
-
valIn,
|
|
174
|
-
animateToValue
|
|
175
|
-
), animationsState.current.set(value, {
|
|
176
|
-
current: valIn,
|
|
177
|
-
interpolation: value.interpolate(interpolateArgs),
|
|
178
|
-
animateToValue: curInterpolation != null && curInterpolation.animateToValue ? 0 : 1
|
|
179
|
-
})), value) {
|
|
180
|
-
const animationConfig = getAnimationConfig(key, animations, props.animation);
|
|
181
|
-
let resolve;
|
|
182
|
-
const promise = new Promise((res2) => {
|
|
183
|
-
resolve = res2;
|
|
184
|
-
});
|
|
185
|
-
completions.push(promise), runners.push(() => {
|
|
186
|
-
value.stopAnimation();
|
|
187
|
-
function getAnimation() {
|
|
188
|
-
return Animated[animationConfig.type || "spring"](value, {
|
|
189
|
-
toValue: animateToValue,
|
|
190
|
-
useNativeDriver: !isWeb && !isThereNoNativeStyleKeys,
|
|
191
|
-
...animationConfig
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
(animationConfig.delay ? Animated.sequence([
|
|
195
|
-
Animated.delay(animationConfig.delay),
|
|
196
|
-
getAnimation()
|
|
197
|
-
]) : getAnimation()).start(({ finished }) => {
|
|
198
|
-
finished && resolve();
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(
|
|
203
|
-
" \u{1F4A0} animate",
|
|
204
|
-
key,
|
|
205
|
-
`from (${value._value}) to`,
|
|
206
|
-
valIn,
|
|
207
|
-
`(${val})`,
|
|
208
|
-
"type",
|
|
209
|
-
type,
|
|
210
|
-
"interpolate",
|
|
211
|
-
interpolateArgs
|
|
212
|
-
), value;
|
|
213
|
-
}
|
|
214
337
|
}, args);
|
|
215
|
-
return useIsomorphicLayoutEffect(()
|
|
216
|
-
res.runners.forEach((r)
|
|
217
|
-
|
|
218
|
-
|
|
338
|
+
return useIsomorphicLayoutEffect(function() {
|
|
339
|
+
res.runners.forEach(function(r) {
|
|
340
|
+
return r();
|
|
341
|
+
});
|
|
342
|
+
var cancel = !1;
|
|
343
|
+
return Promise.all(res.completions).then(function() {
|
|
219
344
|
cancel || (onDidAnimate == null || onDidAnimate(), isExiting && (sendExitComplete == null || sendExitComplete()));
|
|
220
|
-
}), ()
|
|
345
|
+
}), function() {
|
|
221
346
|
cancel = !0;
|
|
222
347
|
};
|
|
223
|
-
}, args), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
|
|
348
|
+
}, args), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
|
|
349
|
+
response: res,
|
|
350
|
+
inputStyle: style,
|
|
351
|
+
isExiting
|
|
352
|
+
}), res;
|
|
224
353
|
}
|
|
225
354
|
};
|
|
226
355
|
}
|
|
227
356
|
function getColorInterpolated(currentColor, nextColor, animateToValue) {
|
|
228
|
-
|
|
357
|
+
var inputRange = [
|
|
358
|
+
0,
|
|
359
|
+
1
|
|
360
|
+
], outputRange = [
|
|
361
|
+
currentColor || nextColor,
|
|
362
|
+
nextColor
|
|
363
|
+
];
|
|
229
364
|
return animateToValue === 0 && outputRange.reverse(), {
|
|
230
365
|
inputRange,
|
|
231
366
|
outputRange
|
|
232
367
|
};
|
|
233
368
|
}
|
|
234
|
-
function getInterpolated(current, next
|
|
369
|
+
function getInterpolated(current, next) {
|
|
370
|
+
var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "deg";
|
|
235
371
|
next === current && (current = next - 1e-9);
|
|
236
|
-
|
|
372
|
+
var inputRange = [
|
|
373
|
+
current,
|
|
374
|
+
next
|
|
375
|
+
], outputRange = [
|
|
376
|
+
"".concat(current).concat(postfix),
|
|
377
|
+
"".concat(next).concat(postfix)
|
|
378
|
+
];
|
|
237
379
|
return next < current && (inputRange.reverse(), outputRange.reverse()), {
|
|
238
380
|
inputRange,
|
|
239
381
|
outputRange
|
|
240
382
|
};
|
|
241
383
|
}
|
|
242
384
|
function getAnimationConfig(key, animations, animation) {
|
|
243
|
-
var _a, _b;
|
|
244
385
|
if (typeof animation == "string")
|
|
245
386
|
return animations[animation];
|
|
246
|
-
|
|
247
|
-
const shortKey = transformShorthands[key];
|
|
387
|
+
var type = "", extraConf, shortKey = transformShorthands[key];
|
|
248
388
|
if (Array.isArray(animation)) {
|
|
389
|
+
var _animation_, _animation_1;
|
|
249
390
|
type = animation[0];
|
|
250
|
-
|
|
391
|
+
var _animation__key, conf = (_animation__key = (_animation_ = animation[1]) === null || _animation_ === void 0 ? void 0 : _animation_[key]) !== null && _animation__key !== void 0 ? _animation__key : (_animation_1 = animation[1]) === null || _animation_1 === void 0 ? void 0 : _animation_1[shortKey];
|
|
251
392
|
conf && (typeof conf == "string" ? type = conf : (type = conf.type || type, extraConf = conf));
|
|
252
393
|
} else {
|
|
253
|
-
|
|
394
|
+
var _animation_key, val = (_animation_key = animation == null ? void 0 : animation[key]) !== null && _animation_key !== void 0 ? _animation_key : animation == null ? void 0 : animation[shortKey];
|
|
254
395
|
type = val == null ? void 0 : val.type, extraConf = val;
|
|
255
396
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
...extraConf
|
|
259
|
-
};
|
|
397
|
+
var found = animations[type];
|
|
398
|
+
return _object_spread({}, found, extraConf);
|
|
260
399
|
}
|
|
261
|
-
|
|
400
|
+
var transformShorthands = {
|
|
262
401
|
x: "translateX",
|
|
263
402
|
y: "translateY",
|
|
264
403
|
translateX: "x",
|
|
265
404
|
translateY: "y"
|
|
266
405
|
};
|
|
267
|
-
function getValue(input
|
|
406
|
+
function getValue(input) {
|
|
407
|
+
var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
268
408
|
if (typeof input != "string")
|
|
269
|
-
return [
|
|
270
|
-
|
|
271
|
-
|
|
409
|
+
return [
|
|
410
|
+
input
|
|
411
|
+
];
|
|
412
|
+
var _input_match, _ref = _sliced_to_array((_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [], 3), _ = _ref[0], number = _ref[1], after = _ref[2];
|
|
413
|
+
return [
|
|
414
|
+
+number,
|
|
415
|
+
after
|
|
416
|
+
];
|
|
272
417
|
}
|
|
273
418
|
export {
|
|
274
419
|
AnimatedText,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": ["
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/animations-react-native/src/createAnimations.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAASA,eAAeC,mBAAmB;AAC3C,SAASC,OAAOC,iCAAiC;AAOjD,SAASC,gBAAgB;AACzB,SAASC,WAAWC,SAASC,cAAc;AAC3C,SAASC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BzB,IAAMC,mBAAmB;EACvBC,WAAW;EACXC,SAAS;AACX,GAEMC,gBAAgB;EACpBC,iBAAiB;EACjBC,OAAO;EACPC,aAAa;EACbC,iBAAiB;EACjBC,kBAAkB;EAClBC,gBAAgB;EAChBC,mBAAmB;AACrB,GAGMC,0BAA0B,eAAA;EAC9BC,cAAc;EACdC,qBAAqB;EACrBC,sBAAsB;EACtBC,wBAAwB;EACxBC,yBAAyB;EACzBC,aAAa;EACbC,iBAAiB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QAAQ1F,WAAW1B,IAAAA;AACzB,SAAO,eAAA,CAAA,GACFoH,OACAN,SAAAA;AAEP;AAGA,IAAME,sBAAsB;EAC1BK,GAAG;EACHC,GAAG;EACHC,YAAY;EACZC,YAAY;AACd;AAEA,SAAStH,SAASuH,OAAsB;MAAEC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAU;AAClD,MAAI,OAAOD,SAAU;AACnB,WAAO;MAACA;;MAEiBA,cAAAA,OAAAA,kBAAAA,eAAAA,MAAME,MAAM,qBAAA,OAAA,QAAZF,iBAAAA,SAAAA,eAAsC,CAAA,GAAE,CAAA,GAA5DG,IAAoBH,KAAAA,CAAAA,GAAjBI,SAAiBJ,KAAAA,CAAAA,GAATK,QAASL,KAAAA,CAAAA;AAC3B,SAAO;IAAC,CAACI;IAAQC;;AACnB;",
|
|
5
|
+
"names": ["ResetPresence", "usePresence", "isWeb", "useIsomorphicLayoutEffect", "useEvent", "useEffect", "useMemo", "useRef", "Animated", "animatedStyleKey", "transform", "opacity", "colorStyleKey", "backgroundColor", "color", "borderColor", "borderLeftColor", "borderRightColor", "borderTopColor", "borderBottomColor", "costlyToAnimateStyleKey", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth", "AnimatedView", "View", "AnimatedText", "Text", "useAnimatedNumber", "initial", "state", "current", "composite", "val", "Value", "strategy", "type", "getInstance", "getValue", "stop", "setValue", "next", "onFinish", "config", "handleFinish", "finished", "undefined", "spring", "toValue", "useNativeDriver", "start", "timing", "useAnimatedNumberReaction", "onValue", "value", "onChange", "id", "addListener", "removeListener", "useAnimatedNumberStyle", "getStyle", "createAnimations", "animations", "isReactNative", "useAnimations", "props", "onDidAnimate", "style", "componentState", "presence", "isExiting", "sendExitComplete", "animateStyles", "animatedTranforms", "animationsState", "WeakMap", "animateOnly", "hasAnimateOnly", "args", "JSON", "stringify", "isThereNoNativeStyleKeys", "Object", "keys", "some", "key", "length", "indexOf", "res", "update", "animated", "valIn", "isColorStyleKey", "animateToValue", "curInterpolation", "get", "interpolateArgs", "getInterpolated", "set", "interpolation", "interpolate", "getColorInterpolated", "animationConfig", "getAnimationConfig", "animation", "resolve", "promise", "Promise", "completions", "push", "runners", "getAnimation", "stopAnimation", "delay", "sequence", "param", "process", "env", "NODE_ENV", "console", "info", "nonAnimatedStyle", "includes", "warn", "entries", "index", "tkey", "currentTransform", "animatedStyle", "fromEntries", "map", "k", "v", "r", "forEach", "cancel", "all", "then", "response", "inputStyle", "currentColor", "nextColor", "inputRange", "outputRange", "reverse", "postfix", "extraConf", "shortKey", "transformShorthands", "Array", "isArray", "conf", "found", "x", "y", "translateX", "translateY", "input", "isColor", "match", "_", "number", "after"]
|
|
6
6
|
}
|