Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
165 lines
6.1 KiB
JavaScript
165 lines
6.1 KiB
JavaScript
// Module ID: 1765
|
|
// Function ID: 1766
|
|
// Dependencies: [41, 42, 93, 95, 98, 1688, 1708, 1706]
|
|
|
|
// Module 1765
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import c3 from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
|
|
let CurvedTransition = fn;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
let closure_6 = { code: "function pnpm_CurvedTransitionTs1(values){const{delayFunction,delay,withTiming,duration,easing,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withTiming(values.targetOriginX,{duration:duration,easing:easing.easingX})),originY:delayFunction(delay,withTiming(values.targetOriginY,{duration:duration,easing:easing.easingY})),width:delayFunction(delay,withTiming(values.targetWidth,{duration:duration,easing:easing.easingWidth})),height:delayFunction(delay,withTiming(values.targetHeight,{duration:duration,easing:easing.easingHeight}))},callback:callback};}" };
|
|
class CurvedTransition {
|
|
constructor() {
|
|
self = this;
|
|
items = [...arguments];
|
|
closure_0 = undefined;
|
|
tmp = c2(this, CurvedTransition);
|
|
items1 = [...items];
|
|
tmp2 = closure_4;
|
|
obj = closure_4(CurvedTransition);
|
|
tmp3 = closure_3;
|
|
if (hasOwnProperty()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items1);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
closure_0 = tmp3Result;
|
|
Easing = closure_0(closure_1[5]).Easing;
|
|
tmp3Result.easingXV = Easing.in(closure_0(closure_1[5]).Easing.ease);
|
|
Easing2 = closure_0(closure_1[5]).Easing;
|
|
tmp3Result.easingYV = Easing2.out(closure_0(closure_1[5]).Easing.ease);
|
|
Easing3 = closure_0(closure_1[5]).Easing;
|
|
tmp3Result.easingWidthV = Easing3.in(closure_0(closure_1[5]).Easing.exp);
|
|
Easing4 = closure_0(closure_1[5]).Easing;
|
|
tmp3Result.easingHeightV = Easing4.out(closure_0(closure_1[5]).Easing.exp);
|
|
tmp3Result.build = () => {
|
|
delayFunction = delayFunction.getDelayFunction();
|
|
const callbackV = delayFunction.callbackV;
|
|
const delay = delayFunction.getDelay();
|
|
let num = delayFunction.durationV;
|
|
if (num == null) {
|
|
num = 300;
|
|
}
|
|
const easing = { easingX: tmp.easingXV, easingY: tmp.easingYV, easingWidth: tmp.easingWidthV, easingHeight: tmp.easingHeightV };
|
|
const fn = function n(originX) {
|
|
const obj = { initialValues: { originX: originX.currentOriginX, originY: originX.currentOriginY, width: originX.currentWidth, height: originX.currentHeight }, animations: null, callback: null };
|
|
const size = { originX: delayFunction(delay, delayFunction(1708).withTiming(originX.targetOriginX, { duration: num, easing: obj.easingX })), originY: null, width: null, height: null };
|
|
const obj2 = { duration: num, easing: obj.easingX };
|
|
const obj3 = delayFunction(1708);
|
|
size.originY = delayFunction(delay, delayFunction(1708).withTiming(originX.targetOriginY, { duration: num, easing: obj.easingY }));
|
|
const obj4 = { duration: num, easing: obj.easingY };
|
|
const obj5 = delayFunction(1708);
|
|
size.width = delayFunction(delay, delayFunction(1708).withTiming(originX.targetWidth, { duration: num, easing: obj.easingWidth }));
|
|
const obj6 = { duration: num, easing: obj.easingWidth };
|
|
const obj7 = delayFunction(1708);
|
|
size.height = delayFunction(delay, delayFunction(1708).withTiming(originX.targetHeight, { duration: num, easing: obj.easingHeight }));
|
|
obj.animations = size;
|
|
obj.callback = callbackV;
|
|
return obj;
|
|
};
|
|
fn.__closure = { delayFunction, delay, withTiming: CurvedTransition(1708).withTiming, duration: num, easing, callback: callbackV };
|
|
fn.__workletHash = 8113645568730;
|
|
fn.__initData = __initData;
|
|
return fn;
|
|
};
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_inherits(CurvedTransition, fn(1706).BaseAnimationBuilder);
|
|
const entry = {
|
|
key: "easingX",
|
|
value: function easingX(easingXV) {
|
|
this.easingXV = easingXV;
|
|
return this;
|
|
}
|
|
};
|
|
let items = [
|
|
entry,
|
|
{
|
|
key: "easingY",
|
|
value: function easingY(easingYV) {
|
|
this.easingYV = easingYV;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "easingWidth",
|
|
value: function easingWidth(easingWidthV) {
|
|
this.easingWidthV = easingWidthV;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "easingHeight",
|
|
value: function easingHeight(easingHeightV) {
|
|
this.easingHeightV = easingHeightV;
|
|
return this;
|
|
}
|
|
}
|
|
];
|
|
const entry1 = {
|
|
key: "createInstance",
|
|
value: function createInstance() {
|
|
return CurvedTransition();
|
|
}
|
|
};
|
|
let items1 = [
|
|
entry1,
|
|
{
|
|
key: "easingX",
|
|
value: function easingX(arg0) {
|
|
const instance = this.createInstance();
|
|
return instance.easingX(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "easingY",
|
|
value: function easingY(arg0) {
|
|
const instance = this.createInstance();
|
|
return instance.easingY(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "easingWidth",
|
|
value: function easingWidth(arg0) {
|
|
const instance = this.createInstance();
|
|
return instance.easingWidth(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "easingHeight",
|
|
value: function easingHeight(arg0) {
|
|
const instance = this.createInstance();
|
|
return instance.easingHeight(arg0);
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult = _createClass(CurvedTransition, items, items1);
|
|
importDefaultResultResult.presetName = "CurvedTransition";
|
|
|
|
export const CurvedTransition = importDefaultResultResult;
|