decord/source/5842_getDistanceForDirection.js

18 lines
601 B
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 5842
// Function ID: 5843
2026-08-06 08:05:19 +00:00
// Name: getDistanceForDirection
2026-08-13 07:00:46 +00:00
// Dependencies: [5843]
2026-08-06 08:05:19 +00:00
2026-08-13 07:00:46 +00:00
// Module 5842 (getDistanceForDirection)
2026-08-06 08:05:19 +00:00
const require = arg1;
const dependencyMap = arg6;
arg5.getDistanceForDirection = function getDistanceForDirection(width, gestureDirection, arg2) {
2026-08-13 07:00:46 +00:00
const invertedMultiplier = require(5843) /* getInvertedMultiplier */.getInvertedMultiplier(gestureDirection, arg2);
2026-08-06 08:05:19 +00:00
if ("vertical" !== gestureDirection) {
if ("vertical-inverted" !== gestureDirection) {
return width.width * invertedMultiplier;
}
}
return width.height * invertedMultiplier;
};