This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
/
d3-ease.v0.4.min.js
1 lines (1 loc) · 2.69 KB
/
d3-ease.v0.4.min.js
1
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("d3-ease",["exports"],t):t(n.d3_ease={})}(this,function(n){"use strict";function t(n,t){return function(u){return n(u,t)}}function u(n,t,u){return function(r){return n(r,t,u)}}function r(n,t){return t=C.call(t),t[0]=null,function(u){return t[0]=u,n.apply(null,t)}}function e(n,e,i){switch(arguments.length){case 1:return n;case 2:return t(n,e);case 3:return u(n,e,i);default:return r(n,arguments)}}function i(n){return+n}function c(n){return n*n}function o(n){return n*(2-n)}function a(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function l(n){return n*n*n}function f(n){return--n*n*n+1}function s(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function h(n,t){return null==t&&(t=3),Math.pow(n,t)}function M(n,t){return null==t&&(t=3),1-Math.pow(1-n,t)}function p(n,t){return null==t&&(t=3),((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}function I(n){return 1-Math.cos(n*E)}function O(n){return Math.sin(n*E)}function d(n){return(1-Math.cos(D*n))/2}function w(n){return Math.pow(2,10*n-10)}function b(n){return 1-Math.pow(2,-10*n)}function x(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function y(n){return 1-Math.sqrt(1-n*n)}function m(n){return Math.sqrt(1- --n*n)}function q(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function g(n){return 1-k(1-n)}function k(n){return F>n?S*n*n:H>n?S*(n-=G)*n+J:L>n?S*(n-=K)*n+N:S*(n-=Q)*n+R}function v(n){return((n*=2)<=1?1-k(1-n):k(n-1)+1)/2}function P(n,t){return t=null==t?1.70158:+t,n*n*((t+1)*n-t)}function j(n,t){return t=null==t?1.70158:+t,--n*n*((t+1)*n+t)+1}function A(n,t){return t=null==t?1.70158:+t,((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}function _(n,t,u){return t=null==t?1:Math.max(1,t),u=(null==u?.3:u)/T,t*Math.pow(2,10*--n)*Math.sin((u*Math.asin(1/t)-n)/u)}function z(n,t,u){return t=null==t?1:Math.max(1,t),u=(null==u?.3:u)/T,1-t*Math.pow(2,-10*n)*Math.sin((+n+u*Math.asin(1/t))/u)}function B(n,t,u){t=null==t?1:Math.max(1,t),u=(null==u?.3:u)/T;var r=u*Math.asin(1/t);return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((r-n)/u):2-t*Math.pow(2,-10*n)*Math.sin((r+n)/u))/2}var C=Array.prototype.slice,D=Math.PI,E=D/2,F=4/11,G=6/11,H=8/11,J=.75,K=9/11,L=10/11,N=.9375,Q=21/22,R=63/64,S=1/F/F,T=2*Math.PI,U="0.4.0";n.version=U,n.bind=e,n.linearIn=i,n.linearOut=i,n.linearInOut=i,n.quadIn=c,n.quadOut=o,n.quadInOut=a,n.cubicIn=l,n.cubicOut=f,n.cubicInOut=s,n.polyIn=h,n.polyOut=M,n.polyInOut=p,n.sinIn=I,n.sinOut=O,n.sinInOut=d,n.expIn=w,n.expOut=b,n.expInOut=x,n.circleIn=y,n.circleOut=m,n.circleInOut=q,n.bounceIn=g,n.bounceOut=k,n.bounceInOut=v,n.backIn=P,n.backOut=j,n.backInOut=A,n.elasticIn=_,n.elasticOut=z,n.elasticInOut=B});