decord/source/5802_getDistanceForDirection.js

18 lines
601 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 5802
// Function ID: 5803
2026-08-06 08:05:19 +00:00
// Name: getDistanceForDirection
2026-08-08 06:10:11 +00:00
// Dependencies: [5803]
2026-08-06 08:05:19 +00:00
2026-08-08 06:10:11 +00:00
// Module 5802 (getDistanceForDirection)
2026-08-06 08:05:19 +00:00
const require = arg1;
const dependencyMap = arg6;
arg5.getDistanceForDirection = function getDistanceForDirection(width, gestureDirection, arg2) {
2026-08-08 06:10:11 +00:00
const invertedMultiplier = require(5803) /* 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;
};