diff --git a/d2renderers/d2svg/d2svg.go b/d2renderers/d2svg/d2svg.go index eac72d4a4..92ac64f73 100644 --- a/d2renderers/d2svg/d2svg.go +++ b/d2renderers/d2svg/d2svg.go @@ -795,11 +795,6 @@ func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2ske } } - // debugging - for _, pathData := range s.GetSVGPathData() { - fmt.Fprintf(writer, ``, pathData, style) - } - case d2target.ShapeImage: fmt.Fprintf(writer, ``, html.EscapeString(targetShape.Icon.String()), diff --git a/lib/shape/shape_callout.go b/lib/shape/shape_callout.go index 0942592df..fccd8d5bc 100644 --- a/lib/shape/shape_callout.go +++ b/lib/shape/shape_callout.go @@ -68,8 +68,6 @@ func (s shapeCallout) Perimeter() []geo.Intersectable { func (s shapeCallout) GetSVGPathData() []string { return []string{ calloutPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_cloud.go b/lib/shape/shape_cloud.go index ffa8e18ae..634098cdb 100644 --- a/lib/shape/shape_cloud.go +++ b/lib/shape/shape_cloud.go @@ -114,7 +114,5 @@ func (s shapeCloud) Perimeter() []geo.Intersectable { func (s shapeCloud) GetSVGPathData() []string { return []string{ cloudPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_cylinder.go b/lib/shape/shape_cylinder.go index 10ebaf16c..0e97bbd89 100644 --- a/lib/shape/shape_cylinder.go +++ b/lib/shape/shape_cylinder.go @@ -74,8 +74,6 @@ func (s shapeCylinder) GetSVGPathData() []string { return []string{ cylinderOuterPath(s.Box).PathData(), cylinderInnerPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_diamond.go b/lib/shape/shape_diamond.go index 02d8a0cd2..6c7951955 100644 --- a/lib/shape/shape_diamond.go +++ b/lib/shape/shape_diamond.go @@ -52,8 +52,6 @@ func (s shapeDiamond) Perimeter() []geo.Intersectable { func (s shapeDiamond) GetSVGPathData() []string { return []string{ diamondPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_document.go b/lib/shape/shape_document.go index efda39f86..36ffeafcf 100644 --- a/lib/shape/shape_document.go +++ b/lib/shape/shape_document.go @@ -49,8 +49,6 @@ func (s shapeDocument) Perimeter() []geo.Intersectable { func (s shapeDocument) GetSVGPathData() []string { return []string{ documentPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_hexagon.go b/lib/shape/shape_hexagon.go index 203904be1..60aeb26df 100644 --- a/lib/shape/shape_hexagon.go +++ b/lib/shape/shape_hexagon.go @@ -46,8 +46,6 @@ func (s shapeHexagon) Perimeter() []geo.Intersectable { func (s shapeHexagon) GetSVGPathData() []string { return []string{ hexagonPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_oval.go b/lib/shape/shape_oval.go index d29a23cc4..608fd4a38 100644 --- a/lib/shape/shape_oval.go +++ b/lib/shape/shape_oval.go @@ -63,10 +63,3 @@ func (s shapeOval) GetInsidePlacement(width, height, padding float64) geo.Point func (s shapeOval) Perimeter() []geo.Intersectable { return []geo.Intersectable{geo.NewEllipse(s.Box.Center(), s.Box.Width/2, s.Box.Height/2)} } - -// debugging -func (s shapeOval) GetSVGPathData() []string { - return []string{ - boxPath(s.GetInnerBox()).PathData(), - } -} diff --git a/lib/shape/shape_package.go b/lib/shape/shape_package.go index ba6e8c76c..3181dcc7e 100644 --- a/lib/shape/shape_package.go +++ b/lib/shape/shape_package.go @@ -69,8 +69,6 @@ func (s shapePackage) Perimeter() []geo.Intersectable { func (s shapePackage) GetSVGPathData() []string { return []string{ packagePath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_page.go b/lib/shape/shape_page.go index 347897601..a355f02ed 100644 --- a/lib/shape/shape_page.go +++ b/lib/shape/shape_page.go @@ -83,8 +83,6 @@ func (s shapePage) GetSVGPathData() []string { return []string{ pageOuterPath(s.Box).PathData(), pageInnerPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_parallelogram.go b/lib/shape/shape_parallelogram.go index d9b99df69..916a943a9 100644 --- a/lib/shape/shape_parallelogram.go +++ b/lib/shape/shape_parallelogram.go @@ -51,8 +51,6 @@ func (s shapeParallelogram) Perimeter() []geo.Intersectable { func (s shapeParallelogram) GetSVGPathData() []string { return []string{ parallelogramPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_person.go b/lib/shape/shape_person.go index 9cb4e19c9..1be86ebaa 100644 --- a/lib/shape/shape_person.go +++ b/lib/shape/shape_person.go @@ -63,8 +63,6 @@ func (s shapePerson) Perimeter() []geo.Intersectable { func (s shapePerson) GetSVGPathData() []string { return []string{ personPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_queue.go b/lib/shape/shape_queue.go index 8981adc31..0ddaa683d 100644 --- a/lib/shape/shape_queue.go +++ b/lib/shape/shape_queue.go @@ -70,8 +70,6 @@ func (s shapeQueue) GetSVGPathData() []string { return []string{ queueOuterPath(s.Box).PathData(), queueInnerPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_step.go b/lib/shape/shape_step.go index 5732b2ad4..6eb892869 100644 --- a/lib/shape/shape_step.go +++ b/lib/shape/shape_step.go @@ -51,8 +51,6 @@ func (s shapeStep) Perimeter() []geo.Intersectable { func (s shapeStep) GetSVGPathData() []string { return []string{ stepPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } } diff --git a/lib/shape/shape_stored_data.go b/lib/shape/shape_stored_data.go index 6d015a854..e30c7896f 100644 --- a/lib/shape/shape_stored_data.go +++ b/lib/shape/shape_stored_data.go @@ -53,8 +53,6 @@ func (s shapeStoredData) Perimeter() []geo.Intersectable { func (s shapeStoredData) GetSVGPathData() []string { return []string{ storedDataPath(s.Box).PathData(), - // debugging - boxPath(s.GetInnerBox()).PathData(), } }