You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use "elementToSVG" to convert part of my page into svg.
It seems, that if DOM element get offsetWidth or offsetHeight, the output svg has them in "viewbox" properties. So, the final svg has offsets too.
Any ideas, how to solve this?
The text was updated successfully, but these errors were encountered:
morozovkirill
changed the title
Output SVG uses offsetWidth / offsetHeight in viewbox properties
Output SVG uses offsetWidth / offsetHeight in viewbox properties in "elementToSVG"
Oct 26, 2022
Referring to this issue
I use "elementToSVG" to convert part of my page into svg.
It seems, that if DOM element get offsetWidth or offsetHeight, the output svg has them in "viewbox" properties. So, the final svg has offsets too.
Any ideas, how to solve this?
The text was updated successfully, but these errors were encountered: