CollisionOptions class

Configuration for collision detection layout.

Constructors

CollisionOptions({double step = 16, double maxRadius = 96, double pad = 4, double anchorPad = 4, bool avoidCollisions = true, bool drawConnectors = true, Color connectorColor = const Color(0x66000000), double connectorStrokeWidth = 1.5, Size defaultSize = const Size(50, 50)})
const

Properties

anchorPad double
Padding for anchor connections.
final
avoidCollisions bool
Whether to enable collision avoidance.
final
connectorColor Color
Color for connector lines.
final
connectorStrokeWidth double
Stroke width for connector lines.
final
defaultSize Size
Default size for unmeasured nodes.
final
drawConnectors bool
Whether to draw connector lines from labels to anchors.
final
hashCode int
The hash code for this object.
no setteroverride
maxRadius double
Maximum radius for label placement.
final
pad double
Padding around each node.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step double
Step size for the collision grid in logical pixels.
final

Methods

copyWith({double? step, double? maxRadius, double? pad, double? anchorPad, bool? avoidCollisions, bool? drawConnectors, Color? connectorColor, double? connectorStrokeWidth, Size? defaultSize}) CollisionOptions
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.
override