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

    Builder for dimension configuration

    Index
    ndim: number = 3
    displayed: number[] = ...
    currentStep: number[] = []
    metadata: DimensionMetadata[] = []
    • Set which dimensions are displayed. The Luxar scene contract caps displayed dimensions at 3 (the visual XYZ axes); a caller passing more than 3 indices is asserting a stronger contract than the viewer can satisfy. Silently slicing to 3 hid this misuse.

      Now the builder throws on >3 indices so tests are forced to be explicit about which dims they want visible. Passing exactly 0–3 is unchanged.

      Parameters

      • ...indices: number[]

      Returns this

    • Add a dimension with metadata

      Parameters

      • index: number
      • name: string
      • unit: string = ''
      • range: [number, number] = ...
      • options: { display?: boolean; discrete?: boolean; step?: number } = {}

      Returns this

    • Add standard spatial dimensions

      Parameters

      • unit: string = 'μm'
      • range: [number, number] = ...

      Returns this