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

    Interface ScaleBarConfig

    interface ScaleBarConfig {
        getCamera: () => LuxarCamera;
        controls: ControlsManager;
        canvas: HTMLCanvasElement;
        targetWidthPx: number;
        position: "bottom-left" | "bottom-right";
    }
    Index
    getCamera: () => LuxarCamera

    Live camera accessor, NOT a captured instance: the camera is the one component the scene manager REPLACES at runtime (perspective ↔ ortho swap in camera-mode.ts). A captured reference goes stale after the first V-key mode switch, freezing the scale bar on the abandoned camera (ortho zoom then never updates the label).

    controls: ControlsManager
    canvas: HTMLCanvasElement
    targetWidthPx: number
    position: "bottom-left" | "bottom-right"