An interface that can enumerate hits of a given type for a certain position in world coordinates.
Inheritance Hierarchy
Type Parameters
- T
- the type of hits returned by the enumerator
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.IHitTester
Methods
Yields an enumerable that enumerates the hits for a given world coordinate.
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 in which to perform the hit testing.
- location - Point
- the coordinates in the world coordinate system
Returns
- ↪IEnumerable<T>
- an enumerable that yields hits for the given coordinates
Static Methods
Creates an implementation of the interface IHitTester<T> by using the given function as implementation for its enumerateHits method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- enumerateHits - function(IInputModeContext, Point):IEnumerable<T>
- A function for IHitTester<T>'s single abstract method enumerateHits.
Returns
- ↪IHitTester<T>
- An instance of the IHitTester<T> interface based on the given function.