Skip to content

Interface: HitAreaWorldRect ​

World-space hit-area rectangle, including rotation/scale from the node view.

Properties ​

PropertyTypeDescription
centerXnumber-
centerYnumber-
widthnumber-
heightnumber-
rotationnumberAngle of the rectangle's top edge in radians.
corners{ x: number; y: number; }[]Four corners in world space: top-left, top-right, bottom-right, bottom-left.
bounds{ minX: number; minY: number; maxX: number; maxY: number; }Axis-aligned world bounds of the four corners.
bounds.minXnumber-
bounds.minYnumber-
bounds.maxXnumber-
bounds.maxYnumber-

Suity developer documentation · API generated by TypeDoc