decord/source/__polyfill/06xxx/module_6746.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

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;