Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transition End
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
You can’t perform that action at this time.