This is a flagging interface for instances of IHitTester<T> that enumerate over a collection of INodes.
Remarks
An implementation of this interface can be queried using the lookup of a GraphComponent
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.INodeHitTester
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<INode>
- an enumerable that yields hits for the given coordinates
Defined in
Static Methods
Creates an implementation of the interface INodeHitTester 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<INode>
- A function for INodeHitTester's single abstract method enumerateHits.
Returns
- ↪INodeHitTester
- An instance of the INodeHitTester interface based on the given function.