Event arguments for the collect-snap-results event.
Inheritance Hierarchy
EventArgs
InputModeEventArgs
CollectSnapResultsEventArgs
Remarks
Event handlers can use the addSnapResult method to add snapping results for the current move operation.
Type Details
- yFiles module
- view
Constructors
CollectSnapResultsEventArgs
(context: IInputModeContext, originalLocation: Point, newLocation: Point, snapDistance: number, gridSnapDistance: number, snapResults: ICollection<SnapResult>)Creates a new instance of the event arguments using the provided values for initialization.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- 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 vector by which the mouse has been moved since initialization of the snapping process.
Property Value
The delta.
Gets the new (current) location of the mouse that is going to be manipulated by the snapping process.
Property Value
The new (current) location.
Gets the original location of the mouse at the beginning of the gesture.
Property Value
The original location.
Methods
Adds a SnapResult to the collection of snap results.
Remarks
null
values will be discarded.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- snapResult - SnapResult
- The result to add.