Grid snapping as the canvas shows it, for gestures and headless controllers.
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
-
point(
DiagramPoint point, GridOptions grid, {required DiagramRect visibleBounds, required double zoom}) → DiagramPoint -
Snaps
pointto the visible grid whengridenables snapping. -
spacing(
GridOptions grid, {required DiagramRect visibleBounds, required double zoom}) → double -
Snap step for
gridover a viewport: the finest visible grid layer while the grid is shown (hidden subdivisions never capture a point), otherwise the configured grid size.