NmGraphLayoutUtils class
Utility for graph layout calculations.
Constructors
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
-
arrangeInCircle(
List< NmGraphNodeData> nodes, {Offset center = const Offset(400, 300), double radius = 200}) → List<NmGraphNodeData> - Arrange nodes in a circle.
-
arrangeInTree(
List< NmGraphNodeData> nodes, List<NmGraphEdgeData> edges, {String? rootId, Offset topLeft = const Offset(50, 50), double horizontalSpacing = 100, double verticalSpacing = 100}) → List<NmGraphNodeData> - Arrange nodes in a hierarchical tree layout.
-
calculateBounds(
List< NmGraphNodeData> nodes) → Rect - Calculate the bounding box of all nodes.
-
calculateCenter(
List< NmGraphNodeData> nodes) → Offset - Calculate the center of all nodes.