GraphLayoutResult class final
The top-left position of every request node. Applying it remains the controller's job.
Positions are in the layout's own space, children of containers included: a child's position is not relative to its container.
Constructors
-
GraphLayoutResult(Map<
String, DiagramPoint> positions, {Map<String, DiagramSize> sizes = const {}, })
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
The descendants of collapsed containers. They sit at their container's
top-left and take no room.
final
-
positions
→ Map<
String, DiagramPoint> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sizes
→ Map<
String, DiagramSize> -
The size of every container, which the layout computed from its
children; other nodes keep their requested size.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
GraphLayoutRequest request) → void - Throws a StateError unless every request node has a finite position and every pinned node keeps its own.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited