decord/source/__polyfill/06xxx/module_6659.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

19 lines
721 B
JavaScript

// Module ID: 6659
// Function ID: 6660
// Dependencies: []
// Exports: normalizeSnapPoint
// Module 6659
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;