decord/source/__polyfill/07xxx/module_7122.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

20 lines
599 B
JavaScript

// Module ID: 7122
// Function ID: 7123
// Dependencies: [7123]
// Exports: getDistanceForDirection
// Module 7122
import _mod7123 from "module_7123" /* 7123 */;
require = arg1;
const dependencyMap = arg6;
export const getDistanceForDirection = function getDistanceForDirection(layout, gestureDirection, arg2) {
const invertedMultiplier = _mod7123.getInvertedMultiplier(gestureDirection, arg2);
if ("vertical" !== gestureDirection) {
if ("vertical-inverted" !== gestureDirection) {
return layout.width * invertedMultiplier;
}
}
return layout.height * invertedMultiplier;
};