@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.2.3
3
+ * version : 25.1.38
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pdf-export@*",
3
- "_id": "@syncfusion/ej2-pdf-export@24.1.47",
3
+ "_id": "@syncfusion/ej2-pdf-export@25.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rhlb4s7U57Fcqqei6eLYCTqiVtswVoUnpQd3bMaIJgOwa0oTFqESjGeRVw99HAfNJenof+YMwGqZnyWGw4/puA==",
5
+ "_integrity": "sha512-zArJ6x1T1ZNJhiuDSpfgFFj5M4a4NJZBDS+JsRucWO9RlWZyfRTcuwcYJzIyoihHa24qNS0zNs6EWIDjqTmDpg==",
6
6
  "_location": "/@syncfusion/ej2-pdf-export",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,16 +27,16 @@
27
27
  "/@syncfusion/ej2-pivotview",
28
28
  "/@syncfusion/ej2-treemap"
29
29
  ],
30
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.47.tgz",
31
- "_shasum": "70db376a52b70e0893b9112b7ea318da25009978",
30
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-25.1.35.tgz",
31
+ "_shasum": "017b25e685f29246fb30a32482fb3b4cd5c8ddd6",
32
32
  "_spec": "@syncfusion/ej2-pdf-export@*",
33
- "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
33
+ "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
34
34
  "author": {
35
35
  "name": "Syncfusion Inc."
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-compression": "~24.2.3"
39
+ "@syncfusion/ej2-compression": "~25.1.35"
40
40
  },
41
41
  "deprecated": false,
42
42
  "description": "Syncfusion TypeScript Component",
@@ -47,7 +47,7 @@
47
47
  "module": "./index.js",
48
48
  "name": "@syncfusion/ej2-pdf-export",
49
49
  "typings": "index.d.ts",
50
- "version": "24.2.3",
50
+ "version": "25.1.38",
51
51
  "sideEffects": false,
52
52
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
53
53
  }
@@ -745,11 +745,11 @@ var PdfGridLayouter = /** @class */ (function (_super) {
745
745
  this.currentBounds.y = recalHeight;
746
746
  //this.currentBounds.y = row.NestedGridLayoutResult.bounds.height;
747
747
  if (startPage != this.currentPage) {
748
- var secion = this.currentPage.section;
749
- var startIndex = secion.indexOf(startPage) + 1;
750
- var endIndex = secion.indexOf(this.currentPage);
748
+ var section = this.currentPage.section;
749
+ var startIndex = section.indexOf(startPage) + 1;
750
+ var endIndex = section.indexOf(this.currentPage);
751
751
  for (var page = startIndex; page < endIndex + 1; page++) {
752
- var pageGraphics = this.currentPage.graphics;
752
+ var pageGraphics = section.getPages()[page].graphics;
753
753
  var location_2 = new PointF(format.paginateBounds.x, format.paginateBounds.y);
754
754
  var height = page == endIndex ? (row.NestedGridLayoutResult.bounds.height - param.bounds.y) :
755
755
  (this.currentBounds.height - location_2.y);
@@ -771,14 +771,14 @@ var PdfGridLayouter = /** @class */ (function (_super) {
771
771
  else {
772
772
  totalwidth = cell.width;
773
773
  }
774
- // if (cell.columnSpan > 1)
775
- // {
776
- // for (; c < cell.columnSpan; c++)
777
- // cellWidth += row.grid.columns.getColumn(c).width;
778
- // }
779
- // else
780
- cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
774
+ if (cell.columnSpan > 1) {
775
+ for (; c < cell.columnSpan; c++)
776
+ cellWidth += row.grid.columns.getColumn(c).width;
777
+ }
778
+ else
779
+ cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
781
780
  cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(cellWidth, height)));
781
+ cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(this.Grid.rows.getRow(this.Grid.rows.count - 1).width, height)));
782
782
  location_2.x += cellWidth;
783
783
  c += (cell.columnSpan - 1);
784
784
  }
@@ -1379,14 +1379,16 @@ var PdfGridLayouter = /** @class */ (function (_super) {
1379
1379
  // }
1380
1380
  }
1381
1381
  for (var i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
1382
+ var gridColumnWidth = this.Grid.columns.getColumn(i).width;
1382
1383
  var cancelSpans = ((row.cells.getCell(i).columnSpan + i > this.cellEndIndex + 1) &&
1383
1384
  (row.cells.getCell(i).columnSpan > 1));
1384
- // if (!cancelSpans) {
1385
- // for (let k : number = 1; k < row.cells.getCell(i).columnSpan; k++) {
1386
- // row.cells.getCell(i + k).isCellMergeContinue = true;
1387
- // }
1388
- //}
1389
- var size = new SizeF(this.Grid.columns.getColumn(i).width, this.gridHeight > 0.0 ? this.gridHeight :
1385
+ if (!cancelSpans) {
1386
+ for (var k = 1; k < row.cells.getCell(i).columnSpan; k++) {
1387
+ row.cells.getCell(i + k).isCellMergeContinue = true;
1388
+ gridColumnWidth += this.Grid.columns.getColumn(i + k).width;
1389
+ }
1390
+ }
1391
+ var size = new SizeF(gridColumnWidth, this.gridHeight > 0.0 ? this.gridHeight :
1390
1392
  this.currentPageBounds.height);
1391
1393
  // if (size.width === 0) {
1392
1394
  // size = new SizeF(row.cells.getCell(i).width, size.height);
@@ -619,7 +619,8 @@ var PdfGridCell = /** @class */ (function () {
619
619
  }
620
620
  if (param.page != childGridResult.page) //&& (isWidthGreaterthanParent != true))
621
621
  {
622
- childGridResult.bounds.height = this.row.rowBreakHeightValue;
622
+ if (this.row.rowBreakHeightValue !== null && typeof this.row.rowBreakHeightValue !== 'undefined')
623
+ childGridResult.bounds.height = this.row.rowBreakHeightValue;
623
624
  if (this.row.rowBreakHeight == 0)
624
625
  this.row.NestedGridLayoutResult = childGridResult;
625
626
  else