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

Issue loading from vue #53

Open
heychazza opened this issue Dec 8, 2021 · 2 comments
Open

Issue loading from vue #53

heychazza opened this issue Dec 8, 2021 · 2 comments

Comments

@heychazza
Copy link

Hey buddy,

Currently facing this issue (bumbu/svg-pan-zoom#308), not sure if its something that you would amend in the library. It only happens when using v-show or v-if with vue (so not in sight until you click something).

app.js:82134 Uncaught (in promise) DOMException: Failed to execute 'inverse' on 'SVGMatrix': The matrix is not invertible.
    at SvgPanZoom.zoomAtPoint (http://analyse.net.test/js/app.js:82134:50)
    at SvgPanZoom.zoom (http://analyse.net.test/js/app.js:82154:8)
    at SvgPanZoom.publicZoom (http://analyse.net.test/js/app.js:82172:8)
    at Object.zoom (http://analyse.net.test/js/app.js:82659:14)
    at l.createMap (http://analyse.net.test/js/app.js:83497:12542)
    at l.init (http://analyse.net.test/js/app.js:83497:1452)
    at new l (http://analyse.net.test/js/app.js:83497:46)
    at Proxy.mounted (http://analyse.net.test/js/app.js:33980:5)
    at callWithErrorHandling (http://analyse.net.test/js/app.js:28364:22)
    at callWithAsyncErrorHandling (http://analyse.net.test/js/app.js:28373:21)
@devShamim
Copy link

I had the same issue. I solved it by setting position:static; in CSS for this wrapper .svgMap-map-image

@ga676005
Copy link

I add setTimeout as a workaround. I didn't have this issue with an older vue3 version.

onMounted(() => {
  setTimeout(() => {
    const map = new svgMap({
      // ...
    })
  }, 0)
})

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

3 participants