chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG

Home Page:https://chrvadala.github.io/react-svg-pan-zoom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I exempt certain elements from scaling?

dominiczy opened this issue · comments

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>.