fix: cr delete extra blank line

This commit is contained in:
donglixiaoche 2023-03-22 12:12:30 +08:00
parent 1af6896883
commit 3d32611a01
No known key found for this signature in database
GPG key ID: 3190E65EBAD6D6E2

View file

@ -86,7 +86,6 @@ func attachChildren(g *d2graph.Graph, obj *d2graph.Object) {
// place returns the position of obj, taking into consideration its near value and the diagram
func place(obj *d2graph.Object) (float64, float64) {
tl, br := boundingBox(obj.Graph)
w := br.X - tl.X
h := br.Y - tl.Y
switch d2graph.Key(obj.Attributes.NearKey)[0] {
@ -107,7 +106,6 @@ func place(obj *d2graph.Object) (float64, float64) {
case "bottom-right":
return br.X + pad, br.Y + pad
}
return 0, 0
}