Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    Index
    decoder: ArrayDecoder
    _verbose: boolean = true
    _getSignal?: () => AbortSignal | null
    refTargets: RefTargetMemo = ...
    • get verbose(): boolean

      Whether this load prints its per-array decode detail: on a loader's first load, and only under ?verboseLog — every partition part is a loader, and a slice step can bring several into the slice for the first time.

      Returns boolean

    • Wire the owning loader's abort signal source. A per-call signal wins when present; an initial build uses the loader lifetime signal, so disposal also settles its worker decodes (see WorkerPool.runWithTimeout).

      Parameters

      • getSignal: () => AbortSignal | null

      Returns void

    • Wire how resolved array_ref targets are wrapped — the owning loader passes its L0 proxy (wrapWithCache with its probe/signal hooks) and the L0 cache's generation as the epoch, so target reads are L0-cached like the loader's own arrays and re-opened after an L0 clear. null (or never calling this) reads targets unwrapped; they are still opened only once.

      Parameters

      Returns void

    • Read direct (unencoded) ranges into a caller-allocated, natively-typed output buffer — the single entry point for direct reads that branch BEFORE encoding dispatch (Points non-color attributes, the direct/raw-RGB color path, Lines segments). Preserves output's dtype (see loadDirect) and sources the per-update abort signal internally, so callers never thread a signal themselves.

      Parameters

      Returns Promise<number>

    • Load array ranges with automatic encoding dispatch. The main entry point; replaces the duplicated loadRanges methods that lived in each spatial index loader before the unification.

      Parameters

      • array: Array<DataType, Readable>
      • attrs: ArrayMetadata | undefined
      • ranges: LoadRange[]
      • output: Float32Array
      • totalElements: number
      • elementsPerItem: number = 1

      Returns Promise<number>

    • Like loadRanges but transparently resolves array_ref encodings by delegating against the target array — opened (and L0-wrapped, see setRefTargetWrapper) once per (store, target path), not per call. The standard entry point for spatial-index loaders.

      Parameters

      • array: Array<DataType, Readable>
      • attrs: ArrayMetadata | undefined
      • ranges: LoadRange[]
      • output: Float32Array
      • totalElements: number
      • elementsPerItem: number
      • zarrStore: Readable
      • OptionallogPrefix: string

      Returns Promise<number>