(elapsed)
| 7372 | var d = node.__data__, ease = transition.ease, event = transition.event, delay = transition.delay, duration = transition.duration, tweened = []; |
| 7373 | return delay <= elapsed ? start(elapsed) : d3.timer(start, delay, time), 1; |
| 7374 | function start(elapsed) { |
| 7375 | if (lock.active > id) return stop(); |
| 7376 | lock.active = id; |
| 7377 | event.start.call(node, d, i); |
| 7378 | transition.tween.forEach(function(key, value) { |
| 7379 | if (value = value.call(node, d, i)) { |
| 7380 | tweened.push(value); |
| 7381 | } |
| 7382 | }); |
| 7383 | if (!tick(elapsed)) d3.timer(tick, 0, time); |
| 7384 | return 1; |
| 7385 | } |
| 7386 | function tick(elapsed) { |
| 7387 | if (lock.active !== id) return stop(); |
| 7388 | var t = (elapsed - delay) / duration, e = ease(t), n = tweened.length; |
no test coverage detected