decord/source/6531__isNativeReflectConstruct.js

87 lines
2.8 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6531
// Function ID: 6532
2026-08-06 08:05:19 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [41, 42, 93, 95, 96, 98, 6429]
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
// Module 6531 (_isNativeReflectConstruct)
import _inheritsDefault from "_inherits" /* 98 */;
import PinchGesture from "_classCallCheck" /* 41 */;
import closure_1 from "_possibleConstructorReturn" /* 93 */;
import closure_2 from "_getPrototypeOf" /* 95 */;
import closure_3 from "_get" /* 96 */;
import importDefaultResult from "_createClass" /* 42 */;
2026-08-06 08:05:19 +00:00
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);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-08-06 08:05:19 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-08-06 08:05:19 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-13 07:00:46 +00:00
function changeEventCalculator(scale, scale2) {
if (undefined === scale2) {
let obj = { scaleChange: null };
obj[0] = scale.scale;
2026-08-07 06:50:47 +00:00
} else {
2026-08-13 07:00:46 +00:00
obj = { scaleChange: null };
obj[0] = scale.scale / scale2.scale;
2026-08-07 06:50:47 +00:00
}
obj = {};
2026-08-13 07:00:46 +00:00
const merged = Object.assign(scale);
2026-08-07 06:50:47 +00:00
const merged1 = Object.assign(obj);
return obj;
}
changeEventCalculator.__closure = {};
2026-08-13 07:00:46 +00:00
changeEventCalculator.__workletHash = 9876979738005;
changeEventCalculator.__initData = { code: "function changeEventCalculator_Pnpm_pinchGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}" };
class PinchGesture {
2026-08-07 06:50:47 +00:00
constructor() {
2026-08-06 08:05:19 +00:00
self = this;
2026-08-13 07:00:46 +00:00
tmp = PinchGesture(this, PinchGesture);
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
obj = closure_2(PinchGesture);
tmp3 = closure_1;
2026-08-06 08:05:19 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
2026-08-07 06:50:47 +00:00
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
2026-08-06 08:05:19 +00:00
} else {
2026-08-07 06:50:47 +00:00
constructResult = obj.apply(self, undefined);
2026-08-06 08:05:19 +00:00
}
tmp3Result = tmp3(self, constructResult);
2026-08-13 07:00:46 +00:00
tmp3Result.handlerName = "PinchGestureHandler";
2026-08-06 08:05:19 +00:00
return tmp3Result;
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(PinchGesture, require("_isNativeReflectConstruct").ContinousBaseGesture);
2026-08-06 08:05:19 +00:00
let items = [
{
2026-08-07 06:50:47 +00:00
key: "onChange",
value: function onChange(arg0) {
this.handlers.changeEventCalculator = changeEventCalculator;
const self = this;
let fn;
fn = callback2(callback(self.prototype), "onChange", this);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
const items = [arg0];
return fn(items);
2026-08-06 08:05:19 +00:00
}
}
];
2026-08-13 07:00:46 +00:00
export const PinchGesture = importDefaultResult(PinchGesture, items);