svgdotjs / svg.panzoom.js

A plugin for svg.js which enables panzoom for viewbox elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started

SpinoWeb opened this issue · comments

Hello,

when I Include the plugin after including the svg.js library in html document:

<script src="svg.js"></script>
<script src="svg.panzoom.js"></script>

I get this issue:

Uncaught SyntaxError: Cannot use import statement outside a module (svg.panzoom.js?ver=4.9.13:1)

I'd want to use svgjs and svg.panzoom in a wordpress plugin, so I prefer to grab them by cdn

How can I fix this issue? thanks!

I found a solution here: https://stackoverflow.com/a/55705551
it seems to work...

I posted another solution as answer on stackoverflow