Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
/ svgpan Public archive

Pan and Zoom of SVG in your Go front-end app in browser.

License

Notifications You must be signed in to change notification settings

nikolaydubina/svgpan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svgpan

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. 🤦🏻‍♂️

Troubleshooting

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