AutoLayoutService class

Service for calculating automatic layout positions for the diagram Pure business logic - NO Flutter widgets, minimal UI dependencies

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculateBoundingBox(Map<String, Offset> positions) Rect
Calculate bounding box for diagram (for centering view)
calculateLayout(ElectricalNode? root) Map<String, Offset>
Calculate positions for all nodes in the tree Returns a map of node IDs to their calculated positions
calculatePanelRects({required ElectricalNode root, required Map<String, Offset> positions, double nodeWidth = kNodeWidth, double nodeHeight = kNodeHeight}) Map<String, Rect>
Calculate rectangles for panel containers based on node positions