Zoom to Center of viewbox

Need to write code to get viewbox width and height