d3-transition icon indicating copy to clipboard operation
d3-transition copied to clipboard

transition.append?

Open mbostock opened this issue 9 years ago • 2 comments

It could create a placeholder node object that is materialized and appended to the parent when the transition starts, a bit like enter nodes. Or even simpler, it creates the DOM node immediately, but doesn’t append it to the DOM until the transition starts. That might perform well enough…

(If we use placeholder objects rather than elements, we’d need to make sure chained transition.append worked, of course, and define the behavior if a child transition starts before the parent transition. In that case, the child nodes are probably off-screen?)

mbostock avatar May 12 '16 01:05 mbostock

This would imply that you couldn’t re-select the appended nodes until the transition starts, but that seems like a reasonable compromise.

mbostock avatar May 12 '16 01:05 mbostock

+1

theiliad avatar Jul 21 '21 20:07 theiliad