Function nonUniformContext

  • creates a non uniform context based on the given array like heights

    Parameters

    • rowHeights: {
          forEach: ((callback) => void);
      }

      array like to get the heights

      • forEach: ((callback) => void)
          • (callback): void
          • Parameters

            • callback: ((height, index) => void)
                • (height, index): void
                • Parameters

                  • height: number
                  • index: number

                  Returns void

            Returns void

    • defaultRowHeight: number = Number.NaN

      if not given the most frequent value will be used

    • rowPadding: number | ((index) => number) = 0

      padding between rows

    Returns IExceptionContext