Sha256: e03804baef1ad94f27a0358866636ba000cfd6a8bd964c2fa554d2b33927ee1c

Contents?: true

Size: 842 Bytes

Versions: 25

Compression:

Stored size: 842 Bytes

Contents

d3_transitionPrototype.attr = function(name, value) {
  return this.attrTween(name, d3_transitionTween(name, value));
};

d3_transitionPrototype.attrTween = function(nameNS, tween) {
  var name = d3.ns.qualify(nameNS);

  function attrTween(d, i) {
    var f = tween.call(this, d, i, this.getAttribute(name));
    return f === d3_transitionRemove
        ? (this.removeAttribute(name), null)
        : f && function(t) { this.setAttribute(name, f(t)); };
  }

  function attrTweenNS(d, i) {
    var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));
    return f === d3_transitionRemove
        ? (this.removeAttributeNS(name.space, name.local), null)
        : f && function(t) { this.setAttributeNS(name.space, name.local, f(t)); };
  }

  return this.tween("attr." + nameNS, name.local ? attrTweenNS : attrTween);
};

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
picky-statistics-4.5.0 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.4.2 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.4.1 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.4.0 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.3.2 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.3.1 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.3.0 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.2.4 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.2.3 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.2.2 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.2.1 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.2.0 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.1.0 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.9 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.8 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.7 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.6 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.5 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.4 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js
picky-statistics-4.0.3 lib/picky-statistics/application/javascripts/d3/src/core/transition-attr.js