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
677 stars 125 forks source link

Can I exempt certain elements from scaling? #173

Open dominiczy opened 4 years ago

dominiczy commented 4 years ago

Is it possible to prevent certain elements (for example <text>) from scaling, ie preserving their original size? This should be possible by using vectorEffect="non-scaling-stroke" (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/vector-effect) however this seems to be ignored when used inside <ReactSVGPanZoom>.