A simple integer-based implementation of IGridConstraintProvider<T>.
Implements
- I
Members
No filters for this type
Constructors
Parameters
- gridSize: number
- The distance in the newly created grid.
Creates a new instance using the given grid info.
Creates a new instance using the given grid info.
Parameters
- gridInfo: GridInfo
- The grid info object.
Properties
Gets or sets the grid info that describes the geometry of the grid.
Gets or sets the grid info that describes the geometry of the grid.
final
Property Value
The grid info.
Gets the grid origin.
Gets the grid origin.
This implementation delegates to the gridInfo
readonlyfinal
Implements
IGridConstraintProvider.gridOriginThis implementation delegates to the gridInfo
readonlyfinal
This implementation delegates to the gridInfo
readonlyfinal
Methods
Parameters
- context: IInputModeContext
- The context in which the snapping should occur.
- item: T
- The item of which the coordinates should be snapped.
- location: IMutablePoint
- The coordinates to snap.
- xSnapPolicy: SnapPolicy
- The policy for the x-coordinate.
- ySnapPolicy: SnapPolicy
- The policy for the y-coordinate.
Return Value
- boolean
- Whether the point has been snapped.