function normalizedRowStyle(defaultRowStyle, rowStyleInternal, i) {
  let rowStyle = rowStyleInternal(i);
  // Force object form
  if (rowStyle == null || typeof rowStyle !== 'object') {
    rowStyle = { height: rowStyle };
  }
  // Normalize
  rowStyle.padding = normalizeSides(rowStyle.padding);
  rowStyle.border = normalizeSides(rowStyle.border);
  rowStyle.borderColor = normalizeSides(rowStyle.borderColor);
  rowStyle.align = normalizeAlignment(rowStyle.align);

  // Merge defaults
  rowStyle = deepMerge(defaultRowStyle, rowStyle);

  const document = this.document;
  const page = document.page;
  const contentHeight = page.contentHeight;

  if (rowStyle.height == null || rowStyle.height === 'auto') {
    rowStyle.height = 'auto';
  } else {
    rowStyle.height = document.sizeToPoint(
      rowStyle.height,
      0,
      page,
      contentHeight,
    );
  }
  rowStyle.minHeight = document.sizeToPoint(
    rowStyle.minHeight,
    0,
    page,
    contentHeight,
  );
  rowStyle.maxHeight = document.sizeToPoint(
    rowStyle.maxHeight,
    0,
    page,
    contentHeight,
  );

  return rowStyle;
}
Normalize the row config

@note The context here is the cell not the document

@this PDFTable
@memberOf PDFTable
@param {RowStyle} defaultRowStyle
@param {Dynamic<Row>} rowStyleInternal
@param {number} i The target row
@returns {NormalizedRowStyle}
@private