MCPcopy Create free account
hub / github.com/breck7/scroll / attrTween

Function attrTween

external/.d3.js:4533–4542  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4531}
4532
4533function attrTween(name, value) {
4534 var t0, i0;
4535 function tween() {
4536 var i = value.apply(this, arguments);
4537 if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
4538 return t0;
4539 }
4540 tween._value = value;
4541 return tween;
4542}
4543
4544function transition_attrTween(name, value) {
4545 var key = "attr." + name;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected