30 lines
1.6 KiB
JavaScript
30 lines
1.6 KiB
JavaScript
// Metro module 5264 (f5265).
|
|
import * as _Module5246 from "./Module5246";
|
|
import * as _Module1606 from "./Module1606";
|
|
const n = function n(a0) {
|
|
const point = a0.point;
|
|
let configs = a0.configs;
|
|
const { velocity = 0, overrideReduceMotion, onComplete } = a0;
|
|
if (!configs) {
|
|
configs = _Module5246.ANIMATION_CONFIGS;
|
|
}
|
|
if (overrideReduceMotion) {
|
|
configs.reduceMotion = overrideReduceMotion;
|
|
}
|
|
return (!("duration" in configs) && !("easing" in configs) ? _Module5246.ANIMATION_METHOD.SPRING : _Module5246.ANIMATION_METHOD.TIMING) === _Module5246.ANIMATION_METHOD.TIMING ? _Module1606.withTiming(point, configs, onComplete) : _Module1606.withSpring(point, {
|
|
velocity,
|
|
...configs
|
|
}, onComplete);
|
|
};
|
|
n.__closure = {
|
|
ANIMATION_CONFIGS: _Module5246.ANIMATION_CONFIGS,
|
|
ANIMATION_METHOD: _Module5246.ANIMATION_METHOD,
|
|
withTiming: _Module1606.withTiming,
|
|
withSpring: _Module1606.withSpring
|
|
};
|
|
n.__workletHash = 17032227615993;
|
|
n.__initData = {
|
|
code: "function pnpm_animateTs1({point:point,configs:configs,velocity=0,overrideReduceMotion:overrideReduceMotion,onComplete:onComplete}){const{ANIMATION_CONFIGS,ANIMATION_METHOD,withTiming,withSpring}=this.__closure;if(!configs){configs=ANIMATION_CONFIGS;}if(overrideReduceMotion){configs.reduceMotion=overrideReduceMotion;}const type='duration'in configs||'easing'in configs?ANIMATION_METHOD.TIMING:ANIMATION_METHOD.SPRING;if(type===ANIMATION_METHOD.TIMING){return withTiming(point,configs,onComplete);}return withSpring(point,Object.assign({velocity:velocity},configs),onComplete);}"
|
|
};
|
|
export { n as animate };
|