Interface that is implemented for elements that can be hit or picked in a coordinate system.
Inheritance Hierarchy
Members
No filters for this type
Methods
Determines if something has been hit at the given coordinates in the world coordinate system.
Determines if something has been hit at the given coordinates in the world coordinate system.
Implementations should inspect the hitTestRadius and take the value into account when performing hit tests. This allows the user to hit elements even if the zoom level is very small and allows for accurate hit tests at greater zoom levels.
abstract
Parameters
- context: IInputModeContext
- the context the hit test is performed in
- location: Point
- the coordinates in world coordinate system
Return Value
- boolean
- whether something has been hit
Constants
An IHitTestable that always returns true.
An IHitTestable that always returns true.
static
See Also
Developer's Guide
An IHitTestable that always returns false.
An IHitTestable that always returns false.
static
See Also
Developer's Guide
Static Methods
Wraps a hit testable handler into an IHitTestable interface.
Wraps a hit testable handler into an IHitTestable interface.
static
Parameters
- handler: function(IInputModeContext, Point): boolean
- The hit testable handler instance to wrap.
Return Value
- IHitTestable
- An IHitTestable implementation that wraps the provided handler.