@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 30.1.
|
|
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
|
@@ -1321,12 +1321,12 @@ var PdfGridLayouter = /** @class */ (function (_super) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
else {
|
|
1323
1323
|
var skipcell = false;
|
|
1324
|
-
var
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
1388
|
-
|
|
1387
|
+
loc.x = grid.rowLayoutBoundsWidth;
|
|
1388
|
+
loc.x += grid.style.cellSpacing;
|
|
1389
1389
|
}
|
|
1390
1390
|
else {
|
|
1391
|
-
|
|
1391
|
+
loc.x += this.Grid.columns.getColumn(i).width;
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
else {
|
|
1395
|
-
|
|
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(
|
|
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
|
|
361
|
+
height = param.page.getClientSize().height;
|
|
362
362
|
hasChanged = true;
|
|
363
363
|
}
|
|
364
364
|
if (hasChanged) {
|