Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    Index
    offsetsCache: Map<string, BigUint64Array<ArrayBufferLike>> = ...

    Cached offsets per node path (loaded eagerly once per node).

    offsetsInflight: Map<string, Promise<BigUint64Array<ArrayBufferLike>>> = ...

    In-flight offsets loading promises for request coalescing.

    bytesArrayCache: Map<string, Array<DataType, Readable>> = ...

    Cached zarr array handles per node (opened once).

    imageCache: LRUCache<CachedImage>

    Per-element image cache with LRU eviction (revokes blob URLs on eviction).

    imageInflight: Map<string, Promise<string | null>> = ...

    In-flight image requests for deduplication.

    rootLoc: Location<Readable>
    • Get a blob URL for a single element's image label. Triggers lazy load of offsets on first access per node. Returns null if: no image exists, or index is out of range.

      Parameters

      • nodePath: string
      • elementIndex: number

      Returns Promise<string | null>

    • Check if a node has image labels based on its cached .zattrs metadata.

      Parameters

      • nodeAttrs: Record<string, unknown>

      Returns boolean

    • Load all offsets for a node from zarr. Offsets are small (~N*8 bytes) so bulk-loading is fine.

      Parameters

      • nodePath: string

      Returns Promise<BigUint64Array<ArrayBufferLike>>

    • Fetch a single element's image bytes, create blob URL, cache it.

      Parameters

      • nodePath: string
      • elementIndex: number
      • cacheKey: string

      Returns Promise<string | null>