score:1

Accepted answer

Lars was right this is the answer...

zoom.translate([width / 2 - zoom.scale() * node.x, height / 2 - zoom.scale() * node.y])

To break this doesn a bit

width / 2 (go to middle) 
- 
zoom.scale() * node.x (move middle to the scaled x)

Related Query

More Query from same tag