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

    What the renderer needs from the page around it.

    interface ControlPanelPorts {
        root: HTMLElement;
        call: (method: string, params: unknown[]) => void;
        onInteraction?: () => void;
    }
    Index
    root: HTMLElement

    Element to fill. The page passes document.body.

    call: (method: string, params: unknown[]) => void

    Invoke a viewer method. Fire-and-forget: a tap must feel instant, and the authoritative answer arrives as a dimensions-changed event anyway.

    onInteraction?: () => void

    Called after any tap, so the page can restart its idle timer.