DiagramSnapPolicy class abstract final

Pure snapping rules shared by every direct-manipulation gesture.

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

angle(double radians, double rotationSnap) → double
radians rounded to rotationSnap degree increments.
endpoint(DiagramPoint origin, DiagramPoint target, double rotationSnap) → DiagramPoint
Constrains a moving endpoint to rotationSnap degree increments, keeping its radius.
point(DiagramPoint point, GridOptions grid, {double? spacing}) → DiagramPoint
value(double value, GridOptions grid, {double? spacing}) → double