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

    Interface DensityGuardControl

    Runtime handle on the projected-density guard, for the Performance popover toggle and the settings persistence layer. Implemented by core/app/init/density-guard-wiring (which owns the tracker + ladder).

    interface DensityGuardControl {
        isEnabled(): boolean;
        sessionDisabled: boolean;
        setEnabled(enabled: boolean): void;
        thinning(): { nodes: number; minKeep: number };
        capElementsPerPixel(): number;
    }

    Hierarchy (View Summary)

    Index
    sessionDisabled: boolean

    True when ?noDensityGuard turned the guard off for this session. The stored per-scene setting is then neither applied nor overwritten, the same way a URL DPR pin leaves the stored DPR flags alone.

    • Turn the guard on or off live: off releases every thinned node and resumes deferred rungs.

      Parameters

      • enabled: boolean

      Returns void

    • Nodes currently thinned and the smallest keep fraction among them (1 when none).

      Returns { nodes: number; minKeep: number }