chore: delete redundant code

This commit is contained in:
donglixiaoche 2023-03-24 12:20:28 +08:00
parent 2ae1636140
commit 7deb725252
No known key found for this signature in database
GPG key ID: 3190E65EBAD6D6E2

View file

@ -65,17 +65,6 @@ func Layout(ctx context.Context, g *d2graph.Graph, constantNears []*d2graph.Obje
}
}
// These shapes skipped core layout, which means they also skipped label placements
// for _, obj := range constantNears {
// if obj.HasOutsideBottomLabel() {
// obj.LabelPosition = go2.Pointer(string(label.OutsideBottomCenter))
// } else if obj.Attributes.Icon != nil {
// obj.LabelPosition = go2.Pointer(string(label.InsideTopCenter))
// } else {
// obj.LabelPosition = go2.Pointer(string(label.InsideMiddleCenter))
// }
// }
return nil
}