31 lines
954 B
JavaScript
31 lines
954 B
JavaScript
// Module ID: 1730
|
|
// Function ID: 1731
|
|
// Name: isValidRubberBandConfig
|
|
// Dependencies: [1657]
|
|
// Exports: isValidRubberBandConfig
|
|
|
|
// Module 1730 (isValidRubberBandConfig)
|
|
import isJest from "isJest" /* 1657 */;
|
|
|
|
let num = 1;
|
|
if (isJest.isWeb()) {
|
|
num = 0.05;
|
|
}
|
|
function isValidRubberBandConfig(rubberBandEffect) {
|
|
let isArray = rubberBandEffect.rubberBandEffect;
|
|
if (isArray) {
|
|
const _Array = Array;
|
|
isArray = Array.isArray(rubberBandEffect.clamp);
|
|
}
|
|
if (isArray) {
|
|
isArray = 2 === rubberBandEffect.clamp.length;
|
|
}
|
|
return isArray;
|
|
}
|
|
isValidRubberBandConfig.__closure = {};
|
|
isValidRubberBandConfig.__workletHash = 5674674993606;
|
|
isValidRubberBandConfig.__initData = { 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 { isValidRubberBandConfig };
|