decord/source/320_horizontalOrDefault.js

54 lines
1.5 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 320
// Function ID: 321
2026-07-20 16:05:17 +00:00
// Name: horizontalOrDefault
2026-07-29 08:29:29 +00:00
// Dependencies: [19]
2026-07-20 16:05:17 +00:00
// Exports: horizontalOrDefault, initialNumToRenderOrDefault, maxToRenderPerBatchOrDefault, onEndReachedThresholdOrDefault, onStartReachedThresholdOrDefault, windowSizeOrDefault
2026-07-29 08:29:29 +00:00
// Module 320 (horizontalOrDefault)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-20 16:05:17 +00:00
export const horizontalOrDefault = function horizontalOrDefault(horizontal) {
2026-07-29 08:29:29 +00:00
let flag = horizontal;
if (horizontal == null) {
flag = false;
}
return flag;
2026-07-20 16:05:17 +00:00
};
export const initialNumToRenderOrDefault = function initialNumToRenderOrDefault(initialNumToRender) {
2026-07-29 08:29:29 +00:00
let num = initialNumToRender;
if (initialNumToRender == null) {
num = 10;
2026-07-20 16:05:17 +00:00
}
return num;
};
export const maxToRenderPerBatchOrDefault = function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) {
2026-07-29 08:29:29 +00:00
let num = maxToRenderPerBatch;
if (maxToRenderPerBatch == null) {
num = 10;
2026-07-20 16:05:17 +00:00
}
return num;
};
export const onStartReachedThresholdOrDefault = function onStartReachedThresholdOrDefault(onStartReachedThreshold) {
2026-07-29 08:29:29 +00:00
let num = onStartReachedThreshold;
if (onStartReachedThreshold == null) {
num = 2;
2026-07-20 16:05:17 +00:00
}
return num;
};
export const onEndReachedThresholdOrDefault = function onEndReachedThresholdOrDefault(onEndReachedThreshold) {
2026-07-29 08:29:29 +00:00
let num = onEndReachedThreshold;
if (onEndReachedThreshold == null) {
num = 2;
2026-07-20 16:05:17 +00:00
}
return num;
};
export const windowSizeOrDefault = function windowSizeOrDefault(windowSize) {
2026-07-29 08:29:29 +00:00
let num = windowSize;
if (windowSize == null) {
num = 21;
2026-07-20 16:05:17 +00:00
}
return num;
};