@syncfusion/ej2-pdf-export 30.1.38 → 30.1.41

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 30.1.38
3
+ * version : 30.1.41
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-pdf-export",
3
- "version": "30.1.38",
3
+ "version": "30.1.41",
4
4
  "description": "Syncfusion TypeScript Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -1321,12 +1321,12 @@ var PdfGridLayouter = /** @class */ (function (_super) {
1321
1321
  }
1322
1322
  else {
1323
1323
  var skipcell = false;
1324
- var location_4 = new PointF(this.currentBounds.x, this.currentBounds.y);
1324
+ var loc = new PointF(this.currentBounds.x, this.currentBounds.y);
1325
1325
  // if (row.grid.isChildGrid && row.grid.allowRowBreakAcrossPages && this.startLocation.x !== this.currentBounds.x && row.width <
1326
1326
  // this.currentPage.getClientSize().width) {
1327
1327
  // location.x = this.startLocation.x;
1328
1328
  // }
1329
- result.bounds = new RectangleF(location_4, new SizeF(0, 0));
1329
+ result.bounds = new RectangleF(loc, new SizeF(0, 0));
1330
1330
  height = this.ReCalculateHeight(row, height);
1331
1331
  for (var i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
1332
1332
  var cancelSpans = ((i > this.cellEndIndex + 1) && (row.cells.getCell(i).columnSpan > 1));
@@ -1353,14 +1353,14 @@ var PdfGridLayouter = /** @class */ (function (_super) {
1353
1353
  var cellstyle = row.cells.getCell(i).style;
1354
1354
  var tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
1355
1355
  row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
1356
- row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(location_4, size), tempValue, cellstyle);
1356
+ row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, cellstyle);
1357
1357
  //row.cells.getCell(i).style = cellstyle;
1358
1358
  if (!skipcell) {
1359
1359
  if (row.cells.getCell(i).value instanceof PdfGrid) {
1360
1360
  var grid = row.cells.getCell(i).value;
1361
1361
  grid.parentCellIndex = i;
1362
1362
  }
1363
- var stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(location_4, size), cancelSpans);
1363
+ var stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(loc, size), cancelSpans);
1364
1364
  if (row.grid.style.allowHorizontalOverflow && (row.cells.getCell(i).columnSpan > this.cellEndIndex ||
1365
1365
  i + row.cells.getCell(i).columnSpan > this.cellEndIndex + 1) && this.cellEndIndex < row.cells.count - 1) {
1366
1366
  row.rowOverflowIndex = this.cellEndIndex;
@@ -1379,26 +1379,26 @@ var PdfGridLayouter = /** @class */ (function (_super) {
1379
1379
  tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
1380
1380
  row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
1381
1381
  if (!cancelSpans) {
1382
- this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(location_4, size), tempValue, row.cells.getCell(i).style);
1382
+ this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, row.cells.getCell(i).style);
1383
1383
  }
1384
1384
  if (row.cells.getCell(i).value instanceof PdfGrid) {
1385
1385
  var grid = row.cells.getCell(i).value;
1386
1386
  if (this.Grid.columns.getColumn(i).width >= this.currentGraphics.clientSize.width) {
1387
- location_4.x = grid.rowLayoutBoundsWidth;
1388
- location_4.x += grid.style.cellSpacing;
1387
+ loc.x = grid.rowLayoutBoundsWidth;
1388
+ loc.x += grid.style.cellSpacing;
1389
1389
  }
1390
1390
  else {
1391
- location_4.x += this.Grid.columns.getColumn(i).width;
1391
+ loc.x += this.Grid.columns.getColumn(i).width;
1392
1392
  }
1393
1393
  }
1394
1394
  else {
1395
- location_4.x += this.Grid.columns.getColumn(i).width;
1395
+ loc.x += this.Grid.columns.getColumn(i).width;
1396
1396
  }
1397
1397
  }
1398
1398
  if (!row.rowMergeComplete || row.isRowHeightSet) {
1399
1399
  this.currentBounds.y += height;
1400
1400
  }
1401
- result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(location_4.x, location_4.y));
1401
+ result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(loc.x, loc.y));
1402
1402
  }
1403
1403
  };
1404
1404
  PdfGridLayouter.prototype.isFitToCell = function (currentHeight, grid, gridRow) {
@@ -358,7 +358,7 @@ var PdfGrid = /** @class */ (function (_super) {
358
358
  hasChanged = true;
359
359
  }
360
360
  if (typeof param.bounds.height === 'undefined' || param.bounds.height === 0) {
361
- height = param.page.getClientSize().height - param.bounds.y;
361
+ height = param.page.getClientSize().height;
362
362
  hasChanged = true;
363
363
  }
364
364
  if (hasChanged) {