Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
19 lines
721 B
JavaScript
19 lines
721 B
JavaScript
// Module ID: 6746
|
|
// Function ID: 6747
|
|
// Dependencies: []
|
|
// Exports: normalizeSnapPoint
|
|
|
|
// Module 6746
|
|
const fn = function n(str, arg1) {
|
|
let result = str;
|
|
if (typeof str === "string") {
|
|
const _Number = Number;
|
|
result = Number(str.split("%")[0]) * arg1 / 100;
|
|
}
|
|
return Math.max(0, arg1 - result);
|
|
};
|
|
fn.__closure = {};
|
|
fn.__workletHash = 14612470006791;
|
|
fn.__initData = { code: "function pnpm_normalizeSnapPointTs1(snapPoint,containerHeight){let normalizedSnapPoint=snapPoint;if(typeof normalizedSnapPoint==='string'){normalizedSnapPoint=Number(normalizedSnapPoint.split('%')[0])*containerHeight/100;}return Math.max(0,containerHeight-normalizedSnapPoint);}" };
|
|
|
|
export const normalizeSnapPoint = fn;
|