0

I would need advice :) I'am using library svg-pan-zoom (https://github.com/ariutta/svg-pan-zoom) in javascript. I have big technical diagram in SVG.. and my goal is zoom at specific element containing attr "id". I would like have that element in center of window...

In a link/image below it is possible to see how page looks after load...

(https://i.stack.imgur.com/YhTTZ.png)

I tried many different ways but without success... I was not able to achieve the desired result.

Please it would be possible to provide me function for zoom at specific element (to have that element in center of window )

Many many thanks.

  • Maybe you have the same issue as mentioned [here](https://stackoverflow.com/questions/59579575/how-to-get-x-y-coordinates-from-path-element-inside-svg/59580400#59580400). – JavaScript Jan 20 '23 at 07:44

0 Answers0