An interface that can enumerate hits in an IGraph of a given type for a certain position in world coordinates.
Inheritance Hierarchy
IHitTester
Type Details
- yFiles module
- view
Methods
enumerateHits
(context: IInputModeContext, location: Point, filter?: GraphItemTypes) : IEnumerable<IModelItem>Yields an enumerable that enumerates the hits for a given world coordinate.
Remarks
It is safe to cast the return values to the types indicated by
filter
. If no filter is specified, any IModelItem could be returned.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
- filter - GraphItemTypes
- An optional filter of the type of items to test and return. ALL if not specified.
Returns
- ↪IEnumerable<IModelItem>
- an enumerable that yields hit items of the requested type at the given coordinates