Replies: 1 comment 1 reply
-
I think outermost <svg> is outermost part is fixed to 0 according to specifications of w3c SVG. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Previously, when using version 3.2.3, I made use of a trick to create an svg that would be resized with a new aspect ratio to fill it's container, which contained text that retained their aspect ratio. The text was placed inside child svg's within the parent svg. In order to do this it was necessary to set the X and Y values on the child svg's to position the text. Here's a snippet of the html that it generated ...
However, I've since upgraded to version 3.4 and I notice that all X and Y values on svg's are forced to be 0. Looking at the release notes this seems to have been done as a fix in version 3.3 ...
x
andy
attributes in outermost svg as per standard (see SVG renders as a completely blank image #886 ([https://github.com/SVG renders as a completely blank image #886]))In my case these child svg's, which are not outmost svg's are also affected. Looking at the source for SvgDocument, the cause seems clear ...
Would it be possible to include a fix in the next release to only set X and Y to zero on the outermost svg rather than on the child svg's as well?
Beta Was this translation helpful? Give feedback.
All reactions