d3 / d3-transition

Animated transitions for D3 selections.
https://d3js.org/d3-transition
ISC License
224 stars 65 forks source link

An API for interrupting all descendant elements? #43

Closed mbostock closed 5 years ago

mbostock commented 8 years ago

This is a little awkward:

selection
    .interrupt()
  .selectAll("*")
    .interrupt();

I wonder if I should change selection.interrupt to do this by default (probably a bad idea) or we need a new method, say, selection.interruptAll (although that name seems to imply it affects all transitions, and not all descendants, which is not great)?