@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.
- 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
|
@@ -32328,7 +32328,7 @@ var PdfGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
32328
32328
|
hasChanged = true;
|
|
32329
32329
|
}
|
|
32330
32330
|
if (typeof param.bounds.height === 'undefined' || param.bounds.height === 0) {
|
|
32331
|
-
height = param.page.getClientSize().height
|
|
32331
|
+
height = param.page.getClientSize().height;
|
|
32332
32332
|
hasChanged = true;
|
|
32333
32333
|
}
|
|
32334
32334
|
if (hasChanged) {
|
|
@@ -34025,12 +34025,12 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
34025
34025
|
}
|
|
34026
34026
|
else {
|
|
34027
34027
|
var skipcell = false;
|
|
34028
|
-
var
|
|
34028
|
+
var loc = new PointF(this.currentBounds.x, this.currentBounds.y);
|
|
34029
34029
|
// if (row.grid.isChildGrid && row.grid.allowRowBreakAcrossPages && this.startLocation.x !== this.currentBounds.x && row.width <
|
|
34030
34030
|
// this.currentPage.getClientSize().width) {
|
|
34031
34031
|
// location.x = this.startLocation.x;
|
|
34032
34032
|
// }
|
|
34033
|
-
result.bounds = new RectangleF(
|
|
34033
|
+
result.bounds = new RectangleF(loc, new SizeF(0, 0));
|
|
34034
34034
|
height = this.ReCalculateHeight(row, height);
|
|
34035
34035
|
for (var i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
|
|
34036
34036
|
var cancelSpans = ((i > this.cellEndIndex + 1) && (row.cells.getCell(i).columnSpan > 1));
|
|
@@ -34057,14 +34057,14 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
34057
34057
|
var cellstyle = row.cells.getCell(i).style;
|
|
34058
34058
|
var tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
|
|
34059
34059
|
row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
|
|
34060
|
-
row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(
|
|
34060
|
+
row.cells.getCell(i).style = this.RaiseBeforeCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, cellstyle);
|
|
34061
34061
|
//row.cells.getCell(i).style = cellstyle;
|
|
34062
34062
|
if (!skipcell) {
|
|
34063
34063
|
if (row.cells.getCell(i).value instanceof PdfGrid) {
|
|
34064
34064
|
var grid = row.cells.getCell(i).value;
|
|
34065
34065
|
grid.parentCellIndex = i;
|
|
34066
34066
|
}
|
|
34067
|
-
var stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(
|
|
34067
|
+
var stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(loc, size), cancelSpans);
|
|
34068
34068
|
if (row.grid.style.allowHorizontalOverflow && (row.cells.getCell(i).columnSpan > this.cellEndIndex ||
|
|
34069
34069
|
i + row.cells.getCell(i).columnSpan > this.cellEndIndex + 1) && this.cellEndIndex < row.cells.count - 1) {
|
|
34070
34070
|
row.rowOverflowIndex = this.cellEndIndex;
|
|
@@ -34083,26 +34083,26 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
34083
34083
|
tempValue = ((typeof row.cells.getCell(i).value === 'string' &&
|
|
34084
34084
|
row.cells.getCell(i).value !== null) ? row.cells.getCell(i).value : '');
|
|
34085
34085
|
if (!cancelSpans) {
|
|
34086
|
-
this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(
|
|
34086
|
+
this.raiseAfterCellDraw(this.currentGraphics, this.currentRowIndex, i, new RectangleF(loc, size), tempValue, row.cells.getCell(i).style);
|
|
34087
34087
|
}
|
|
34088
34088
|
if (row.cells.getCell(i).value instanceof PdfGrid) {
|
|
34089
34089
|
var grid = row.cells.getCell(i).value;
|
|
34090
34090
|
if (this.Grid.columns.getColumn(i).width >= this.currentGraphics.clientSize.width) {
|
|
34091
|
-
|
|
34092
|
-
|
|
34091
|
+
loc.x = grid.rowLayoutBoundsWidth;
|
|
34092
|
+
loc.x += grid.style.cellSpacing;
|
|
34093
34093
|
}
|
|
34094
34094
|
else {
|
|
34095
|
-
|
|
34095
|
+
loc.x += this.Grid.columns.getColumn(i).width;
|
|
34096
34096
|
}
|
|
34097
34097
|
}
|
|
34098
34098
|
else {
|
|
34099
|
-
|
|
34099
|
+
loc.x += this.Grid.columns.getColumn(i).width;
|
|
34100
34100
|
}
|
|
34101
34101
|
}
|
|
34102
34102
|
if (!row.rowMergeComplete || row.isRowHeightSet) {
|
|
34103
34103
|
this.currentBounds.y += height;
|
|
34104
34104
|
}
|
|
34105
|
-
result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(
|
|
34105
|
+
result.bounds = new RectangleF(new PointF(result.bounds.x, result.bounds.y), new SizeF(loc.x, loc.y));
|
|
34106
34106
|
}
|
|
34107
34107
|
};
|
|
34108
34108
|
PdfGridLayouter.prototype.isFitToCell = function (currentHeight, grid, gridRow) {
|