API reference

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

C

classInteractionManager

@codexo/exojs / input / stable

Routes pointer events from the InputManager to interactive scene-graph nodes via DOM-style event bubbling. Maintains a persistent quadtree spatial index of interactive RenderNodes for hit-testing and updates it incrementally — nodes notify the manager via the `_notify*` hooks when they enter/leave the scene, change interactivity, or move (causing bounds to dirty). Dispatches InteractionEvents of every type in InteractionEventType: `pointerdown` / `pointerup` / `pointermove` / `pointerover` / `pointerout` / `pointertap` / `dragstart` / `drag` / `dragend`. Drag events are derived from threshold-based pointer movement after a `pointerdown`. Constructed automatically by Application; you do not instantiate this class yourself.

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

Routes pointer events from the InputManager to interactive scene-graph nodes via DOM-style event bubbling. Maintains a persistent quadtree spatial index of interactive RenderNodes for hit-testing and updates it incrementally — nodes notify the manager via the `_notify*` hooks when they enter/leave the scene, change interactivity, or move (causing bounds to dirty).

Dispatches InteractionEvents of every type in InteractionEventType: `pointerdown` / `pointerup` / `pointermove` / `pointerover` / `pointerout` / `pointertap` / `dragstart` / `drag` / `dragend`. Drag events are derived from threshold-based pointer movement after a `pointerdown`.

Constructed automatically by Application; you do not instantiate this class yourself.

Constructors 1
new(app: Application): InteractionManager
Methods 4
destroy(): void
getCapturedNodes(): readonly RenderNode[]
getHoveredNode(pointerId?: number): RenderNode | null
update(): void
Source