@syncfusion/ej2-pdf-export 21.2.3 → 21.2.10
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 +17 -0
- 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 +18 -11
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +18 -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 +5 -5
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +15 -11
- package/src/implementation/structured-elements/grid/pdf-grid-cell.d.ts +1 -0
- package/src/implementation/structured-elements/grid/pdf-grid-cell.js +3 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.10
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.
|
|
3
|
+
"_id": "@syncfusion/ej2-pdf-export@21.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-VgkHCfQigXy3KeJBi2l+b2mJXPGGpbI0qmUeMrGlG4VrCn32DaD9yP7XsN+/EtJ6PqIGYLEVxSpPYGRqx4Za1w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pdf-export",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"/@syncfusion/ej2-pivotview",
|
|
29
29
|
"/@syncfusion/ej2-treemap"
|
|
30
30
|
],
|
|
31
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-21.
|
|
32
|
-
"_shasum": "
|
|
31
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-21.2.8.tgz",
|
|
32
|
+
"_shasum": "e08ed165ddef0658e0f568a9bffc10f5a75844de",
|
|
33
33
|
"_spec": "@syncfusion/ej2-pdf-export@*",
|
|
34
34
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
35
35
|
"author": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"module": "./index.js",
|
|
49
49
|
"name": "@syncfusion/ej2-pdf-export",
|
|
50
50
|
"typings": "index.d.ts",
|
|
51
|
-
"version": "21.2.
|
|
51
|
+
"version": "21.2.10",
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
54
54
|
}
|
|
@@ -1318,22 +1318,25 @@ var PdfGridLayouter = /** @class */ (function (_super) {
|
|
|
1318
1318
|
else {
|
|
1319
1319
|
font = PdfDocument.defaultFont;
|
|
1320
1320
|
}
|
|
1321
|
-
this.remainderText =
|
|
1322
|
-
var width =
|
|
1323
|
-
|
|
1324
|
-
|
|
1321
|
+
this.remainderText = cell.value;
|
|
1322
|
+
var width = cell.width;
|
|
1323
|
+
var column = grid.columns.getColumn(i);
|
|
1324
|
+
if (column.isCustomWidth && cell.width > column.width) {
|
|
1325
|
+
width = column.width;
|
|
1325
1326
|
}
|
|
1326
|
-
this.slr = layouter.layout(
|
|
1327
|
+
this.slr = layouter.layout(cell.value, font, cell.stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
|
|
1327
1328
|
var height = this.slr.actualSize.height;
|
|
1328
|
-
if (height
|
|
1329
|
+
if (cell.value !== '' && height === 0) {
|
|
1329
1330
|
isFit = false;
|
|
1330
1331
|
break;
|
|
1331
1332
|
}
|
|
1332
|
-
if (
|
|
1333
|
-
height += (
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1333
|
+
if (cell.style !== null && cell.style.borders !== null && cell.style.borders.top !== null && cell.style.borders.bottom !== null) {
|
|
1334
|
+
height += (cell.style.borders.top.width + cell.style.borders.bottom.width) * 2;
|
|
1335
|
+
}
|
|
1336
|
+
if (this.slr.lineCount > 1 && cell.stringFormat != null && cell.stringFormat.lineSpacing != 0) {
|
|
1337
|
+
height += (this.slr.lineCount - 1) * (cell.style.stringFormat.lineSpacing);
|
|
1338
|
+
}
|
|
1339
|
+
if (cell.style.cellPadding === null) {
|
|
1337
1340
|
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
1338
1341
|
}
|
|
1339
1342
|
else {
|
|
@@ -1397,6 +1400,7 @@ var PdfGridLayouter = /** @class */ (function (_super) {
|
|
|
1397
1400
|
var skipcell = false;
|
|
1398
1401
|
var stringResult = null;
|
|
1399
1402
|
if (!skipcell) {
|
|
1403
|
+
row.cells.getCell(i)._rowHeight = row.height;
|
|
1400
1404
|
stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(location, size), cancelSpans);
|
|
1401
1405
|
}
|
|
1402
1406
|
//If still row is to be drawn, set cell finished drawing cell as false and update the text to be drawn.
|
|
@@ -496,6 +496,9 @@ var PdfGridCell = /** @class */ (function () {
|
|
|
496
496
|
// If to break row to next page.
|
|
497
497
|
if (this.row.grid.allowRowBreakAcrossPages) {
|
|
498
498
|
innerLayoutArea.height -= innerLayoutArea.y;
|
|
499
|
+
if (typeof this._rowHeight !== 'undefined' && this._rowHeight !== null && innerLayoutArea.height > this._rowHeight) {
|
|
500
|
+
innerLayoutArea.height = this._rowHeight;
|
|
501
|
+
}
|
|
499
502
|
//bounds.height -= bounds.y;
|
|
500
503
|
// if(this.row.grid.isChildGrid)
|
|
501
504
|
// {
|