@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
|
@@ -26615,6 +26615,9 @@ class PdfGridCell {
|
|
|
26615
26615
|
// If to break row to next page.
|
|
26616
26616
|
if (this.row.grid.allowRowBreakAcrossPages) {
|
|
26617
26617
|
innerLayoutArea.height -= innerLayoutArea.y;
|
|
26618
|
+
if (typeof this._rowHeight !== 'undefined' && this._rowHeight !== null && innerLayoutArea.height > this._rowHeight) {
|
|
26619
|
+
innerLayoutArea.height = this._rowHeight;
|
|
26620
|
+
}
|
|
26618
26621
|
//bounds.height -= bounds.y;
|
|
26619
26622
|
// if(this.row.grid.isChildGrid)
|
|
26620
26623
|
// {
|
|
@@ -29814,22 +29817,25 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
29814
29817
|
else {
|
|
29815
29818
|
font = PdfDocument.defaultFont;
|
|
29816
29819
|
}
|
|
29817
|
-
this.remainderText =
|
|
29818
|
-
let width =
|
|
29819
|
-
|
|
29820
|
-
|
|
29820
|
+
this.remainderText = cell.value;
|
|
29821
|
+
let width = cell.width;
|
|
29822
|
+
const column = grid.columns.getColumn(i);
|
|
29823
|
+
if (column.isCustomWidth && cell.width > column.width) {
|
|
29824
|
+
width = column.width;
|
|
29821
29825
|
}
|
|
29822
|
-
this.slr = layouter.layout(
|
|
29826
|
+
this.slr = layouter.layout(cell.value, font, cell.stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
|
|
29823
29827
|
let height = this.slr.actualSize.height;
|
|
29824
|
-
if (height
|
|
29828
|
+
if (cell.value !== '' && height === 0) {
|
|
29825
29829
|
isFit = false;
|
|
29826
29830
|
break;
|
|
29827
29831
|
}
|
|
29828
|
-
if (
|
|
29829
|
-
height += (
|
|
29830
|
-
|
|
29831
|
-
|
|
29832
|
-
|
|
29832
|
+
if (cell.style !== null && cell.style.borders !== null && cell.style.borders.top !== null && cell.style.borders.bottom !== null) {
|
|
29833
|
+
height += (cell.style.borders.top.width + cell.style.borders.bottom.width) * 2;
|
|
29834
|
+
}
|
|
29835
|
+
if (this.slr.lineCount > 1 && cell.stringFormat != null && cell.stringFormat.lineSpacing != 0) {
|
|
29836
|
+
height += (this.slr.lineCount - 1) * (cell.style.stringFormat.lineSpacing);
|
|
29837
|
+
}
|
|
29838
|
+
if (cell.style.cellPadding === null) {
|
|
29833
29839
|
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
29834
29840
|
}
|
|
29835
29841
|
else {
|
|
@@ -29893,6 +29899,7 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
29893
29899
|
let skipcell = false;
|
|
29894
29900
|
let stringResult = null;
|
|
29895
29901
|
if (!skipcell) {
|
|
29902
|
+
row.cells.getCell(i)._rowHeight = row.height;
|
|
29896
29903
|
stringResult = row.cells.getCell(i).draw(this.currentGraphics, new RectangleF(location, size), cancelSpans);
|
|
29897
29904
|
}
|
|
29898
29905
|
//If still row is to be drawn, set cell finished drawing cell as false and update the text to be drawn.
|