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

    Manager for DataLoadingMonitor instances. Provides centralized access to monitor instances without global variables.

    Index
    • Private constructor to enforce singleton pattern. Subscribes to panel-cycle / panel-hide events on the cross-layer event bus so lower layers (input, scene) can drive the data-monitor without importing this UI module directly, which keeps the layer order clean.

      Returns DataMonitorManager

    instance: DataMonitorManager | null = null
    monitors: Map<string, DataLoadingMonitor> = ...
    defaultMonitorId: string | null = null
    busSubscriptions: Unsubscribe[] = []
    • Create a new DataLoadingMonitor instance

      Parameters

      • id: string = 'default'

        Unique identifier for this monitor

      • container: HTMLElement

        DOM container element

      • Optionalconfig: MonitorConfig

        Optional monitor configuration

      • setAsDefault: boolean = true

        Whether to set this as the default monitor; the first monitor registered also becomes the default even when this is false

      Returns DataLoadingMonitor

      The created DataLoadingMonitor instance

    • Destroy all monitors and reset the manager.

      HIGH-8: also releases the cross-layer event-bus subscriptions taken in the constructor. Without this, destroyAll() (called outside the disposeInstance path — e.g. between dataset switches in tests) left stale handlers wired on the bus, keeping references to a monitor-less singleton alive and crashing on later panel-cycle / panel-hide emissions. The subscriptions list is cleared so this is idempotent.

      Returns void

    • Check if a monitor exists

      Parameters

      • id: string

        The monitor ID to check

      Returns boolean

      True if the monitor exists

    • Show the default monitor or a specific monitor

      Parameters

      • Optionalid: string

        Optional monitor ID, defaults to default monitor

      Returns void

    • Hide the default monitor or a specific monitor

      Parameters

      • Optionalid: string

        Optional monitor ID, defaults to default monitor

      Returns void

    • Toggle the default monitor or a specific monitor

      Parameters

      • Optionalid: string

        Optional monitor ID, defaults to default monitor

      Returns void

    • Cycle through monitor states: hidden → mini → expanded → hidden

      Parameters

      • Optionalid: string

        Optional monitor ID, defaults to default monitor

      Returns void

    • Dispose the current instance and clear the singleton slot.

      Used at app shutdown and between tests. The next getInstance() call lazily constructs a fresh manager.

      Returns void