Closed pekim closed 1 month ago
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#scale
The scale(<x> [<y>]) transform function specifies a scale operation by x and y. If y is not provided, it is assumed to be equal to x.
scale(<x> [<y>])
x
y
https://github.com/lafriks/go-svg/blob/58ecbfca0208034d921c78d71cc0ac474c0e8f2f/parse.go#L83 I believe that
if ln == 1 { m1 = m1.Scale(c.points[0], 0)
should be
if ln == 1 { m1 = m1.Scale(c.points[0], c.points[0])
It looks like translate has the same issue. https://github.com/lafriks/go-svg/blob/58ecbfca0208034d921c78d71cc0ac474c0e8f2f/parse.go#L63
translate
Fixed in v0.4.1 release
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#scale
https://github.com/lafriks/go-svg/blob/58ecbfca0208034d921c78d71cc0ac474c0e8f2f/parse.go#L83 I believe that
should be