decord/source/__polyfill/06xxx/module_6747.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

45 lines
1.9 KiB
JavaScript

// Module ID: 6747
// Function ID: 6748
// Dependencies: [6729, 1636]
// Exports: animate
// Module 6747
import value2 from "value2" /* 6729 */;
const cancelAnimation = tmp3(1636);
require = fn;
const dependencyMap = arg6;
fn = function n(arg0) {
({ point, configs, velocity } = arg0);
if (velocity === undefined) {
velocity = 0;
}
({ overrideReduceMotion, onComplete } = arg0);
if (!configs) {
configs = value2.ANIMATION_CONFIGS;
}
if (overrideReduceMotion) {
configs.reduceMotion = overrideReduceMotion;
}
if (!("duration" in configs)) {
if (!("easing" in configs)) {
let TIMING = value2.ANIMATION_METHOD.SPRING;
}
if (TIMING === value2.ANIMATION_METHOD.TIMING) {
let withTimingResult = cancelAnimation.withTiming(point, configs, onComplete);
const tmp3Result = cancelAnimation;
} else {
const _Object = Object;
const obj = { velocity };
withTimingResult = cancelAnimation.withSpring(point, Object.assign(obj, configs), onComplete);
const tmp3Result2 = cancelAnimation;
}
return withTimingResult;
}
TIMING = value2.ANIMATION_METHOD.TIMING;
};
fn.__closure = { ANIMATION_CONFIGS: fn(6729).ANIMATION_CONFIGS, ANIMATION_METHOD: fn(6729).ANIMATION_METHOD, withTiming: fn(1636).withTiming, withSpring: fn(1636).withSpring };
fn.__workletHash = 17032227615993;
fn.__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 const animate = fn;