awv3
Version:
AWV client CAD framework
1 lines • 2.46 kB
JavaScript
;exports.__esModule=!0;var back=exports.back={"in":function(t){var n=1.70158;return t*t*((n+1)*t-n)},out:function(t){var n=1.70158;return--t*t*((n+1)*t+n)+1},inOut:function(t){var n=2.5949095;return(t*=2)<1?.5*(t*t*((n+1)*t-n)):.5*((t-=2)*t*((n+1)*t+n)+2)}},bounce=exports.bounce={"in":function(t){return 1-outward(1-t)},out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},inOut:function(t){return t<.5?.5*inward(2*t):.5*outward(2*t-1)+.5}},circular=exports.circular={"in":function(t){return 1-Math.sqrt(1-t*t)},out:function(t){return Math.sqrt(1- --t*t)},inOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},cubic=exports.cubic={"in":function(t){return t*t*t},out:function(t){return--t*t*t+1},inOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},elastic=exports.elastic={"in":function(t){var n=void 0,u=.1,r=.4;return 0===t?0:1===t?1:(!u||u<1?(u=1,n=r/4):n=r*Math.asin(1/u)/(2*Math.PI),-(u*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/r)))},out:function(t){var n=void 0,u=.1,r=.4;return 0===t?0:1===t?1:(!u||u<1?(u=1,n=r/4):n=r*Math.asin(1/u)/(2*Math.PI),u*Math.pow(2,-10*t)*Math.sin((t-n)*(2*Math.PI)/r)+1)},inOut:function(t){var n=void 0,u=.1,r=.4;return 0===t?0:1===t?1:(!u||u<1?(u=1,n=r/4):n=r*Math.asin(1/u)/(2*Math.PI),(t*=2)<1?-.5*(u*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/r)):u*Math.pow(2,-10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/r)*.5+1)}},exponential=exports.exponential={"in":function(t){return 0===t?0:Math.pow(1024,t-1)},out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},inOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},linear=exports.linear=function(t){return t},quadratic=exports.quadratic={"in":function(t){return t*t},out:function(t){return t*(2-t)},inOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},quartic=exports.quartic={"in":function(t){return t*t*t*t},out:function(t){return 1- --t*t*t*t},inOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},quintic=exports.quintic={"in":function(t){return t*t*t*t*t},out:function(t){return--t*t*t*t*t+1},inOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},sinusoidal=exports.sinusoidal={"in":function(t){return 1-Math.cos(t*Math.PI/2)},out:function(t){return Math.sin(t*Math.PI/2)},inOut:function(t){return.5*(1-Math.cos(Math.PI*t))}};