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

    Module scene/scene-manager/camera/camera-mode

    Camera-mode helpers extracted from SceneManager.

    Owns the perspective ↔ orthographic camera-swap policy and the wiring of the swap into the control-type setter. SceneManager keeps the public setControlType() method (so the camera-changed event dispatches at the class call site — helpers never dispatch on the host's event channel) but delegates the body to setControlType() here.

    The host owns the camera field; the ctx exposes a getCamera() / setCamera() pair so helpers can read/replace it across the swap without taking a back-pointer to SceneManager.

    CameraModeCtx
    setControlType
    swapToOrthographic
    swapToPerspective