Sha256: 7fca504e011040b04d2e1de74ca249d4190d2cd155341b9273e27df8d835423b

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

d3_transitionPrototype.style = function(name, value, priority) {
  if (arguments.length < 3) priority = "";
  return this.styleTween(name, d3_transitionTween(value), priority);
};

d3_transitionPrototype.styleTween = function(name, tween, priority) {
  if (arguments.length < 3) priority = "";
  return this.tween("style." + name, function(d, i) {
    var f = tween.call(this, d, i, window.getComputedStyle(this, null).getPropertyValue(name));
    return f && function(t) {
      this.style.setProperty(name, f(t), priority);
    };
  });
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bum-0.0.17 public/d3/src/core/transition-style.js
bum-0.0.16 public/d3/src/core/transition-style.js
bum-0.0.15 public/d3/src/core/transition-style.js
bum-0.0.14 public/d3/src/core/transition-style.js
bum-0.0.13 public/d3/src/core/transition-style.js
bum-0.0.12 public/d3/src/core/transition-style.js