This is a flagging interface for instances of IHitTester<T> that enumerate over a collection of IEdges.
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.IEdgeHitTester
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<IEdge>
- an enumerable that yields hits for the given coordinates
Defined in
Static Methods
Creates an implementation of the interface IEdgeHitTester 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<IEdge>
- A function for IEdgeHitTester's single abstract method enumerateHits.
Returns
- ↪IEdgeHitTester
- An instance of the IEdgeHitTester interface based on the given function.