SnapConfig class

Unified configuration for snapping; pass this object around rather than many params.

Constructors

SnapConfig({SnapOptions options = const SnapOptions(), SnapAxis? lockedAxis, double? gridStepWorld, Set<String> ignoreIds = const {}, Rect2D? guideFrameWorld, List<SnapCandidate> transientGuideCandidates = const []})
const

Properties

gridStepWorld double?
Optional grid step (world units). If null/<=0, grid disabled.
final
guideFrameWorld Rect2D?
Optional clipping frame for guides (defaults to artboard).
final
hashCode int
The hash code for this object.
no setterinherited
ignoreIds Set<String>
Ids to ignore (e.g., current selection).
final
lockedAxis SnapAxis?
Optional persistent axis lock for "sticky" behavior across pointer moves.
final
options SnapOptions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transientGuideCandidates List<SnapCandidate>
Transient guide candidates supplied by the caller (UI state only). These MUST NOT be persisted to a document schema.
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

Operators

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