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

    Function bootstrapStandalone

    • Run the standalone-app boot sequence and return an initialized LuxarApp.

      Steps (each gated by an option):

      1. (optional) Patch console for the debug-console UI.
      2. (optional) Validate config; log a warning if invalid.
      3. (optional) Warm the blosc codec module cache.
      4. Initialize the theme manager (applies theme from urlParams.theme, localStorage[luxar.theme], or the built-in default).
      5. Compute LuxarAppOptions from the URL params.
      6. Construct LuxarApp, attach the debug surface (if ?debug), and call init() — surfacing errors via showError() if init throws.

      Preserves the standalone-app semantics. Tests live in tests/unit/core/bootstrap.test.ts and cover each opt-in flag, the theme/URL/localStorage-driven debug-mode resolution, and the error path.

      Parameters

      Returns Promise<LuxarApp>