Greetings.
I think it would be useful to have a way to know when a fit() operation has actually concluded instead of having to rely on timeouts.
D3 transitions natively provides a end() method which returns a Promise: https://observablehq.com/@d3/transition-end.
Similar hooks could be useful in other spots I am not aware of.
Greetings. I think it would be useful to have a way to know when a
fit()
operation has actually concluded instead of having to rely on timeouts. D3 transitions natively provides aend()
method which returns aPromise
: https://observablehq.com/@d3/transition-end. Similar hooks could be useful in other spots I am not aware of.