MCPcopy Create free account
hub / github.com/idank/explainshell / start

Function start

explainshell/web/static/js/d3.v3.js:7374–7385  ·  view source on GitHub ↗
(elapsed)

Source from the content-addressed store, hash-verified

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;

Callers 1

d3_transitionNodeFunction · 0.85

Calls 3

stopFunction · 0.85
tickFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected