Hittable
What a node offers to hit tests: its world transform, size and anchor, or a radius.
Properties
Section titled “Properties”
readonlyworld:Mat
The node’s transform to the stage.
readonlywidth:number
Local size (stage units, before the world transform) and anchor (0–1): the rectangle’s corner is at -anchor × size.
height
Section titled “height”
readonlyheight:number
Local height, stage units.
anchorX
Section titled “anchorX”
readonlyanchorX:number
Horizontal anchor, 0–1 of the width.
anchorY
Section titled “anchorY”
readonlyanchorY:number
Vertical anchor, 0–1 of the height.
hitRadius?
Section titled “hitRadius?”
optionalhitRadius?:number|null
Set: a circle of this radius (local units) around the node’s origin instead of the rectangle.