Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple panzoom? #316

Open
xsshello opened this issue Dec 23, 2023 · 0 comments
Open

Multiple panzoom? #316

xsshello opened this issue Dec 23, 2023 · 0 comments

Comments

@xsshello
Copy link

xsshello commented Dec 23, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant