Skip to content

Hittable

What a node offers to hit tests: its world transform, size and anchor, or a radius.

readonly world: Mat

The node’s transform to the stage.


readonly width: number

Local size (stage units, before the world transform) and anchor (0–1): the rectangle’s corner is at -anchor × size.


readonly height: number

Local height, stage units.


readonly anchorX: number

Horizontal anchor, 0–1 of the width.


readonly anchorY: number

Vertical anchor, 0–1 of the height.


optional hitRadius?: number | null

Set: a circle of this radius (local units) around the node’s origin instead of the rectangle.