Interface: IHitArea

IHitArea

The hit area specifies the area for which pointer events should be captured by this event target.

Methods

contains (x, y) boolean

Checks if the x and y coordinates given are contained within this hit area.

Name Type Description
x number
y number
Returns:
Type Description
boolean Whether the x and y coordinates are contained within this hit area.