File size: 387 Bytes
fcf3b03
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import "../interpolate/ease";
import "../selection/each";
import "transition";

d3_transitionPrototype.ease = function(value) {
  var id = this.id, ns = this.namespace;
  if (arguments.length < 1) return this.node()[ns][id].ease;
  if (typeof value !== "function") value = d3.ease.apply(d3, arguments);
  return d3_selection_each(this, function(node) { node[ns][id].ease = value; });
};