Multiple panzoom?
xsshello opened this issue · comments
xsshello commented
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?