πŸ‡©πŸ‡ͺGermany @FalkNisius

Berlin
Account created on 2 July 2013, over 11 years ago
#

Recent comments

πŸ‡©πŸ‡ͺGermany FalkNisius Berlin

Sorry, that I react late. Thanks for the work.

My team runs in the issue with missing width and height, and the approach should be changed.

The actual code prefers the width and height attribute from the svg-tag. Most exporters write 100% to that attributes, and it results to a width and height of 100 pixel, because the code strips the % sign.

The viewBox attribute is more usual and should be preferred if it exists.

The code depends on the letter case of the attributes, that is not always given, that viewBox is written as camel case.

The first two values of viewBox should not be ignored, they can have positive and negative values. The values in the viewBox can be float. We have to build a difference between the right and left corner values. At least the absolute values of the difference should be used.

πŸ‡©πŸ‡ͺGermany FalkNisius Berlin

FalkNisius β†’ made their first commit to this issue’s fork.

Production build 0.71.5 2024