@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.
- package/CHANGELOG.md +4 -6
- package/dist/ej2-pdf-export.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +21 -18
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +21 -18
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +2 -2
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +19 -17
- package/src/implementation/structured-elements/grid/pdf-grid-cell.js +2 -1
|
@@ -27498,7 +27498,8 @@ class PdfGridCell {
|
|
|
27498
27498
|
}
|
|
27499
27499
|
if (param.page != childGridResult.page) //&& (isWidthGreaterthanParent != true))
|
|
27500
27500
|
{
|
|
27501
|
-
|
|
27501
|
+
if (this.row.rowBreakHeightValue !== null && typeof this.row.rowBreakHeightValue !== 'undefined')
|
|
27502
|
+
childGridResult.bounds.height = this.row.rowBreakHeightValue;
|
|
27502
27503
|
if (this.row.rowBreakHeight == 0)
|
|
27503
27504
|
this.row.NestedGridLayoutResult = childGridResult;
|
|
27504
27505
|
else
|
|
@@ -30007,11 +30008,11 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
30007
30008
|
this.currentBounds.y = recalHeight;
|
|
30008
30009
|
//this.currentBounds.y = row.NestedGridLayoutResult.bounds.height;
|
|
30009
30010
|
if (startPage != this.currentPage) {
|
|
30010
|
-
let
|
|
30011
|
-
let startIndex =
|
|
30012
|
-
let endIndex =
|
|
30011
|
+
let section = this.currentPage.section;
|
|
30012
|
+
let startIndex = section.indexOf(startPage) + 1;
|
|
30013
|
+
let endIndex = section.indexOf(this.currentPage);
|
|
30013
30014
|
for (let page = startIndex; page < endIndex + 1; page++) {
|
|
30014
|
-
let pageGraphics =
|
|
30015
|
+
let pageGraphics = section.getPages()[page].graphics;
|
|
30015
30016
|
let location = new PointF(format.paginateBounds.x, format.paginateBounds.y);
|
|
30016
30017
|
let height = page == endIndex ? (row.NestedGridLayoutResult.bounds.height - param.bounds.y) :
|
|
30017
30018
|
(this.currentBounds.height - location.y);
|
|
@@ -30033,14 +30034,14 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
30033
30034
|
else {
|
|
30034
30035
|
totalwidth = cell.width;
|
|
30035
30036
|
}
|
|
30036
|
-
|
|
30037
|
-
|
|
30038
|
-
|
|
30039
|
-
|
|
30040
|
-
|
|
30041
|
-
|
|
30042
|
-
cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
|
|
30037
|
+
if (cell.columnSpan > 1) {
|
|
30038
|
+
for (; c < cell.columnSpan; c++)
|
|
30039
|
+
cellWidth += row.grid.columns.getColumn(c).width;
|
|
30040
|
+
}
|
|
30041
|
+
else
|
|
30042
|
+
cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
|
|
30043
30043
|
cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(cellWidth, height)));
|
|
30044
|
+
cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(this.Grid.rows.getRow(this.Grid.rows.count - 1).width, height)));
|
|
30044
30045
|
location.x += cellWidth;
|
|
30045
30046
|
c += (cell.columnSpan - 1);
|
|
30046
30047
|
}
|
|
@@ -30638,14 +30639,16 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
30638
30639
|
// }
|
|
30639
30640
|
}
|
|
30640
30641
|
for (let i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
|
|
30642
|
+
let gridColumnWidth = this.Grid.columns.getColumn(i).width;
|
|
30641
30643
|
let cancelSpans = ((row.cells.getCell(i).columnSpan + i > this.cellEndIndex + 1) &&
|
|
30642
30644
|
(row.cells.getCell(i).columnSpan > 1));
|
|
30643
|
-
|
|
30644
|
-
|
|
30645
|
-
|
|
30646
|
-
|
|
30647
|
-
|
|
30648
|
-
|
|
30645
|
+
if (!cancelSpans) {
|
|
30646
|
+
for (let k = 1; k < row.cells.getCell(i).columnSpan; k++) {
|
|
30647
|
+
row.cells.getCell(i + k).isCellMergeContinue = true;
|
|
30648
|
+
gridColumnWidth += this.Grid.columns.getColumn(i + k).width;
|
|
30649
|
+
}
|
|
30650
|
+
}
|
|
30651
|
+
let size = new SizeF(gridColumnWidth, this.gridHeight > 0.0 ? this.gridHeight :
|
|
30649
30652
|
this.currentPageBounds.height);
|
|
30650
30653
|
// if (size.width === 0) {
|
|
30651
30654
|
// size = new SizeF(row.cells.getCell(i).width, size.height);
|