32 lines
1,000 B
JavaScript
32 lines
1,000 B
JavaScript
// Module ID: 1658
|
|
// Function ID: 18406
|
|
// Name: VELOCITY_EPS
|
|
// Dependencies: []
|
|
|
|
// Module 1658 (VELOCITY_EPS)
|
|
const _module = require(dependencyMap[0]);
|
|
let num = 1;
|
|
if (_module.isWeb()) {
|
|
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;
|
|
export const isValidRubberBandConfig = () => {
|
|
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;
|
|
}();
|