Transition End
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3_transitionPrototype.end = function() { | |
var subgroups = [], | |
subgroup, | |
subnode, | |
node; | |
for (var j = -1, m = this.length; ++j < m;) { | |
subgroups.push(subgroup = []); | |
for (var group = this[j], i = -1, n = group.length; ++i < n;) { | |
if (node = group[i]) { | |
subgroup.push({node: node, delay: node.delay + node.duration, duration: node.duration}); | |
} else { | |
subgroup.push(null); | |
} | |
} | |
} | |
return d3_transition(subgroups, this.id).ease(this.ease()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment