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

    Interface ControlVisibilityDecision

    Per-control visibility decision returned by computeControlVisibility.

    Captures the pure-logic answers to "should X show?" so the panel only has to apply them, and so the rules are testable without lil-gui in the loop.

    interface ControlVisibilityDecision {
        showImageGroup: boolean;
        showVideoGroup: boolean;
        showTurntableGroup: boolean;
        showFormat: boolean;
        showImageQuality: boolean;
        showImageTransparent: boolean;
        showVideoCodec: boolean;
        showVideoQuality: boolean;
        showVideoDuration: boolean;
        showSyncToggle: boolean;
        showSyncDimension: boolean;
        validFormats: readonly OutputFormat[];
        correctedFormat: OutputFormat | null;
        visibleVideoCodecs: readonly string[] | null;
    }
    Index
    showImageGroup: boolean

    Image-only group (quality, max DPR, transparent BG).

    showVideoGroup: boolean

    Video / turntable shared group (resolution, duration, codec, …).

    showTurntableGroup: boolean

    Turntable-only group (rotation speed, axis, …).

    showFormat: boolean

    Format dropdown — hidden when the mode offers a single format (Video mode is WebM-only, so a one-item dropdown is just noise and its silent WebP→WebM rewrite confuses users).

    showImageQuality: boolean

    Image quality slider — visible for lossy still/image-sequence formats (jpeg / webp) in image OR turntable mode. Hidden for the lossless png / exr.

    showImageTransparent: boolean

    Transparent-BG checkbox — hidden for exr (always has alpha).

    showVideoCodec: boolean

    Video codec dropdown — only video container formats.

    showVideoQuality: boolean

    Video quality slider — hidden for image-sequence formats.

    showVideoDuration: boolean

    Video duration limit — hidden for turntable (computed from speed).

    showSyncToggle: boolean

    Sync-to-slider toggle — hidden for turntable.

    showSyncDimension: boolean

    Sync-dimension dropdown — hidden when sync-toggle is off or for turntable.

    validFormats: readonly OutputFormat[]

    Format dropdown options that should be visible for the current mode.

    correctedFormat: OutputFormat | null

    If the current outputFormat is invalid for the new mode, this holds the auto-corrected default. null if no correction needed.

    visibleVideoCodecs: readonly string[] | null

    For video container formats only: codec values that should be visible in the codec dropdown. Video mode (MediaRecorder) limits to the MediaRecorder-supported codecs; turntable uses mediabunny which supports all. null for non-video formats.