layout

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package layout provides graph layout algorithms for positioning nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateGraphBounds

func CalculateGraphBounds(graphData *graph.Data) *graph.Bounds

CalculateGraphBounds calculates the bounding box for the entire graph.

func CalculateGridLayout

func CalculateGridLayout(graphData *graph.Data)

CalculateGridLayout positions nodes in a grid formation.

func CalculateHierarchicalLayout

func CalculateHierarchicalLayout(graphData *graph.Data)

CalculateHierarchicalLayout positions nodes in levels based on dependencies. Levels with many nodes are wrapped into sub-rows to keep the canvas width bounded to maxLevelWidth.

func CalculateOptimizedLayout

func CalculateOptimizedLayout(graphData *graph.Data)

CalculateOptimizedLayout chooses and applies the best layout algorithm for the graph.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL