decord/source/5332__isNativeReflectConstruct.js

86 lines
2.7 KiB
JavaScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 5332
2026-07-29 08:29:29 +00:00
// Function ID: 5333
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-31 08:44:05 +00:00
// Dependencies: [41, 42, 93, 95, 96, 98, 5316]
2026-07-23 10:11:24 +00:00
2026-07-28 08:39:19 +00:00
// Module 5332 (_isNativeReflectConstruct)
2026-07-31 08:44:05 +00:00
import RotationGesture from "_classCallCheck";
2026-07-23 10:11:24 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-31 08:44:05 +00:00
import _get from "_get";
2026-07-29 08:29:29 +00:00
import importDefaultResult from "_createClass";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
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);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
2026-07-20 16:05:17 +00:00
}
}
2026-07-31 08:44:05 +00:00
function changeEventCalculator(rotation, rotation2) {
if (undefined === rotation2) {
let obj = { rotationChange: null };
obj[0] = rotation.rotation;
} else {
obj = { rotationChange: null };
obj[0] = rotation.rotation - rotation2.rotation;
}
obj = {};
const merged = Object.assign(rotation);
const merged1 = Object.assign(obj);
return obj;
}
changeEventCalculator.__closure = {};
changeEventCalculator.__workletHash = 11988645380499;
changeEventCalculator.__initData = { code: "function changeEventCalculator_Pnpm_rotationGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}" };
class RotationGesture {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-07-31 08:44:05 +00:00
tmp = RotationGesture(this, RotationGesture);
2026-07-29 08:29:29 +00:00
tmp2 = __esModule;
2026-07-31 08:44:05 +00:00
obj = __esModule(RotationGesture);
2026-07-29 08:29:29 +00:00
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
} else {
constructResult = obj.apply(self, undefined);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp3Result = tmp3(self, constructResult);
2026-07-31 08:44:05 +00:00
tmp3Result.handlerName = "RotationGestureHandler";
2026-07-29 08:29:29 +00:00
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
2026-07-31 08:44:05 +00:00
require("_inherits")(RotationGesture, require("_isNativeReflectConstruct").ContinousBaseGesture);
let items = [
2026-07-29 08:29:29 +00:00
{
2026-07-31 08:44:05 +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 !== "disabledUntil") {
fn = (items) => fn.apply(self, items);
}
const items = [arg0];
return fn(items);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
];
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
export const RotationGesture = importDefaultResult(RotationGesture, items);