@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.
- 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 +11 -11
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +11 -11
- 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 +1 -1
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +10 -10
- package/src/implementation/structured-elements/grid/pdf-grid.js +1 -1
|
@@ -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
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
30880
|
-
|
|
30879
|
+
loc.x = grid.rowLayoutBoundsWidth;
|
|
30880
|
+
loc.x += grid.style.cellSpacing;
|
|
30881
30881
|
}
|
|
30882
30882
|
else {
|
|
30883
|
-
|
|
30883
|
+
loc.x += this.Grid.columns.getColumn(i).width;
|
|
30884
30884
|
}
|
|
30885
30885
|
}
|
|
30886
30886
|
else {
|
|
30887
|
-
|
|
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(
|
|
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) {
|