Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Mirror canvas + per-frame compositing subscription. Construct via createLiveOverlayCompositor, which returns null when there is nothing to composite.

    Index
    canvas: HTMLCanvasElement

    The canvas to hand captureStream() — NOT the WebGL canvas.

    ctx: CanvasRenderingContext2D
    unsubscribe: (() => void) | null = null
    loggedFailure: boolean = false

    Latched so a per-frame failure logs once instead of every frame.

    glCanvas: HTMLCanvasElement
    overlayManager: OverlayManager
    • Blit the GL canvas and draw the overlays over it.

      Arrow-bound so eventBus.on/the matching unsubscribe see one stable reference (the bind-a-new-function listener-leak trap).

      Returns void