@syncfusion/ej2-pdf-export 30.1.38 → 30.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29140,7 +29140,7 @@ class PdfGrid extends PdfLayoutElement {
29140
29140
  hasChanged = true;
29141
29141
  }
29142
29142
  if (typeof param.bounds.height === 'undefined' || param.bounds.height === 0) {
29143
- height = param.page.getClientSize().height - param.bounds.y;
29143
+ height = param.page.getClientSize().height;
29144
29144
  hasChanged = true;
29145
29145
  }
29146
29146
  if (hasChanged) {
@@ -30813,12 +30813,12 @@ class PdfGridLayouter extends ElementLayouter {
30813
30813
  return result;
30814
30814
  }
30815
30815
  else {
30816
- let location = new PointF(this.currentBounds.x, this.currentBounds.y);
30816
+ let loc = new PointF(this.currentBounds.x, this.currentBounds.y);
30817
30817
  // if (row.grid.isChildGrid && row.grid.allowRowBreakAcrossPages && this.startLocation.x !== this.currentBounds.x && row.width <
30818
30818
  // this.currentPage.getClientSize().width) {
30819
30819
  // location.x = this.startLocation.x;
30820
30820
  // }
30821
- result.bounds = new RectangleF(location, new SizeF(0, 0));
30821
+ result.bounds = new RectangleF(loc, new SizeF(0, 0));
30822
30822
  height = this.ReCalculateHeight(row, height);
30823
30823
  for (let i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
30824
30824
  let cancelSpans = ((i > this.cellEndIndex + 1) && (row.cells.getCell(i).columnSpan > 1));
@@ -30845,14 +30845,14 @@ class PdfGridLayouter extends ElementLayouter {
30845
30845
  let cellstyle = row.cells.getCell(i).style;
30846
30846
  let tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
30847
30847
  row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
30848
- row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(location, size), tempValue, cellstyle);
30848
+ row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, cellstyle);
30849
30849
  //row.cells.getCell(i).style = cellstyle;
30850
30850
  {
30851
30851
  if (row.cells.getCell(i).value instanceof PdfGrid) {
30852
30852
  let grid = row.cells.getCell(i).value;
30853
30853
  grid.parentCellIndex = i;
30854
30854
  }
30855
- let stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(location, size), cancelSpans);
30855
+ let stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(loc, size), cancelSpans);
30856
30856
  if (row.grid.style.allowHorizontalOverflow && (row.cells.getCell(i).columnSpan > this.cellEndIndex ||
30857
30857
  i + row.cells.getCell(i).columnSpan > this.cellEndIndex + 1) && this.cellEndIndex < row.cells.count - 1) {
30858
30858
  row.rowOverflowIndex = this.cellEndIndex;
@@ -30871,26 +30871,26 @@ class PdfGridLayouter extends ElementLayouter {
30871
30871
  tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
30872
30872
  row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
30873
30873
  if (!cancelSpans) {
30874
- this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(location, size), tempValue, row.cells.getCell(i).style);
30874
+ this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, row.cells.getCell(i).style);
30875
30875
  }
30876
30876
  if (row.cells.getCell(i).value instanceof PdfGrid) {
30877
30877
  let grid = row.cells.getCell(i).value;
30878
30878
  if (this.Grid.columns.getColumn(i).width >= this.currentGraphics.clientSize.width) {
30879
- location.x = grid.rowLayoutBoundsWidth;
30880
- location.x += grid.style.cellSpacing;
30879
+ loc.x = grid.rowLayoutBoundsWidth;
30880
+ loc.x += grid.style.cellSpacing;
30881
30881
  }
30882
30882
  else {
30883
- location.x += this.Grid.columns.getColumn(i).width;
30883
+ loc.x += this.Grid.columns.getColumn(i).width;
30884
30884
  }
30885
30885
  }
30886
30886
  else {
30887
- location.x += this.Grid.columns.getColumn(i).width;
30887
+ loc.x += this.Grid.columns.getColumn(i).width;
30888
30888
  }
30889
30889
  }
30890
30890
  if (!row.rowMergeComplete || row.isRowHeightSet) {
30891
30891
  this.currentBounds.y += height;
30892
30892
  }
30893
- result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(location.x, location.y));
30893
+ result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(loc.x, loc.y));
30894
30894
  }
30895
30895
  }
30896
30896
  isFitToCell(currentHeight, grid, gridRow) {