decord/source/1658_VELOCITY_EPS.js

34 lines
992 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1658
2026-07-24 07:16:23 +00:00
// Function ID: 18413
2026-07-20 16:05:17 +00:00
// Name: VELOCITY_EPS
2026-07-23 10:11:24 +00:00
// Dependencies: [1585]
2026-07-20 16:05:17 +00:00
// Module 1658 (VELOCITY_EPS)
2026-07-23 10:11:24 +00:00
import isJest from "isJest";
2026-07-20 16:05:17 +00:00
let num = 1;
2026-07-23 10:11:24 +00:00
if (isJest.isWeb()) {
2026-07-20 16:05:17 +00:00
num = 0.05;
}
let closure_0 = { code: "function isValidRubberBandConfig_Pnpm_utilsTs1(config){return!!config.rubberBandEffect&&Array.isArray(config.clamp)&&config.clamp.length===2;}" };
export const VELOCITY_EPS = num;
export const SLOPE_FACTOR = 0.1;
2026-07-23 10:11:24 +00:00
export const isValidRubberBandConfig = (() => {
2026-07-20 16:05:17 +00:00
function isValidRubberBandConfig(rubberBandEffect) {
let isArray = !tmp;
if (!!rubberBandEffect.rubberBandEffect) {
const _Array = Array;
isArray = Array.isArray(rubberBandEffect.clamp);
}
if (isArray) {
isArray = 2 === rubberBandEffect.clamp.length;
}
return isArray;
}
isValidRubberBandConfig.__closure = {};
isValidRubberBandConfig.__workletHash = 5674674993606;
isValidRubberBandConfig.__initData = closure_0;
return isValidRubberBandConfig;
2026-07-23 10:11:24 +00:00
})();