In d3 v5 (or 6!) what’s the code needed to
- get my force layout to be automatically centered in my SVG (on start at least)?
- get the zoom level defined dynamically to keep all nodes inside the visible SVG (on start at least)?
I’m considering to check the position of each node at each frame and react accordingly, but it looks way too ressource consuming.
Many thanks for your help!