@fancyapps/ui
Version:
Robust JavaScript UI Component Library
1 lines • 441 B
JavaScript
!/*! License details at fancyapps.com/license */function(t,e){"object"==typeof exports&&"u">typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="u">typeof globalThis?globalThis:t||self).window=t.window||{})}(this,function(t){"use strict";let e=function(t=0,e=0,n=0){return Math.max(Math.min(e,n),t)};t.map=function(t=0,n=0,o=0,i=0,f=0,u=!1){let s=(t-n)/(o-n)*(f-i)+i;return u?i<f?e(i,s,f):e(f,s,i):s}});