filepond
Version:
FilePond, where files go to stretch their bits.
33 lines (32 loc) • 657 B
JavaScript
/*!
* FilePond v5.0.2
* Copyright (c) 2017-2026 Pqina B.V.
* Released under the MIT License
* https://filepond.com
*/
function o(n, t = 0, r = 1) {
return Math.max(t, Math.min(n, r));
}
function a(n, t) {
const r = Math.pow(10, t);
return Math.round(n * r) / r;
}
function e(n = 0, t = 1, r = Math.random) {
return n + r() * (t - n);
}
function u(n = 1) {
return function() {
const t = Math.sin(n++) * 1e4;
return t - Math.floor(t);
};
}
function c(n, t) {
return t * Math.sign(n) * Math.log10(1 + Math.abs(n) / t);
}
export {
o as clamp,
u as createRandomish,
c as elastify,
e as randomNumberBetween,
a as roundPrecision
};