Pan and Zoom of SVG in your Go front-end app in browser.
This is port of JS svgpan. As of 2022-05-21, Google has just took a bunch of JS code and pasted it as raw const string. 🤦🏻♂️
If you are getting following error
$ go get github.com/nikolaydubina/svgpan
package github.com/nikolaydubina/svgpan
imports syscall/js: build constraints exclude all Go files in /usr/local/go/src/syscall/js
Download like
$ GOARCH=wasm GOOS=js go get github.com/nikolaydubina/svgpan