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