bumbu / svg-pan-zoom

JavaScript library that enables panning and zooming of an SVG in an HTML document, with mouse events or custom JavaScript hooks
https://github.com/ariutta/svg-pan-zoom#demos
BSD 2-Clause "Simplified" License
1.76k stars 389 forks source link

Possible to add an extra control? #457

Open dmb0058 opened 7 months ago

dmb0058 commented 7 months ago

I want to use one set of controls to zoom in/zoom out and create a new element on my svg-pan-zoom/jointjs application.

I have used custom controls to create "Zoom in", "Zoom out", "Reset", "New element" buttons on the web page that the svg is rendered in, but I'd prefer to add "New element" to the on-screen svg-pan-zoom controls on the svg.

Is this possible?

Thanks,

David