lafriks / go-svg

Golang SVG file parser and rasterizer library
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Default y to x for translate and scale transformations #2

Closed pekim closed 1 month ago

pekim commented 1 month ago

If only one value is provided for translate or scale transforms then the single value will be used for both the x and y value.

See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#scale and https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#translate.

fixes #1

lafriks commented 1 month ago

Thanks for the fix