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

    Function getNextDimensionIndex

    • Calculate the next dimension index for cyclic selection.

      Cycles through non-displayed dimensions in the given direction with wrap-around at boundaries. Used for Tab/Shift+Tab dimension selection. If the current dimension is not in the non-displayed list, jumps to the first (forward) or last (backward) non-displayed dimension.

      Parameters

      • currentDim: number

        Currently selected dimension index (0-based)

      • direction: -1 | 1

        Navigation direction: 1 for next, -1 for previous

      • dims: SimpleDims

        Complete dimension configuration from scene

      Returns number

      Next dimension index to select, or -1 if no non-displayed dimensions exist