NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #610 most downloaded on npm
Easing functions for smooth animation.
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 21 of 30 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
32 releases · first in 2014
Make build reproducible.
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ .
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
v3.0.0
Compare
One column per quarter.
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 envi
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-ease 1.x or use a transpiler.
Nothing published for this version
Fix various easing functions to ensure that ease (0) = 0 and ease (1) = 1. #27
Adopt explicit files when publishing.
Housekeeping.
Update dependencies.
Update dependencies.
Update dependencies.
Add module entry point to package.json.
module entry point to package.json.D3 3.x used strings, such as “cubic-in-out”, to identify easing methods; these strings could be passed to d3.ease or _transition_.ease. D3 4.0 uses sy
D3 3.x used strings, such as “cubic-in-out”, to identify easing methods; these strings could be passed to d3.ease or transition.ease. D3 4.0 uses symbols instead, such as d3.easeCubicInOut. Symbols are simpler and cleaner. They work well with Rollup to produce smaller custom bundles. You can still define your own custom easing function, too, if desired. Here’s the full list of equivalents:
¹ The -in, -out and -in-out variants of linear easing are identical, so there’s just d3.easeLinear. ² Elastic and bounce easing were inadvertently reversed in 3.x, so 4.0 eliminates -out-in easing!
For convenience, there are also default aliases for each easing method. For example, d3.easeCubic is an alias for d3.easeCubicInOut. Most default to -in-out; the exceptions are d3.easeBounce and d3.easeElastic, which default to -out.
Rather than pass optional arguments to d3.ease or transition.ease, parameterizable easing functions now have named parameters: poly.exponent, elastic.amplitude, elastic.period and back.overshoot. For example, in D3 3.x you might say:
var e = d3.ease("elastic-out-in", 1.2);
The equivalent in D3 4.0 is:
var e = d3.easeElastic.amplitude(1.2);
Many of the easing functions have been optimized for performance and accuracy. Several bugs have been fixed, as well, such as the interpretation of the overshoot parameter for back easing, and the period parameter for elastic easing. Also, d3-transition now explicitly guarantees that the last tick of the transition happens at exactly t = 1, avoiding floating point errors in some easing functions.
There’s now a nice visual reference and an animated reference to the new easing functions, too!
See CHANGES for all D3 changes since 3.x.
Export to the global d3 in vanilla environments (d3/d3#2840).
d3 in vanilla environments (d3/d3#2840).Revert the ease interface (#13) in favor of simplicity.
Adopt method chaining for specifying optional easing parameters.
Nothing published for this version
Nothing published for this version
Prefix exported symbols with “ease”.
- Remove non-in aliases (#12).
Nothing published for this version
Renamed ease(type[, parameters…]) to bind.
Fix elasticOut and elasticInOut to be consistent with elasticIn.
Expose easing functions as symbols rather than strings (_e.g._, cubic instead of "cubic") .
"cubic") .Define d3-ease module (and d3_ease global), not ease.
d3-ease module (and d3_ease global), not ease.Adjust the package.json definition for npm users.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →