UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

1 lines 459 B
!/*! License details at fancyapps.com/license */function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";let n=function(e=0,n=0,t=0){return Math.max(Math.min(n,t),e)};e.map=function(e=0,t=0,o=0,i=0,f=0,d=!1){let u=(e-t)/(o-t)*(f-i)+i;return d?i<f?n(i,u,f):n(f,u,i):u}});