chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG
https://chrvadala.github.io/react-svg-pan-zoom/
MIT License
681 stars 127 forks source link

Programatically add SVG element? #116

Closed uncleramsay closed 6 years ago

uncleramsay commented 6 years ago

Hi,

The code examples in the documentation all have an <svg> element in the markup of the render function. However, in my use case I am generating the SVG elements programatically after the page has rendered.

Is there a way to programatically update the SVG contained inside the viewer?

Thanks

chrvadala commented 6 years ago

I think that this issue could help you https://github.com/chrvadala/react-svg-pan-zoom/issues/44