@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.3
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.1.35",
3
+ "_id": "@syncfusion/ej2-pdf-export@21.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-dBB24Wq/0ynNnmNGRZjPG5eHAjqlbul0ntqUkCvUIHspxQqLW7gVQNrcc897+Kf1BwPaPmvozGxTldiIFT3TiA==",
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.1.35.tgz",
32
- "_shasum": "d3dac47335b2ad9f48ed0c4de86404cd955928b7",
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.3",
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 = gridRow.cells.getCell(i).value;
1322
- var width = gridRow.cells.getCell(i).width;
1323
- if (grid.columns.getColumn(i).isCustomWidth && gridRow.cells.getCell(i).width > grid.columns.getColumn(i).width) {
1324
- width = grid.columns.getColumn(i).width;
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(gridRow.cells.getCell(i).value, font, gridRow.cells.getCell(i).stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
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 == 0) {
1329
+ if (cell.value !== '' && height === 0) {
1329
1330
  isFit = false;
1330
1331
  break;
1331
1332
  }
1332
- if (gridRow.cells.getCell(i).style != null && gridRow.cells.getCell(i).style.borders != null && gridRow.cells.getCell(i).style.borders.top != null && gridRow.cells.getCell(i).style.borders.bottom != null)
1333
- height += (gridRow.cells.getCell(i).style.borders.top.width + gridRow.cells.getCell(i).style.borders.bottom.width) * 2;
1334
- if (this.slr.lineCount > 1 && gridRow.cells.getCell(i).stringFormat != null && gridRow.cells.getCell(i).stringFormat.lineSpacing != 0)
1335
- height += (this.slr.lineCount - 1) * (gridRow.cells.getCell(i).style.stringFormat.lineSpacing);
1336
- if (gridRow.cells.getCell(i).style.cellPadding == null) {
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.
@@ -11,6 +11,7 @@ import { PdfGraphics } from './../../graphics/pdf-graphics';
11
11
  * `PdfGridCell` class represents the schema of a cell in a 'PdfGrid'.
12
12
  */
13
13
  export declare class PdfGridCell {
14
+ _rowHeight: number;
14
15
  /**
15
16
  * The `row span`.
16
17
  * @private
@@ -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
  // {