I

IHitTester

An interface that can enumerate hits in an IGraph of a given type for a certain position in world coordinates.
Inheritance Hierarchy

Members

No filters for this type

Methods

Yields an enumerable that enumerates the hits for a given world coordinate.
It is safe to cast the return values to the types indicated by filter. If no filter is specified, any IModelItem could be returned.
abstract

Parameters

context: IInputModeContext
The context in which to perform the hit testing.
location: Point
conversion
the coordinates in the world coordinate system
filter?: GraphItemTypes
conversion
An optional filter of the type of items to test and return. ALL if not specified.

Return Value

IEnumerable<IModelItem>
an enumerable that yields hit items of the requested type at the given coordinates

Static Methods

Creates an implementation of the interface IHitTester by using the given function as implementation for its enumerateHits method.
static

Parameters

enumerateHits: function(IInputModeContext, Point, GraphItemTypes): IEnumerable<IModelItem>
A function for IHitTester's single abstract method enumerateHits.

Return Value

IHitTester
An instance of the IHitTester interface based on the given function.