Lines of width 1 are not scaled
sebastianludwig opened this issue · 0 comments
sebastianludwig commented
Steps to reproduce the issue
- Create a SVG with line width 1
- Set
.scaleLineWidth
to true - Display the SVG 3x it's natural size
Expected: The line width is 3pt
Actual: The line width is 1pt
Reason
1
is the default value forstroke-width
and thus may be omitted- The path line width is only set if the attribute is specified
- Scaling happens only if the attribute is specified