decord/source/9734_handlerOffsetDirection.js

30 lines
1 KiB
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9734
// Function ID: 75658
2026-07-20 16:05:17 +00:00
// Name: handlerOffsetDirection
// Dependencies: []
2026-07-24 07:16:23 +00:00
// Module 9734 (handlerOffsetDirection)
2026-07-20 16:05:17 +00:00
let closure_0 = { code: "function handlerOffsetDirection_Pnpm_handleroffsetDirectionTs1(handlerOffset,fixedDirection){if(fixedDirection===\"negative\")return-1;if(fixedDirection===\"positive\")return 1;if(handlerOffset.value===0)return-1;return Math.sign(handlerOffset.value);}" };
2026-07-23 10:11:24 +00:00
arg5.handlerOffsetDirection = (() => {
2026-07-20 16:05:17 +00:00
function handlerOffsetDirection(handlerOffset, fixedDirection) {
let num = -1;
let num2 = -1;
if ("negative" !== fixedDirection) {
let num3 = 1;
if ("positive" !== fixedDirection) {
if (0 !== handlerOffset.value) {
const _Math = Math;
num = Math.sign(handlerOffset.value);
}
num3 = num;
}
num2 = num3;
}
return num2;
}
handlerOffsetDirection.__closure = {};
handlerOffsetDirection.__workletHash = 4382236906699;
handlerOffsetDirection.__initData = closure_0;
return handlerOffsetDirection;
2026-07-23 10:11:24 +00:00
})();