From 65128d1346df5f5f98ef72c8632278183288b698 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sat, 12 Nov 2022 10:34:14 -0800 Subject: [PATCH] 2022-11-12 10:34:14AM --- d2renderers/d2svg/d2svg.go | 2 +- .../testdata/stable/all_shapes_multiple/dagre/sketch.exp.svg | 2 +- e2etests/testdata/stable/all_shapes_multiple/elk/sketch.exp.svg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/d2renderers/d2svg/d2svg.go b/d2renderers/d2svg/d2svg.go index 4dd6cebe8..bf4ba25ac 100644 --- a/d2renderers/d2svg/d2svg.go +++ b/d2renderers/d2svg/d2svg.go @@ -564,7 +564,7 @@ func drawShape(writer io.Writer, targetShape d2target.Shape) error { if targetShape.Multiple { multiplePathData := shape.NewShape(shapeType, geo.NewBox(multipleTL, width, height)).GetSVGPathData() for _, pathData := range multiplePathData { - fmt.Fprintf(writer, ``, pathData) + fmt.Fprintf(writer, ``, pathData, style) } } diff --git a/e2etests/testdata/stable/all_shapes_multiple/dagre/sketch.exp.svg b/e2etests/testdata/stable/all_shapes_multiple/dagre/sketch.exp.svg index 06e55a699..1a04cd128 100644 --- a/e2etests/testdata/stable/all_shapes_multiple/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/all_shapes_multiple/dagre/sketch.exp.svg @@ -14,7 +14,7 @@ width="1539" height="824" viewBox="-100 -100 1539 824">rectanglesquarepageparallelogramdocumentcylinderqueuepackagestepcalloutstored_datapersondiamondovalcirclehexagoncloud rectanglesquarepageparallelogramdocumentcylinderqueuepackagestepcalloutstored_datapersondiamondovalcirclehexagoncloud rectanglesquarepageparallelogramdocumentcylinderqueuepackagestepcalloutstored_datapersondiamondovalcirclehexagoncloud rectanglesquarepageparallelogramdocumentcylinderqueuepackagestepcalloutstored_datapersondiamondovalcirclehexagoncloud