decord/source/288_createSquare.js
2026-07-20 16:05:17 +00:00

17 lines
409 B
JavaScript

// Module ID: 288
// Function ID: 4468
// Name: createSquare
// Dependencies: []
// Module 288 (createSquare)
function createSquare(bottom) {
return { bottom, left: bottom, right: bottom, top: bottom };
}
arg5.createSquare = createSquare;
arg5.normalizeRect = function normalizeRect(hitSlop) {
let tmp = hitSlop;
if ("number" === typeof hitSlop) {
tmp = createSquare(hitSlop);
}
return tmp;
};