UNPKG

fluid-meter

Version:

a dependency free library that draws a circular meter where progress is displayed as the amount of liquid on it

13 lines 416 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.random = exports.clamp = void 0; const clamp = (number, min, max) => { return Math.min(Math.max(number, min), max); }; exports.clamp = clamp; const random = (min, max) => { const delta = max - min; return max === min ? min : Math.random() * delta + min; }; exports.random = random; //# sourceMappingURL=MathUtils.js.map