@syncfusion/ej2-pdf-export 24.2.3 → 25.1.38

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.
@@ -30572,7 +30572,8 @@ var PdfGridCell = /** @__PURE__ @class */ (function () {
30572
30572
  }
30573
30573
  if (param.page != childGridResult.page) //&& (isWidthGreaterthanParent != true))
30574
30574
  {
30575
- childGridResult.bounds.height = this.row.rowBreakHeightValue;
30575
+ if (this.row.rowBreakHeightValue !== null && typeof this.row.rowBreakHeightValue !== 'undefined')
30576
+ childGridResult.bounds.height = this.row.rowBreakHeightValue;
30576
30577
  if (this.row.rowBreakHeight == 0)
30577
30578
  this.row.NestedGridLayoutResult = childGridResult;
30578
30579
  else
@@ -33264,11 +33265,11 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33264
33265
  this.currentBounds.y = recalHeight;
33265
33266
  //this.currentBounds.y = row.NestedGridLayoutResult.bounds.height;
33266
33267
  if (startPage != this.currentPage) {
33267
- var secion = this.currentPage.section;
33268
- var startIndex = secion.indexOf(startPage) + 1;
33269
- var endIndex = secion.indexOf(this.currentPage);
33268
+ var section = this.currentPage.section;
33269
+ var startIndex = section.indexOf(startPage) + 1;
33270
+ var endIndex = section.indexOf(this.currentPage);
33270
33271
  for (var page = startIndex; page < endIndex + 1; page++) {
33271
- var pageGraphics = this.currentPage.graphics;
33272
+ var pageGraphics = section.getPages()[page].graphics;
33272
33273
  var location_2 = new PointF(format.paginateBounds.x, format.paginateBounds.y);
33273
33274
  var height = page == endIndex ? (row.NestedGridLayoutResult.bounds.height - param.bounds.y) :
33274
33275
  (this.currentBounds.height - location_2.y);
@@ -33290,14 +33291,14 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33290
33291
  else {
33291
33292
  totalwidth = cell.width;
33292
33293
  }
33293
- // if (cell.columnSpan > 1)
33294
- // {
33295
- // for (; c < cell.columnSpan; c++)
33296
- // cellWidth += row.grid.columns.getColumn(c).width;
33297
- // }
33298
- // else
33299
- cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
33294
+ if (cell.columnSpan > 1) {
33295
+ for (; c < cell.columnSpan; c++)
33296
+ cellWidth += row.grid.columns.getColumn(c).width;
33297
+ }
33298
+ else
33299
+ cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
33300
33300
  cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(cellWidth, height)));
33301
+ cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(this.Grid.rows.getRow(this.Grid.rows.count - 1).width, height)));
33301
33302
  location_2.x += cellWidth;
33302
33303
  c += (cell.columnSpan - 1);
33303
33304
  }
@@ -33896,14 +33897,16 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33896
33897
  // }
33897
33898
  }
33898
33899
  for (var i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
33900
+ var gridColumnWidth = this.Grid.columns.getColumn(i).width;
33899
33901
  var cancelSpans = ((row.cells.getCell(i).columnSpan + i > this.cellEndIndex + 1) &&
33900
33902
  (row.cells.getCell(i).columnSpan > 1));
33901
- // if (!cancelSpans) {
33902
- // for (let k : number = 1; k < row.cells.getCell(i).columnSpan; k++) {
33903
- // row.cells.getCell(i + k).isCellMergeContinue = true;
33904
- // }
33905
- //}
33906
- var size = new SizeF(this.Grid.columns.getColumn(i).width, this.gridHeight > 0.0 ? this.gridHeight :
33903
+ if (!cancelSpans) {
33904
+ for (var k = 1; k < row.cells.getCell(i).columnSpan; k++) {
33905
+ row.cells.getCell(i + k).isCellMergeContinue = true;
33906
+ gridColumnWidth += this.Grid.columns.getColumn(i + k).width;
33907
+ }
33908
+ }
33909
+ var size = new SizeF(gridColumnWidth, this.gridHeight > 0.0 ? this.gridHeight :
33907
33910
  this.currentPageBounds.height);
33908
33911
  // if (size.width === 0) {
33909
33912
  // size = new SizeF(row.cells.getCell(i).width, size.height);