How to implement centered zoom in v5

Hi

The release log told me v5 has removed d3.behavior.zoom().center() method https://github.com/d3/d3/blob/master/CHANGES.md#zooming-d3-zoom

I also found a pull request support this feature in v5, but it’s still in the pending state. https://github.com/d3/d3-zoom/pull/212

Is there any equivalent solution?

Thanks

1 Like