export var clamp = function (min, max) { return function (v) {
    return Math.max(Math.min(v, max), min);
}; };
export var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
export var floatRegex = /(-)?([\d]*\.?[\d])+/g;
export var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
export var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
export function isString(v) {
    return typeof v === 'string';
}
//# sourceMappingURL=utils.js.map