disable innerbox drawing

This commit is contained in:
Gavin Nishizawa 2023-11-15 20:02:22 -08:00
parent 1786f57e66
commit 44dc28705b
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -1192,15 +1192,15 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
} }
} }
// to examine shape's innerBox // // to examine shape's innerBox
innerBox := s.GetInnerBox() // innerBox := s.GetInnerBox()
el := d2themes.NewThemableElement("rect") // el := d2themes.NewThemableElement("rect")
el.X = float64(innerBox.TopLeft.X) // el.X = float64(innerBox.TopLeft.X)
el.Y = float64(innerBox.TopLeft.Y) // el.Y = float64(innerBox.TopLeft.Y)
el.Width = float64(innerBox.Width) // el.Width = float64(innerBox.Width)
el.Height = float64(innerBox.Height) // el.Height = float64(innerBox.Height)
el.Style = "fill:rgba(255,0,0,0.5);" // el.Style = "fill:rgba(255,0,0,0.5);"
fmt.Fprint(writer, el.Render()) // fmt.Fprint(writer, el.Render())
// Closes the class=shape // Closes the class=shape
fmt.Fprint(writer, `</g>`) fmt.Fprint(writer, `</g>`)