Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-ease/ Version 1.0.1. Copyright 2016 Mike Bostock. | ||
// https://d3js.org/d3-ease/ Version 1.0.2. Copyright 2016 Mike Bostock. | ||
(function (global, factory) { | ||
@@ -6,252 +6,255 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
(factory((global.d3 = global.d3 || {}))); | ||
}(this, function (exports) { 'use strict'; | ||
}(this, (function (exports) { 'use strict'; | ||
function linear(t) { | ||
return +t; | ||
} | ||
function linear(t) { | ||
return +t; | ||
} | ||
function quadIn(t) { | ||
return t * t; | ||
} | ||
function quadIn(t) { | ||
return t * t; | ||
} | ||
function quadOut(t) { | ||
return t * (2 - t); | ||
} | ||
function quadOut(t) { | ||
return t * (2 - t); | ||
} | ||
function quadInOut(t) { | ||
return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; | ||
} | ||
function quadInOut(t) { | ||
return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; | ||
} | ||
function cubicIn(t) { | ||
return t * t * t; | ||
} | ||
function cubicIn(t) { | ||
return t * t * t; | ||
} | ||
function cubicOut(t) { | ||
return --t * t * t + 1; | ||
} | ||
function cubicOut(t) { | ||
return --t * t * t + 1; | ||
} | ||
function cubicInOut(t) { | ||
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; | ||
function cubicInOut(t) { | ||
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; | ||
} | ||
var exponent = 3; | ||
var polyIn = (function custom(e) { | ||
e = +e; | ||
function polyIn(t) { | ||
return Math.pow(t, e); | ||
} | ||
var exponent = 3; | ||
polyIn.exponent = custom; | ||
var polyIn = (function custom(e) { | ||
e = +e; | ||
return polyIn; | ||
})(exponent); | ||
function polyIn(t) { | ||
return Math.pow(t, e); | ||
} | ||
var polyOut = (function custom(e) { | ||
e = +e; | ||
polyIn.exponent = custom; | ||
function polyOut(t) { | ||
return 1 - Math.pow(1 - t, e); | ||
} | ||
return polyIn; | ||
})(exponent); | ||
polyOut.exponent = custom; | ||
var polyOut = (function custom(e) { | ||
e = +e; | ||
return polyOut; | ||
})(exponent); | ||
function polyOut(t) { | ||
return 1 - Math.pow(1 - t, e); | ||
} | ||
var polyInOut = (function custom(e) { | ||
e = +e; | ||
polyOut.exponent = custom; | ||
function polyInOut(t) { | ||
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; | ||
} | ||
return polyOut; | ||
})(exponent); | ||
polyInOut.exponent = custom; | ||
var polyInOut = (function custom(e) { | ||
e = +e; | ||
return polyInOut; | ||
})(exponent); | ||
function polyInOut(t) { | ||
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; | ||
} | ||
var pi = Math.PI; | ||
var halfPi = pi / 2; | ||
polyInOut.exponent = custom; | ||
function sinIn(t) { | ||
return 1 - Math.cos(t * halfPi); | ||
} | ||
return polyInOut; | ||
})(exponent); | ||
function sinOut(t) { | ||
return Math.sin(t * halfPi); | ||
} | ||
var pi = Math.PI; | ||
var halfPi = pi / 2; | ||
function sinIn(t) { | ||
return 1 - Math.cos(t * halfPi); | ||
} | ||
function sinInOut(t) { | ||
return (1 - Math.cos(pi * t)) / 2; | ||
} | ||
function sinOut(t) { | ||
return Math.sin(t * halfPi); | ||
} | ||
function expIn(t) { | ||
return Math.pow(2, 10 * t - 10); | ||
} | ||
function sinInOut(t) { | ||
return (1 - Math.cos(pi * t)) / 2; | ||
} | ||
function expOut(t) { | ||
return 1 - Math.pow(2, -10 * t); | ||
} | ||
function expIn(t) { | ||
return Math.pow(2, 10 * t - 10); | ||
} | ||
function expInOut(t) { | ||
return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; | ||
} | ||
function expOut(t) { | ||
return 1 - Math.pow(2, -10 * t); | ||
} | ||
function circleIn(t) { | ||
return 1 - Math.sqrt(1 - t * t); | ||
} | ||
function expInOut(t) { | ||
return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; | ||
} | ||
function circleOut(t) { | ||
return Math.sqrt(1 - --t * t); | ||
} | ||
function circleIn(t) { | ||
return 1 - Math.sqrt(1 - t * t); | ||
} | ||
function circleInOut(t) { | ||
return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; | ||
} | ||
function circleOut(t) { | ||
return Math.sqrt(1 - --t * t); | ||
} | ||
var b1 = 4 / 11; | ||
var b2 = 6 / 11; | ||
var b3 = 8 / 11; | ||
var b4 = 3 / 4; | ||
var b5 = 9 / 11; | ||
var b6 = 10 / 11; | ||
var b7 = 15 / 16; | ||
var b8 = 21 / 22; | ||
var b9 = 63 / 64; | ||
var b0 = 1 / b1 / b1; | ||
function circleInOut(t) { | ||
return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; | ||
} | ||
function bounceIn(t) { | ||
return 1 - bounceOut(1 - t); | ||
} | ||
var b1 = 4 / 11; | ||
var b2 = 6 / 11; | ||
var b3 = 8 / 11; | ||
var b4 = 3 / 4; | ||
var b5 = 9 / 11; | ||
var b6 = 10 / 11; | ||
var b7 = 15 / 16; | ||
var b8 = 21 / 22; | ||
var b9 = 63 / 64; | ||
var b0 = 1 / b1 / b1; | ||
function bounceIn(t) { | ||
return 1 - bounceOut(1 - t); | ||
} | ||
function bounceOut(t) { | ||
return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; | ||
} | ||
function bounceOut(t) { | ||
return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; | ||
} | ||
function bounceInOut(t) { | ||
return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; | ||
} | ||
function bounceInOut(t) { | ||
return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; | ||
} | ||
var overshoot = 1.70158; | ||
var overshoot = 1.70158; | ||
var backIn = (function custom(s) { | ||
s = +s; | ||
var backIn = (function custom(s) { | ||
s = +s; | ||
function backIn(t) { | ||
return t * t * ((s + 1) * t - s); | ||
} | ||
function backIn(t) { | ||
return t * t * ((s + 1) * t - s); | ||
} | ||
backIn.overshoot = custom; | ||
backIn.overshoot = custom; | ||
return backIn; | ||
})(overshoot); | ||
return backIn; | ||
})(overshoot); | ||
var backOut = (function custom(s) { | ||
s = +s; | ||
var backOut = (function custom(s) { | ||
s = +s; | ||
function backOut(t) { | ||
return --t * t * ((s + 1) * t + s) + 1; | ||
} | ||
function backOut(t) { | ||
return --t * t * ((s + 1) * t + s) + 1; | ||
} | ||
backOut.overshoot = custom; | ||
backOut.overshoot = custom; | ||
return backOut; | ||
})(overshoot); | ||
return backOut; | ||
})(overshoot); | ||
var backInOut = (function custom(s) { | ||
s = +s; | ||
var backInOut = (function custom(s) { | ||
s = +s; | ||
function backInOut(t) { | ||
return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; | ||
} | ||
function backInOut(t) { | ||
return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; | ||
} | ||
backInOut.overshoot = custom; | ||
backInOut.overshoot = custom; | ||
return backInOut; | ||
})(overshoot); | ||
return backInOut; | ||
})(overshoot); | ||
var tau = 2 * Math.PI; | ||
var amplitude = 1; | ||
var period = 0.3; | ||
var tau = 2 * Math.PI; | ||
var amplitude = 1; | ||
var period = 0.3; | ||
var elasticIn = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
var elasticIn = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
function elasticIn(t) { | ||
return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); | ||
} | ||
function elasticIn(t) { | ||
return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); | ||
} | ||
elasticIn.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticIn.period = function(p) { return custom(a, p); }; | ||
elasticIn.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticIn.period = function(p) { return custom(a, p); }; | ||
return elasticIn; | ||
})(amplitude, period); | ||
return elasticIn; | ||
})(amplitude, period); | ||
var elasticOut = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
var elasticOut = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
function elasticOut(t) { | ||
return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); | ||
} | ||
function elasticOut(t) { | ||
return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); | ||
} | ||
elasticOut.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticOut.period = function(p) { return custom(a, p); }; | ||
elasticOut.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticOut.period = function(p) { return custom(a, p); }; | ||
return elasticOut; | ||
})(amplitude, period); | ||
return elasticOut; | ||
})(amplitude, period); | ||
var elasticInOut = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
var elasticInOut = (function custom(a, p) { | ||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); | ||
function elasticInOut(t) { | ||
return ((t = t * 2 - 1) < 0 | ||
? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) | ||
: 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; | ||
} | ||
function elasticInOut(t) { | ||
return ((t = t * 2 - 1) < 0 | ||
? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) | ||
: 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; | ||
} | ||
elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticInOut.period = function(p) { return custom(a, p); }; | ||
elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; | ||
elasticInOut.period = function(p) { return custom(a, p); }; | ||
return elasticInOut; | ||
})(amplitude, period); | ||
return elasticInOut; | ||
})(amplitude, period); | ||
exports.easeLinear = linear; | ||
exports.easeQuad = quadInOut; | ||
exports.easeQuadIn = quadIn; | ||
exports.easeQuadOut = quadOut; | ||
exports.easeQuadInOut = quadInOut; | ||
exports.easeCubic = cubicInOut; | ||
exports.easeCubicIn = cubicIn; | ||
exports.easeCubicOut = cubicOut; | ||
exports.easeCubicInOut = cubicInOut; | ||
exports.easePoly = polyInOut; | ||
exports.easePolyIn = polyIn; | ||
exports.easePolyOut = polyOut; | ||
exports.easePolyInOut = polyInOut; | ||
exports.easeSin = sinInOut; | ||
exports.easeSinIn = sinIn; | ||
exports.easeSinOut = sinOut; | ||
exports.easeSinInOut = sinInOut; | ||
exports.easeExp = expInOut; | ||
exports.easeExpIn = expIn; | ||
exports.easeExpOut = expOut; | ||
exports.easeExpInOut = expInOut; | ||
exports.easeCircle = circleInOut; | ||
exports.easeCircleIn = circleIn; | ||
exports.easeCircleOut = circleOut; | ||
exports.easeCircleInOut = circleInOut; | ||
exports.easeBounce = bounceOut; | ||
exports.easeBounceIn = bounceIn; | ||
exports.easeBounceOut = bounceOut; | ||
exports.easeBounceInOut = bounceInOut; | ||
exports.easeBack = backInOut; | ||
exports.easeBackIn = backIn; | ||
exports.easeBackOut = backOut; | ||
exports.easeBackInOut = backInOut; | ||
exports.easeElastic = elasticOut; | ||
exports.easeElasticIn = elasticIn; | ||
exports.easeElasticOut = elasticOut; | ||
exports.easeElasticInOut = elasticInOut; | ||
exports.easeLinear = linear; | ||
exports.easeQuad = quadInOut; | ||
exports.easeQuadIn = quadIn; | ||
exports.easeQuadOut = quadOut; | ||
exports.easeQuadInOut = quadInOut; | ||
exports.easeCubic = cubicInOut; | ||
exports.easeCubicIn = cubicIn; | ||
exports.easeCubicOut = cubicOut; | ||
exports.easeCubicInOut = cubicInOut; | ||
exports.easePoly = polyInOut; | ||
exports.easePolyIn = polyIn; | ||
exports.easePolyOut = polyOut; | ||
exports.easePolyInOut = polyInOut; | ||
exports.easeSin = sinInOut; | ||
exports.easeSinIn = sinIn; | ||
exports.easeSinOut = sinOut; | ||
exports.easeSinInOut = sinInOut; | ||
exports.easeExp = expInOut; | ||
exports.easeExpIn = expIn; | ||
exports.easeExpOut = expOut; | ||
exports.easeExpInOut = expInOut; | ||
exports.easeCircle = circleInOut; | ||
exports.easeCircleIn = circleIn; | ||
exports.easeCircleOut = circleOut; | ||
exports.easeCircleInOut = circleInOut; | ||
exports.easeBounce = bounceOut; | ||
exports.easeBounceIn = bounceIn; | ||
exports.easeBounceOut = bounceOut; | ||
exports.easeBounceInOut = bounceInOut; | ||
exports.easeBack = backInOut; | ||
exports.easeBackIn = backIn; | ||
exports.easeBackOut = backOut; | ||
exports.easeBackInOut = backInOut; | ||
exports.easeElastic = elasticOut; | ||
exports.easeElasticIn = elasticIn; | ||
exports.easeElasticOut = elasticOut; | ||
exports.easeElasticInOut = elasticInOut; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
}))); |
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-ease/ Version 1.0.1. Copyright 2016 Mike Bostock. | ||
// https://d3js.org/d3-ease/ Version 1.0.2. Copyright 2016 Mike Bostock. | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3=n.d3||{})}(this,function(n){"use strict";function t(n){return+n}function e(n){return n*n}function u(n){return n*(2-n)}function r(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function a(n){return n*n*n}function o(n){return--n*n*n+1}function i(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function c(n){return 1-Math.cos(n*E)}function s(n){return Math.sin(n*E)}function f(n){return(1-Math.cos(C*n))/2}function h(n){return Math.pow(2,10*n-10)}function p(n){return 1-Math.pow(2,-10*n)}function M(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function d(n){return 1-Math.sqrt(1-n*n)}function I(n){return Math.sqrt(1- --n*n)}function O(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function l(n){return 1-x(1-n)}function x(n){return(n=+n)<P?g*n*n:n<k?g*(n-=b)*n+q:n<S?g*(n-=Q)*n+j:g*(n-=_)*n+L}function w(n){return((n*=2)<=1?1-x(1-n):x(n-1)+1)/2}var m=3,v=function n(t){function e(n){return Math.pow(n,t)}return t=+t,e.exponent=n,e}(m),y=function n(t){function e(n){return 1-Math.pow(1-n,t)}return t=+t,e.exponent=n,e}(m),B=function n(t){function e(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,e.exponent=n,e}(m),C=Math.PI,E=C/2,P=4/11,b=6/11,k=8/11,q=.75,Q=9/11,S=10/11,j=.9375,_=21/22,L=63/64,g=1/P/P,z=1.70158,A=function n(t){function e(n){return n*n*((t+1)*n-t)}return t=+t,e.overshoot=n,e}(z),D=function n(t){function e(n){return--n*n*((t+1)*n+t)+1}return t=+t,e.overshoot=n,e}(z),F=function n(t){function e(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,e.overshoot=n,e}(z),G=2*Math.PI,H=1,J=.3,K=function n(t,e){function u(n){return t*Math.pow(2,10*--n)*Math.sin((r-n)/e)}var r=Math.asin(1/(t=Math.max(1,t)))*(e/=G);return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(H,J),N=function n(t,e){function u(n){return 1-t*Math.pow(2,-10*(n=+n))*Math.sin((n+r)/e)}var r=Math.asin(1/(t=Math.max(1,t)))*(e/=G);return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(H,J),R=function n(t,e){function u(n){return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((r-n)/e):2-t*Math.pow(2,-10*n)*Math.sin((r+n)/e))/2}var r=Math.asin(1/(t=Math.max(1,t)))*(e/=G);return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(H,J);n.easeLinear=t,n.easeQuad=r,n.easeQuadIn=e,n.easeQuadOut=u,n.easeQuadInOut=r,n.easeCubic=i,n.easeCubicIn=a,n.easeCubicOut=o,n.easeCubicInOut=i,n.easePoly=B,n.easePolyIn=v,n.easePolyOut=y,n.easePolyInOut=B,n.easeSin=f,n.easeSinIn=c,n.easeSinOut=s,n.easeSinInOut=f,n.easeExp=M,n.easeExpIn=h,n.easeExpOut=p,n.easeExpInOut=M,n.easeCircle=O,n.easeCircleIn=d,n.easeCircleOut=I,n.easeCircleInOut=O,n.easeBounce=x,n.easeBounceIn=l,n.easeBounceOut=x,n.easeBounceInOut=w,n.easeBack=F,n.easeBackIn=A,n.easeBackOut=D,n.easeBackInOut=F,n.easeElastic=N,n.easeElasticIn=K,n.easeElasticOut=N,n.easeElasticInOut=R,Object.defineProperty(n,"__esModule",{value:!0})}); |
{ | ||
"name": "d3-ease", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easing functions for smooth animation.", | ||
@@ -33,5 +33,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "2", | ||
"eslint": "3", | ||
"package-preamble": "0.0", | ||
"rollup": "0.34", | ||
"rollup": "0.36", | ||
"tape": "4", | ||
@@ -38,0 +38,0 @@ "uglify-js": "2" |
@@ -44,3 +44,3 @@ # d3-ease | ||
<a name="easeLinear" href="#easeLinear">#</a> d3.<b>easeLinear</b>(<i>t</i>) | ||
<a name="easeLinear" href="#easeLinear">#</a> d3.<b>easeLinear</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/linear.js "Source") | ||
@@ -51,3 +51,3 @@ Linear easing; the identity function; *linear*(*t*) returns *t*. | ||
<a name="easePolyIn" href="#easePolyIn">#</a> d3.<b>easePolyIn</b>(<i>t</i>) | ||
<a name="easePolyIn" href="#easePolyIn">#</a> d3.<b>easePolyIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L3 "Source") | ||
@@ -58,3 +58,3 @@ Polynomial easing; raises *t* to the specified [exponent](#poly_exponent). If the exponent is not specified, it defaults to 3, equivalent to [cubicIn](#easeCubicIn). | ||
<a name="easePolyOut" href="#easePolyOut">#</a> d3.<b>easePolyOut</b>(<i>t</i>) | ||
<a name="easePolyOut" href="#easePolyOut">#</a> d3.<b>easePolyOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L15 "Source") | ||
@@ -65,4 +65,4 @@ Reverse polynomial easing; equivalent to 1 - [polyIn](#easePolyIn)(1 - *t*). If the [exponent](#poly_exponent) is not specified, it defaults to 3, equivalent to [cubicOut](#easeCubicOut). | ||
<a name="easePoly" href="#easePoly">#</a> d3.<b>easePoly</b>(<i>t</i>) | ||
<br><a name="easePolyInOut" href="#easePolyInOut">#</a> d3.<b>easePolyInOut</b>(<i>t</i>) | ||
<a name="easePoly" href="#easePoly">#</a> d3.<b>easePoly</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js "Source") | ||
<br><a name="easePolyInOut" href="#easePolyInOut">#</a> d3.<b>easePolyInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L27 "Source") | ||
@@ -73,3 +73,3 @@ Symmetric polynomial easing; scales [polyIn](#easePolyIn) for *t* in [0, 0.5] and [polyOut](#easePolyOut) for *t* in [0.5, 1]. If the [exponent](#poly_exponent) is not specified, it defaults to 3, equivalent to [cubic](#easeCubic). | ||
<a name="poly_exponent" href="#poly_exponent">#</a> <i>poly</i>.<b>exponent</b>(<i>e</i>) | ||
<a name="poly_exponent" href="#poly_exponent">#</a> <i>poly</i>.<b>exponent</b>(<i>e</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L1 "Source") | ||
@@ -84,3 +84,3 @@ Returns a new polynomial easing with the specified exponent *e*. For example, to create equivalents of [linear](#easeLinear), [quad](#easeQuad), and [cubic](#easeCubic): | ||
<a name="easeQuadIn" href="#easeQuadIn">#</a> d3.<b>easeQuadIn</b>(<i>t</i>) | ||
<a name="easeQuadIn" href="#easeQuadIn">#</a> d3.<b>easeQuadIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L1 "Source") | ||
@@ -91,3 +91,3 @@ Quadratic easing; equivalent to [polyIn](#easePolyIn).[exponent](#poly_exponent)(2). | ||
<a name="easeQuadOut" href="#easeQuadOut">#</a> d3.<b>easeQuadOut</b>(<i>t</i>) | ||
<a name="easeQuadOut" href="#easeQuadOut">#</a> d3.<b>easeQuadOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L5 "Source") | ||
@@ -98,4 +98,4 @@ Reverse quadratic easing; equivalent to 1 - [quadIn](#easeQuadIn)(1 - *t*). Also equivalent to [polyOut](#easePolyOut).[exponent](#poly_exponent)(2). | ||
<a name="easeQuad" href="#easeQuad">#</a> d3.<b>easeQuad</b>(<i>t</i>) | ||
<br><a name="easeQuadInOut" href="#easeQuadInOut">#</a> d3.<b>easeQuadInOut</b>(<i>t</i>) | ||
<a name="easeQuad" href="#easeQuad">#</a> d3.<b>easeQuad</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js "Source") | ||
<br><a name="easeQuadInOut" href="#easeQuadInOut">#</a> d3.<b>easeQuadInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L9 "Source") | ||
@@ -106,3 +106,3 @@ Symmetric quadratic easing; scales [quadIn](#easeQuadIn) for *t* in [0, 0.5] and [quadOut](#easeQuadOut) for *t* in [0.5, 1]. Also equivalent to [poly](#easePoly).[exponent](#poly_exponent)(2). | ||
<a name="easeCubicIn" href="#easeCubicIn">#</a> d3.<b>easeCubicIn</b>(<i>t</i>) | ||
<a name="easeCubicIn" href="#easeCubicIn">#</a> d3.<b>easeCubicIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L1 "Source") | ||
@@ -113,3 +113,3 @@ Cubic easing; equivalent to [polyIn](#easePolyIn).[exponent](#poly_exponent)(3). | ||
<a name="easeCubicOut" href="#easeCubicOut">#</a> d3.<b>easeCubicOut</b>(<i>t</i>) | ||
<a name="easeCubicOut" href="#easeCubicOut">#</a> d3.<b>easeCubicOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L5 "Source") | ||
@@ -120,4 +120,4 @@ Reverse cubic easing; equivalent to 1 - [cubicIn](#easeCubicIn)(1 - *t*). Also equivalent to [polyOut](#easePolyOut).[exponent](#poly_exponent)(3). | ||
<a name="easeCubic" href="#easeCubic">#</a> d3.<b>easeCubic</b>(<i>t</i>) | ||
<br><a name="easeCubicInOut" href="#easeCubicInOut">#</a> d3.<b>easeCubicInOut</b>(<i>t</i>) | ||
<a name="easeCubic" href="#easeCubic">#</a> d3.<b>easeCubic</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js "Source") | ||
<br><a name="easeCubicInOut" href="#easeCubicInOut">#</a> d3.<b>easeCubicInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L9 "Source") | ||
@@ -128,3 +128,3 @@ Symmetric cubic easing; scales [cubicIn](#easeCubicIn) for *t* in [0, 0.5] and [cubicOut](#easeCubicOut) for *t* in [0.5, 1]. Also equivalent to [poly](#easePoly).[exponent](#poly_exponent)(3). | ||
<a name="easeSinIn" href="#easeSinIn">#</a> d3.<b>easeSinIn</b>(<i>t</i>) | ||
<a name="easeSinIn" href="#easeSinIn">#</a> d3.<b>easeSinIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L4 "Source") | ||
@@ -135,3 +135,3 @@ Sinusoidal easing; returns sin(*t*). | ||
<a name="easeSinOut" href="#easeSinOut">#</a> d3.<b>easeSinOut</b>(<i>t</i>) | ||
<a name="easeSinOut" href="#easeSinOut">#</a> d3.<b>easeSinOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L8 "Source") | ||
@@ -142,4 +142,4 @@ Reverse sinusoidal easing; equivalent to 1 - [sinIn](#easeSinIn)(1 - *t*). | ||
<a name="easeSin" href="#easeSin">#</a> d3.<b>easeSin</b>(<i>t</i>) | ||
<br><a name="easeSinInOut" href="#easeSinInOut">#</a> d3.<b>easeSinInOut</b>(<i>t</i>) | ||
<a name="easeSin" href="#easeSin">#</a> d3.<b>easeSin</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js "Source") | ||
<br><a name="easeSinInOut" href="#easeSinInOut">#</a> d3.<b>easeSinInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L12 "Source") | ||
@@ -150,3 +150,3 @@ Symmetric sinusoidal easing; scales [sinIn](#easeSinIn) for *t* in [0, 0.5] and [sinOut](#easeSinOut) for *t* in [0.5, 1]. | ||
<a name="easeExpIn" href="#easeExpIn">#</a> d3.<b>easeExpIn</b>(<i>t</i>) | ||
<a name="easeExpIn" href="#easeExpIn">#</a> d3.<b>easeExpIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L1 "Source") | ||
@@ -157,3 +157,3 @@ Exponential easing; raises 2 to the exponent 10 \* (*t* - 1). | ||
<a name="easeExpOut" href="#easeExpOut">#</a> d3.<b>easeExpOut</b>(<i>t</i>) | ||
<a name="easeExpOut" href="#easeExpOut">#</a> d3.<b>easeExpOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L5 "Source") | ||
@@ -164,4 +164,4 @@ Reverse exponential easing; equivalent to 1 - [expIn](#easeExpIn)(1 - *t*). | ||
<a name="easeExp" href="#easeExp">#</a> d3.<b>easeExp</b>(<i>t</i>) | ||
<br><a name="easeExpInOut" href="#easeExpInOut">#</a> d3.<b>easeExpInOut</b>(<i>t</i>) | ||
<a name="easeExp" href="#easeExp">#</a> d3.<b>easeExp</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js "Source") | ||
<br><a name="easeExpInOut" href="#easeExpInOut">#</a> d3.<b>easeExpInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L9 "Source") | ||
@@ -172,3 +172,3 @@ Symmetric exponential easing; scales [expIn](#easeExpIn) for *t* in [0, 0.5] and [expOut](#easeExpOut) for *t* in [0.5, 1]. | ||
<a name="easeCircleIn" href="#easeCircleIn">#</a> d3.<b>easeCircleIn</b>(<i>t</i>) | ||
<a name="easeCircleIn" href="#easeCircleIn">#</a> d3.<b>easeCircleIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L1 "Source") | ||
@@ -179,3 +179,3 @@ Circular easing. | ||
<a name="easeCircleOut" href="#easeCircleOut">#</a> d3.<b>easeCircleOut</b>(<i>t</i>) | ||
<a name="easeCircleOut" href="#easeCircleOut">#</a> d3.<b>easeCircleOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L5 "Source") | ||
@@ -186,4 +186,4 @@ Reverse circular easing; equivalent to 1 - [circleIn](#easeCircleIn)(1 - *t*). | ||
<a name="easeCircle" href="#easeCircle">#</a> d3.<b>easeCircle</b>(<i>t</i>) | ||
<br><a name="easeCircleInOut" href="#easeCircleInOut">#</a> d3.<b>easeCircleInOut</b>(<i>t</i>) | ||
<a name="easeCircle" href="#easeCircle">#</a> d3.<b>easeCircle</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js "Source") | ||
<br><a name="easeCircleInOut" href="#easeCircleInOut">#</a> d3.<b>easeCircleInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L9 "Source") | ||
@@ -194,3 +194,3 @@ Symmetric circular easing; scales [circleIn](#easeCircleIn) for *t* in [0, 0.5] and [circleOut](#easeCircleOut) for *t* in [0.5, 1]. | ||
<a name="easeElasticIn" href="#easeElasticIn">#</a> d3.<b>easeElasticIn</b>(<i>t</i>) | ||
<a name="easeElasticIn" href="#easeElasticIn">#</a> d3.<b>easeElasticIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L5 "Source") | ||
@@ -201,4 +201,4 @@ Elastic easing, like a rubber band. The [amplitude](#elastic_amplitude) and [period](#elastic_period) of the oscillation are configurable; if not specified, they default to 1 and 0.3, respectively. | ||
<a name="easeElastic" href="#easeElastic">#</a> d3.<b>easeElastic</b>(<i>t</i>) | ||
<br><a name="easeElasticOut" href="#easeElasticOut">#</a> d3.<b>easeElasticOut</b>(<i>t</i>) | ||
<a name="easeElastic" href="#easeElastic">#</a> d3.<b>easeElastic</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js "Source") | ||
<br><a name="easeElasticOut" href="#easeElasticOut">#</a> d3.<b>easeElasticOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L18 "Source") | ||
@@ -209,3 +209,3 @@ Reverse elastic easing; equivalent to 1 - [elasticIn](#easeElasticIn)(1 - *t*). | ||
<a name="easeElasticInOut" href="#easeElasticInOut">#</a> d3.<b>easeElasticInOut</b>(<i>t</i>) | ||
<a name="easeElasticInOut" href="#easeElasticInOut">#</a> d3.<b>easeElasticInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L31 "Source") | ||
@@ -216,11 +216,11 @@ Symmetric elastic easing; scales [elasticIn](#easeElasticIn) for *t* in [0, 0.5] and [elasticOut](#easeElasticOut) for *t* in [0.5, 1]. | ||
<a name="elastic_amplitude" href="#elastic_amplitude">#</a> <i>elastic</i>.<b>amplitude</b>(<i>a</i>) | ||
<a name="elastic_amplitude" href="#elastic_amplitude">#</a> <i>elastic</i>.<b>amplitude</b>(<i>a</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L40 "Source") | ||
Returns a new elastic easing with the specified amplitude *a*. | ||
<a name="elastic_period" href="#elastic_period">#</a> <i>elastic</i>.<b>period</b>(<i>p</i>) | ||
<a name="elastic_period" href="#elastic_period">#</a> <i>elastic</i>.<b>period</b>(<i>p</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L41 "Source") | ||
Returns a new elastic easing with the specified period *p*. | ||
<a name="easeBackIn" href="#easeBackIn">#</a> d3.<b>easeBackIn</b>(<i>t</i>) | ||
<a name="easeBackIn" href="#easeBackIn">#</a> d3.<b>easeBackIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L3 "Source") | ||
@@ -231,3 +231,3 @@ [Anticipatory](https://en.wikipedia.org/wiki/12_basic_principles_of_animation#Anticipation) easing, like a dancer bending his knees before jumping off the floor. The degree of [overshoot](#back_overshoot) is configurable; it not specified, it defaults to 1.70158. | ||
<a name="easeBackOut" href="#easeBackOut">#</a> d3.<b>easeBackOut</b>(<i>t</i>) | ||
<a name="easeBackOut" href="#easeBackOut">#</a> d3.<b>easeBackOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L15 "Source") | ||
@@ -238,4 +238,4 @@ Reverse anticipatory easing; equivalent to 1 - [backIn](#easeBackIn)(1 - *t*). | ||
<a name="easeBack" href="#easeBack">#</a> d3.<b>easeBack</b>(<i>t</i>) | ||
<br><a name="easeBackInOut" href="#easeBackInOut">#</a> d3.<b>easeBackInOut</b>(<i>t</i>) | ||
<a name="easeBack" href="#easeBack">#</a> d3.<b>easeBack</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js "Source") | ||
<br><a name="easeBackInOut" href="#easeBackInOut">#</a> d3.<b>easeBackInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L27 "Source") | ||
@@ -246,7 +246,7 @@ Symmetric anticipatory easing; scales [backIn](#easeBackIn) for *t* in [0, 0.5] and [backOut](#easeBackOut) for *t* in [0.5, 1]. | ||
<a name="back_overshoot" href="#back_overshoot">#</a> <i>back</i>.<b>overshoot</b>(<i>s</i>) | ||
<a name="back_overshoot" href="#back_overshoot">#</a> <i>back</i>.<b>overshoot</b>(<i>s</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L1 "Source") | ||
Returns a new back easing with the specified overshoot *s*. | ||
<a name="easeBounceIn" href="#easeBounceIn">#</a> d3.<b>easeBounceIn</b>(<i>t</i>) | ||
<a name="easeBounceIn" href="#easeBounceIn">#</a> d3.<b>easeBounceIn</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L12 "Source") | ||
@@ -257,4 +257,4 @@ Bounce easing, like a rubber ball. | ||
<a name="easeBounce" href="#easeBounce">#</a> d3.<b>easeBounce</b>(<i>t</i>) | ||
<br><a name="easeBounceOut" href="#easeBounceOut">#</a> d3.<b>easeBounceOut</b>(<i>t</i>) | ||
<a name="easeBounce" href="#easeBounce">#</a> d3.<b>easeBounce</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js "Source") | ||
<br><a name="easeBounceOut" href="#easeBounceOut">#</a> d3.<b>easeBounceOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L16 "Source") | ||
@@ -265,3 +265,3 @@ Reverse bounce easing; equivalent to 1 - [bounceIn](#easeBounceIn)(1 - *t*). | ||
<a name="easeBounceInOut" href="#easeBounceInOut">#</a> d3.<b>easeBounceInOut</b>(<i>t</i>) | ||
<a name="easeBounceInOut" href="#easeBounceInOut">#</a> d3.<b>easeBounceInOut</b>(<i>t</i>) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L20 "Source") | ||
@@ -268,0 +268,0 @@ Symmetric bounce easing; scales [bounceIn](#easeBounceIn) for *t* in [0, 0.5] and [bounceOut](#easeBounceOut) for *t* in [0.5, 1]. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
488249
405