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

    Multi-strategy directory navigator that works with various server types.

    Index
    baseUrl: string
    currentPath: string
    FETCH_TIMEOUT: 10000

    Default timeout for fetch requests (ms)

    • Check if a path is a Zarr dataset by looking for a root group document.

      Probes BOTH formats' documents concurrently: format 2 writes .zgroup, format 3 writes zarr.json. A dataset has exactly one of them, so probing only .zgroup — which was correct while everything was format 2 — makes every format-3 store fail to register as a dataset and vanish from the browser. Concurrent rather than sequential because these are HEAD requests against a directory listing the user is waiting on, and the miss costs a full round-trip on whichever format is asked second.

      Parameters

      • url: string

      Returns Promise<boolean>

    • Get the full URL for a given path.

      Normalizes any leading slash on path so the result never contains a doubled // separator between the base URL and the path component. Double-slash URLs are interpreted by zarr loaders as an extra path component and cause 404s (see CLAUDE.md "Data Source URLs Normalize Trailing Slashes").

      Parameters

      • path: string

      Returns string