SheetXL - v0.3.20
    Preparing search index...

    Class TransposedBuilder<T>

    Transposes cell coordinates within tuples to create MajorTuple representations in the opposite orientation.

    This utility efficiently converts data organized by one orientation into the opposite.

    Type Parameters

    • T

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Type Parameters

      • T

      Parameters

      • OptionalcreateList: <T>(arr: T[]) => IListLike<T>
      • offsetMajor: number = 0
      • offsetMinor: number = 0

      Returns TransposedBuilder<T>

    Methods

    • Adds a single value associated with a specific major and minor index.

      Parameters

      • major: number

        The major index.

      • minor: number

        The minor index.

      • value: T

        The value to be added.

      Returns IBuilder<T>

      If the value is an Array, it will be treated as a discrete value. If you want to set multiple values along the minor axis, then use addValues.

    • Adds multiple values associated with a specific major and minor index.

      Parameters

      • major: number

        The major index.

      • minor: number

        The minor index.

      • value: T[]

        An array of values to be added.

      Returns IBuilder<T>

    • Constructs and returns the bounded tuples based on the added values. This method can be called multiple times.

      Returns BoundedTuples<T>

      The built bounded tuples.