I use D3 force layout to organize the network, and everything works smoothly.
However, I want to add a button to my user interface so that the user can play / pause the layout process as desired: I would like to have a toggle button that reflects the current layout status: regardless of not (d3 will automatically stop calculating when the layout stabilizes). Is there a way to tell when the compositing calculations ended and started? I was expecting some kind of event to handle this, but could not find it.
source share