Open xsshello opened 11 months ago
Hello, how can I make multiple svgs?
Now I do it like this:
let paths = document.querySelectorAll('div svg') paths.forEach((elem) => { instance.elem = panzoom(elem, { minZoom: 1 }); });
but have problem with catch events, I don't know how to refer to them - instance[0].getTransform(); not working
or better is to do one panzoom and switch them via destroy it somehow?
Hello, how can I make multiple svgs?
Now I do it like this:
but have problem with catch events, I don't know how to refer to them - instance[0].getTransform(); not working
or better is to do one panzoom and switch them via destroy it somehow?