Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    Index
    _pendingMouse: { x: number; y: number } | null = null
    _lastMouseMoveTime: number = 0
    _lastDirtyTime: number = 0
    _lastPickFiredTime: number = 0
    _rafId: number | null = null
    _suppressed: boolean = false
    • Record a cursor position from a mousemove. The position + timestamp are tracked even while suppressed so the re-pick on resume (orbit/pan/zoom release) uses where the cursor actually is — not a stale pre-interaction position. While suppressed we still skip scheduling, so no pick fires mid-interaction; setSuppressed(false) re-arms the loop using the latest tracked position.

      Parameters

      • x: number
      • y: number

      Returns void

    • Drop the pending cursor and cancel the armed rAF without forgetting the suppression state. Used when the stored canvas-local coordinate is no longer valid — e.g. a page/ancestor scroll moved the canvas after the rect was cached but before the settle pick fired, so the pending coordinate would resolve against the stale frame. Picking re-arms naturally on the next mousemove (which re-fetches the rect).

      Returns void

    • Suppress (true) or resume (false) picking. Resume re-arms the rAF when there's a pending cursor so orbit-and-release picks once the camera settles, without requiring a fresh mousemove.

      Parameters

      • value: boolean

      Returns void