I'm using the https://github.com/ariutta/svg-pan-zoom library
I have a svg with an element "g" inside. This element has a viewBox = "2727 -2840 1630 1115"
I want to zoom in a specific point (which is inside the viewbox)
panzoom.zoomAtPoint(2, {x: 3000, y: -2500});
However it doesn't work. The svg got moved outside the viewbox apparently. It looks that the panzoom take as initial x,y = 0,0 and its viewbox is 0 0 900 787