API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeHitArea

@codexo/exojs / rendering / stable

Acceptable shapes for RenderNode.hitArea, expressed in the node's own local space: a Rectangle, Circle, Ellipse or Polygon, or `null` for no override. A `Polygon` may be concave - containment is an even-odd ray cast, not a convex test - so an L-shaped or ring-like pick region behaves as drawn.

0
props
0
methods
0
events
Import
import { HitArea } from '@codexo/exojs'

Acceptable shapes for RenderNode.hitArea, expressed in the node's own local space: a Rectangle, Circle, Ellipse or Polygon, or `null` for no override.

A `Polygon` may be concave - containment is an even-odd ray cast, not a convex test - so an L-shaped or ring-like pick region behaves as drawn.

Definition1
Source