Event arguments for the collect-snap-results event.
Inheritance Hierarchy
Remarks
Event handlers can use the addSnapResult method to add snapping results for the current move operation.
Members
Show:
Constructors
Parameters
- context: IInputModeContext
- The context for which the event is queried.
- originalLocation: Point
- The original location of the mouse at the beginning of the gesture.
- newLocation: Point
- The new (current) location of the mouse.
- snapDistance: number
- The zoom invariant snap distance.
- gridSnapDistance: number
- The zoom invariant grid snap distance.
- snapResults: ICollection<SnapResult>
- The collection to store the snap results in.
Properties
Gets the context for the current event.
Gets the context for the current event.
Gets the vector by which the mouse has been moved since initialization of the snapping process.
Gets the vector by which the mouse has been moved since initialization of the snapping process.
readonlyfinal
Property Value
The delta.
Gets the new (current) location of the mouse that is going to be manipulated by the snapping process.
Gets the new (current) location of the mouse that is going to be manipulated by the snapping process.
readonlyfinal
Property Value
The new (current) location.
Gets the original location of the mouse at the beginning of the gesture.
Gets the original location of the mouse at the beginning of the gesture.
readonlyfinal
Property Value
The original location.
Methods
Adds a SnapResult to the collection of snap results.
Adds a SnapResult to the collection of snap results.