Sha256: 9ac5f762295bc698ef4d6d0a0400fe24dbbb2bbabc25f5ea252e301a777ed333
Contents?: true
Size: 664 Bytes
Versions: 6
Compression:
Stored size: 664 Bytes
Contents
d3_transitionPrototype.attr = function(name, value) { return this.attrTween(name, d3_transitionTween(value)); }; d3_transitionPrototype.attrTween = function(name, tween) { name = d3.ns.qualify(name); function attrTween(d, i) { var f = tween.call(this, d, i, this.getAttribute(name)); return 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 && function(t) { this.setAttributeNS(name.space, name.local, f(t)); }; } return this.tween("attr." + name, name.local ? attrTweenNS : attrTween); };
Version data entries
6 entries across 6 versions & 1 rubygems