filepond
Version:
FilePond, where files go to stretch their bits.
43 lines (42 loc) • 922 B
JavaScript
/*!
* FilePond v5.0.2
* Copyright (c) 2017-2026 Pqina B.V.
* Released under the MIT License
* https://filepond.com
*/
function f(t = 0, o = 0, n = 0, u = 0) {
return {
top: t,
right: o,
bottom: n,
left: u
};
}
function d(t) {
return {
top: t.y,
right: t.x + t.width,
bottom: t.y + t.height,
left: t.x
};
}
function h(t, o, n, u, i) {
return t.top = o, t.right = n, t.bottom = u, t.left = i, t;
}
function p(t, o) {
return t.top = o.top, t.right = o.right, t.bottom = o.bottom, t.left = o.left, t;
}
function l(t, o) {
return t.top === o.top && t.right === o.right && t.bottom === o.bottom && t.left === o.left;
}
function m(t, o) {
return t.bottom < o.top || t.top > o.bottom || t.right < o.left || t.left > o.right;
}
export {
f as boundsCreate,
l as boundsEqual,
d as boundsFromRect,
m as boundsOutsideBounds,
h as boundsUpdate,
p as boundsUpdateWithBounds
};