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

Stylising canvas #66

Closed auroranil closed 6 years ago

auroranil commented 6 years ago

The library only allows changing the fill colour of the canvas rect. Instead of having one prop to set the background colour, having a style prop for this canvas would be good (for example, adding stroke or shadow to the canvas can be done through the style attribute).

auroranil commented 6 years ago

Issue has been resolved, by adding SVGStyle prop to the Viewer component. The style attribute of the rect canvas is set to the value of SVGStyle prop.