SnapOptions class

Constructors

SnapOptions({bool snapToKeylines = true, bool snapToGuides = true, bool snapToGrid = true, bool snapToObjects = true, bool showBothGuidesWhenClose = false, double toleranceScreenPx = 6.0, double zoom = 1.0, double? innerDualAxisTolPx, double innerDualAxisTolFactor = 0.0})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
innerDualAxisTolFactor double
If >0, use toleranceScreenPx * innerDualAxisTolFactor as the inner threshold. Ignored when innerDualAxisTolPx is provided.
final
innerDualAxisTolPx double?
If set (>0), dual-axis snap is applied when BOTH axes are within this many screen px. Takes precedence over innerDualAxisTolFactor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBothGuidesWhenClose bool
If true, when both axes are within tolerance we render both guides, but we still apply the nearest axis only (unless inner dual-axis triggers).
final
snapToGrid bool
final
snapToGuides bool
final
snapToKeylines bool
final
snapToObjects bool
final
toleranceScreenPx double
Screen-pixel tolerance for normal snapping.
final
zoom double
Screen px per world px.
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