decord/source/5558_getDistanceForDirection.js

16 lines
371 B
JavaScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 5558
2026-07-21 22:01:30 +00:00
// Function ID: 47190
2026-07-20 16:05:17 +00:00
// Name: getDistanceForDirection
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 5558 (getDistanceForDirection)
2026-07-20 16:05:17 +00:00
arg5.default = function getDistanceForDirection(width) {
const tmp = arg2(arg6[0])(arg1);
if ("vertical" !== arg1) {
if ("vertical-inverted" !== arg1) {
return width.width * tmp;
}
}
return width.height * tmp;
};