From e37d7417cd5de45bd259806bd764e7656c8cd594 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Sun, 8 Dec 2024 20:46:54 +0000 Subject: [PATCH] Also fix transform property in SVG Fixes #3900 --- internal/svg/svg.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/svg/svg.go b/internal/svg/svg.go index 9300c06c03..7bf598e67d 100644 --- a/internal/svg/svg.go +++ b/internal/svg/svg.go @@ -140,6 +140,7 @@ type pathObj struct { StrokeLineJoin string `xml:"stroke-linejoin,attr,omitempty"` StrokeDashArray string `xml:"stroke-dasharray,attr,omitempty"` D string `xml:"d,attr"` + Transform string `xml:"transform,attr"` } type rectObj struct { @@ -155,6 +156,7 @@ type rectObj struct { Y string `xml:"y,attr,omitempty"` Width string `xml:"width,attr,omitempty"` Height string `xml:"height,attr,omitempty"` + Transform string `xml:"transform,attr"` } type circleObj struct { @@ -169,6 +171,7 @@ type circleObj struct { CX string `xml:"cx,attr,omitempty"` CY string `xml:"cy,attr,omitempty"` R string `xml:"r,attr,omitempty"` + Transform string `xml:"transform,attr"` } type ellipseObj struct { @@ -184,6 +187,7 @@ type ellipseObj struct { CY string `xml:"cy,attr,omitempty"` RX string `xml:"rx,attr,omitempty"` RY string `xml:"ry,attr,omitempty"` + Transform string `xml:"transform,attr"` } type polygonObj struct { @@ -196,6 +200,7 @@ type polygonObj struct { StrokeLineJoin string `xml:"stroke-linejoin,attr,omitempty"` StrokeDashArray string `xml:"stroke-dasharray,attr,omitempty"` Points string `xml:"points,attr"` + Transform string `xml:"transform,attr"` } type objGroup struct { @@ -207,6 +212,7 @@ type objGroup struct { StrokeLineCap string `xml:"stroke-linecap,attr,omitempty"` StrokeLineJoin string `xml:"stroke-linejoin,attr,omitempty"` StrokeDashArray string `xml:"stroke-dasharray,attr,omitempty"` + Transform string `xml:"transform,attr"` Paths []*pathObj `xml:"path"` Circles []*circleObj `xml:"circle"` Ellipses []*ellipseObj `xml:"ellipse"`