Signed-off-by: Mayank Mohapatra <125661248+Mayank77maruti@users.noreply.github.com>
This commit is contained in:
Mayank Mohapatra 2025-02-23 18:35:34 +00:00
parent 7cd533d6c0
commit 5b28501fd9

View file

@ -18,7 +18,7 @@ const (
ARC_STEPS = 100 ARC_STEPS = 100
) )
// Layout lays out the graph and computes curved edge routes. // Layout lays out the graph and computes curved edge routes
func Layout(ctx context.Context, g *d2graph.Graph, layout d2graph.LayoutGraph) error { func Layout(ctx context.Context, g *d2graph.Graph, layout d2graph.LayoutGraph) error {
objects := g.Root.ChildrenArray objects := g.Root.ChildrenArray
if len(objects) == 0 { if len(objects) == 0 {