decord/source/__polyfill/03xxx/module_3919.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

31 lines
641 B
JavaScript

// Module ID: 3919
// Function ID: 3920
// Dependencies: []
// Exports: getRoundingMethod
// Module 3919
const obj = {
ceil: Math.ceil,
round: Math.round,
floor: Math.floor,
trunc(endImportTime) {
if (endImportTime < 0) {
const _Math2 = Math;
let rounded = Math.ceil(endImportTime);
} else {
const _Math = Math;
rounded = Math.floor(endImportTime);
}
return rounded;
}
};
const trunc = "trunc";
export const getRoundingMethod = function getRoundingMethod(roundingMethod) {
if (roundingMethod) {
let tmp3 = tmp[roundingMethod];
} else {
tmp3 = tmp[trunc];
}
return tmp3;
};