remove debugging code

This commit is contained in:
Gavin Nishizawa 2023-01-20 20:12:16 -08:00
parent 23097370e2
commit b76d43536d
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
15 changed files with 0 additions and 38 deletions

View file

@ -795,11 +795,6 @@ func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2ske
} }
} }
// debugging
for _, pathData := range s.GetSVGPathData() {
fmt.Fprintf(writer, `<path d="%s" style="%s"/>`, pathData, style)
}
case d2target.ShapeImage: case d2target.ShapeImage:
fmt.Fprintf(writer, `<image href="%s" x="%d" y="%d" width="%d" height="%d" style="%s" />`, fmt.Fprintf(writer, `<image href="%s" x="%d" y="%d" width="%d" height="%d" style="%s" />`,
html.EscapeString(targetShape.Icon.String()), html.EscapeString(targetShape.Icon.String()),

View file

@ -68,8 +68,6 @@ func (s shapeCallout) Perimeter() []geo.Intersectable {
func (s shapeCallout) GetSVGPathData() []string { func (s shapeCallout) GetSVGPathData() []string {
return []string{ return []string{
calloutPath(s.Box).PathData(), calloutPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -114,7 +114,5 @@ func (s shapeCloud) Perimeter() []geo.Intersectable {
func (s shapeCloud) GetSVGPathData() []string { func (s shapeCloud) GetSVGPathData() []string {
return []string{ return []string{
cloudPath(s.Box).PathData(), cloudPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -74,8 +74,6 @@ func (s shapeCylinder) GetSVGPathData() []string {
return []string{ return []string{
cylinderOuterPath(s.Box).PathData(), cylinderOuterPath(s.Box).PathData(),
cylinderInnerPath(s.Box).PathData(), cylinderInnerPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -52,8 +52,6 @@ func (s shapeDiamond) Perimeter() []geo.Intersectable {
func (s shapeDiamond) GetSVGPathData() []string { func (s shapeDiamond) GetSVGPathData() []string {
return []string{ return []string{
diamondPath(s.Box).PathData(), diamondPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -49,8 +49,6 @@ func (s shapeDocument) Perimeter() []geo.Intersectable {
func (s shapeDocument) GetSVGPathData() []string { func (s shapeDocument) GetSVGPathData() []string {
return []string{ return []string{
documentPath(s.Box).PathData(), documentPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -46,8 +46,6 @@ func (s shapeHexagon) Perimeter() []geo.Intersectable {
func (s shapeHexagon) GetSVGPathData() []string { func (s shapeHexagon) GetSVGPathData() []string {
return []string{ return []string{
hexagonPath(s.Box).PathData(), hexagonPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -63,10 +63,3 @@ func (s shapeOval) GetInsidePlacement(width, height, padding float64) geo.Point
func (s shapeOval) Perimeter() []geo.Intersectable { func (s shapeOval) Perimeter() []geo.Intersectable {
return []geo.Intersectable{geo.NewEllipse(s.Box.Center(), s.Box.Width/2, s.Box.Height/2)} 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(),
}
}

View file

@ -69,8 +69,6 @@ func (s shapePackage) Perimeter() []geo.Intersectable {
func (s shapePackage) GetSVGPathData() []string { func (s shapePackage) GetSVGPathData() []string {
return []string{ return []string{
packagePath(s.Box).PathData(), packagePath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -83,8 +83,6 @@ func (s shapePage) GetSVGPathData() []string {
return []string{ return []string{
pageOuterPath(s.Box).PathData(), pageOuterPath(s.Box).PathData(),
pageInnerPath(s.Box).PathData(), pageInnerPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -51,8 +51,6 @@ func (s shapeParallelogram) Perimeter() []geo.Intersectable {
func (s shapeParallelogram) GetSVGPathData() []string { func (s shapeParallelogram) GetSVGPathData() []string {
return []string{ return []string{
parallelogramPath(s.Box).PathData(), parallelogramPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -63,8 +63,6 @@ func (s shapePerson) Perimeter() []geo.Intersectable {
func (s shapePerson) GetSVGPathData() []string { func (s shapePerson) GetSVGPathData() []string {
return []string{ return []string{
personPath(s.Box).PathData(), personPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -70,8 +70,6 @@ func (s shapeQueue) GetSVGPathData() []string {
return []string{ return []string{
queueOuterPath(s.Box).PathData(), queueOuterPath(s.Box).PathData(),
queueInnerPath(s.Box).PathData(), queueInnerPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -51,8 +51,6 @@ func (s shapeStep) Perimeter() []geo.Intersectable {
func (s shapeStep) GetSVGPathData() []string { func (s shapeStep) GetSVGPathData() []string {
return []string{ return []string{
stepPath(s.Box).PathData(), stepPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }

View file

@ -53,8 +53,6 @@ func (s shapeStoredData) Perimeter() []geo.Intersectable {
func (s shapeStoredData) GetSVGPathData() []string { func (s shapeStoredData) GetSVGPathData() []string {
return []string{ return []string{
storedDataPath(s.Box).PathData(), storedDataPath(s.Box).PathData(),
// debugging
boxPath(s.GetInnerBox()).PathData(),
} }
} }