fix: cr delete extra blank line
This commit is contained in:
parent
1af6896883
commit
3d32611a01
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue