fix labelbox adustments for multiple/3d shapes

This commit is contained in:
Gavin Nishizawa 2023-07-12 19:04:42 -07:00
parent 91895ae6ab
commit f53afc485a
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -1201,9 +1201,11 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
offsetY /= 2
}
box.TopLeft.Y -= float64(offsetY)
box.Height += float64(offsetY)
box.Width += d2target.THREE_DEE_OFFSET
} else if targetShape.Multiple {
box.TopLeft.Y -= d2target.MULTIPLE_OFFSET
box.Height += d2target.MULTIPLE_OFFSET
box.Width += d2target.MULTIPLE_OFFSET
}
} else {