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

Function transition_tween

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

Source from the content-addressed store, hash-verified

4395}
4396
4397function transition_tween(name, value) {
4398 var id = this._id;
4399
4400 name += "";
4401
4402 if (arguments.length < 2) {
4403 var tween = get(this.node(), id).tween;
4404 for (var i = 0, n = tween.length, t; i < n; ++i) {
4405 if ((t = tween[i]).name === name) {
4406 return t.value;
4407 }
4408 }
4409 return null;
4410 }
4411
4412 return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
4413}
4414
4415function tweenValue(transition, name, value) {
4416 var id = transition._id;

Callers

nothing calls this directly

Calls 2

eachMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected