@syncfusion/ej2-pdf-export 26.2.11 → 27.1.48
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 +55 -33
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +55 -33
- 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 +8 -7
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +14 -7
- package/src/implementation/structured-elements/grid/pdf-grid-cell.js +40 -17
- package/src/implementation/structured-elements/grid/styles/pdf-borders.js +1 -3
- package/src/implementation/structured-elements/grid/styles/style.d.ts +0 -4
- package/src/implementation/structured-elements/grid/styles/style.js +0 -6
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 27.1.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@
|
|
3
|
+
"_id": "@syncfusion/ej2-pdf-export@0.38.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-2toFfcdwkUI7DLyPsa4jN0i5Q5hn4Mtv63T1SNn6N+etxCPKO2giO1j9sdWA7WsU553CGww/pkyCbA9Iyp97cA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pdf-export",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
"/@syncfusion/ej2-pivotview",
|
|
28
28
|
"/@syncfusion/ej2-treemap"
|
|
29
29
|
],
|
|
30
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
31
|
-
"_shasum": "
|
|
30
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-0.38.8.tgz",
|
|
31
|
+
"_shasum": "487195727293596aed4bd2fba56662a0e31b08c6",
|
|
32
32
|
"_spec": "@syncfusion/ej2-pdf-export@*",
|
|
33
|
-
"_where": "/jenkins/workspace/elease-
|
|
33
|
+
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
34
34
|
"author": {
|
|
35
35
|
"name": "Syncfusion Inc."
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-compression": "~
|
|
39
|
+
"@syncfusion/ej2-compression": "~27.1.48",
|
|
40
|
+
"markdown-spellcheck": "^1.3.1"
|
|
40
41
|
},
|
|
41
42
|
"deprecated": false,
|
|
42
43
|
"description": "Syncfusion TypeScript Component",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"module": "./index.js",
|
|
48
49
|
"name": "@syncfusion/ej2-pdf-export",
|
|
49
50
|
"typings": "index.d.ts",
|
|
50
|
-
"version": "
|
|
51
|
+
"version": "27.1.48",
|
|
51
52
|
"sideEffects": false,
|
|
52
53
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
53
54
|
}
|
|
@@ -763,7 +763,11 @@ var PdfGridLayouter = /** @class */ (function (_super) {
|
|
|
763
763
|
var cell = row.cells.getCell(c);
|
|
764
764
|
var cellWidth = 0;
|
|
765
765
|
var totalwidth = 0;
|
|
766
|
+
var childGridCell = void 0;
|
|
766
767
|
if (cell.value instanceof PdfGrid) {
|
|
768
|
+
if (!childGridCell) {
|
|
769
|
+
childGridCell = cell;
|
|
770
|
+
}
|
|
767
771
|
for (var i_6 = 0; i_6 < cell.value.columns.count; i_6++) {
|
|
768
772
|
totalwidth += cell.value.columns.getColumn(i_6).columnWidth;
|
|
769
773
|
}
|
|
@@ -777,13 +781,16 @@ var PdfGridLayouter = /** @class */ (function (_super) {
|
|
|
777
781
|
}
|
|
778
782
|
else
|
|
779
783
|
cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
bottomPadding
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
784
|
+
var bottomPadding = void 0;
|
|
785
|
+
if (childGridCell && childGridCell.style && childGridCell.style.cellPadding) {
|
|
786
|
+
bottomPadding = childGridCell.style.cellPadding.bottom;
|
|
787
|
+
}
|
|
788
|
+
else {
|
|
789
|
+
bottomPadding = this.Grid.style.cellPadding.bottom;
|
|
790
|
+
}
|
|
791
|
+
if (typeof bottomPadding === 'number' && (height + bottomPadding) < pageGraphics.clientSize.height) {
|
|
792
|
+
height += bottomPadding;
|
|
793
|
+
this.currentBounds.y += bottomPadding;
|
|
787
794
|
}
|
|
788
795
|
cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(cellWidth, height)));
|
|
789
796
|
var rowWidth = this.Grid.rows.getRow(this.Grid.rows.count - 1).width;
|
|
@@ -395,19 +395,41 @@ var PdfGridCell = /** @class */ (function () {
|
|
|
395
395
|
}
|
|
396
396
|
else {
|
|
397
397
|
if (this.style.cellPadding == null || typeof this.style.cellPadding === 'undefined') {
|
|
398
|
-
if (
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
398
|
+
if (this.gridRow.grid.style.cellPadding !== null && typeof this.gridRow.grid.style.cellPadding !== 'undefined') {
|
|
399
|
+
var hasLeftPad = this.gridRow.grid.style.cellPadding.hasLeftPad;
|
|
400
|
+
var hasTopPad = this.gridRow.grid.style.cellPadding.hasTopPad;
|
|
401
|
+
var hasRightPad = this.gridRow.grid.style.cellPadding.hasRightPad;
|
|
402
|
+
var hasBottomPad = this.gridRow.grid.style.cellPadding.hasBottomPad;
|
|
403
|
+
if (hasLeftPad || hasTopPad || hasRightPad || hasBottomPad) {
|
|
404
|
+
if (typeof this.gridRow.grid.style.cellPadding.left !== 'undefined' && hasLeftPad) {
|
|
405
|
+
returnBounds.x += this.gridRow.grid.style.cellPadding.left + this.cellStyle.borders.left.width;
|
|
406
|
+
returnBounds.width -= this.gridRow.grid.style.cellPadding.left;
|
|
407
|
+
}
|
|
408
|
+
if (typeof this.gridRow.grid.style.cellPadding.top !== 'undefined' && hasTopPad) {
|
|
409
|
+
returnBounds.y += this.gridRow.grid.style.cellPadding.top + this.cellStyle.borders.top.width;
|
|
410
|
+
returnBounds.height -= this.gridRow.grid.style.cellPadding.top;
|
|
411
|
+
}
|
|
412
|
+
if (typeof this.gridRow.grid.style.cellPadding.right !== 'undefined' && hasRightPad) {
|
|
413
|
+
returnBounds.width -= this.gridRow.grid.style.cellPadding.right;
|
|
414
|
+
}
|
|
415
|
+
if (typeof this.gridRow.grid.style.cellPadding.bottom !== 'undefined' && hasBottomPad) {
|
|
416
|
+
returnBounds.height -= this.gridRow.grid.style.cellPadding.bottom;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
var format = this.getStringFormat();
|
|
421
|
+
if (format.alignment === null || typeof format.alignment === 'undefined') {
|
|
422
|
+
returnBounds.x += this.row.grid.style.cellPadding.left;
|
|
423
|
+
returnBounds.y += this.row.grid.style.cellPadding.top;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
408
426
|
}
|
|
409
|
-
|
|
410
|
-
|
|
427
|
+
else {
|
|
428
|
+
var format = this.getStringFormat();
|
|
429
|
+
if (format.alignment === null || typeof format.alignment === 'undefined') {
|
|
430
|
+
returnBounds.x += this.row.grid.style.cellPadding.left;
|
|
431
|
+
returnBounds.y += this.row.grid.style.cellPadding.top;
|
|
432
|
+
}
|
|
411
433
|
}
|
|
412
434
|
}
|
|
413
435
|
else {
|
|
@@ -632,12 +654,13 @@ var PdfGridCell = /** @class */ (function () {
|
|
|
632
654
|
}
|
|
633
655
|
}
|
|
634
656
|
else if (this.objectValue instanceof PdfImage || this.objectValue instanceof PdfBitmap) {
|
|
635
|
-
var imageBounds =
|
|
636
|
-
|
|
637
|
-
|
|
657
|
+
var imageBounds = new RectangleF(innerLayoutArea.x, innerLayoutArea.y, innerLayoutArea.width, innerLayoutArea.height);
|
|
658
|
+
var image = this.objectValue;
|
|
659
|
+
if (image.width <= innerLayoutArea.width) {
|
|
660
|
+
imageBounds.width = image.width;
|
|
638
661
|
}
|
|
639
|
-
|
|
640
|
-
imageBounds =
|
|
662
|
+
if (image.height <= innerLayoutArea.height) {
|
|
663
|
+
imageBounds.height = image.height;
|
|
641
664
|
}
|
|
642
665
|
graphics.drawImage(this.objectValue, imageBounds.x, imageBounds.y, imageBounds.width, imageBounds.height);
|
|
643
666
|
}
|
|
@@ -143,10 +143,8 @@ var PdfPaddings = /** @class */ (function () {
|
|
|
143
143
|
*/
|
|
144
144
|
this.hasBottomPad = false;
|
|
145
145
|
if (typeof left === 'undefined') {
|
|
146
|
-
//5.76 and 0 are taken from ms-word default table margins.
|
|
147
|
-
this.leftPad = this.rightPad = 5.76;
|
|
148
146
|
//0.5 is set for top and bottom by default.
|
|
149
|
-
this.bottomPad = this.topPad = 0.5;
|
|
147
|
+
this.bottomPad = this.topPad = this.leftPad = this.rightPad = 0.5;
|
|
150
148
|
}
|
|
151
149
|
else {
|
|
152
150
|
this.leftPad = left;
|
|
@@ -105,10 +105,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
|
|
|
105
105
|
*/
|
|
106
106
|
function PdfGridStyle() {
|
|
107
107
|
var _this = _super.call(this) || this;
|
|
108
|
-
/**
|
|
109
|
-
* @private
|
|
110
|
-
*/
|
|
111
|
-
_this._isDefaultPadding = false;
|
|
112
108
|
_this.gridBorderOverlapStyle = PdfBorderOverlapStyle.Overlap;
|
|
113
109
|
_this.bAllowHorizontalOverflow = false;
|
|
114
110
|
_this.gridHorizontalOverflowType = PdfHorizontalOverflowType.LastPage;
|
|
@@ -168,7 +164,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
|
|
|
168
164
|
get: function () {
|
|
169
165
|
if (typeof this.gridCellPadding === 'undefined') {
|
|
170
166
|
this.gridCellPadding = new PdfPaddings();
|
|
171
|
-
this._isDefaultPadding = true;
|
|
172
167
|
}
|
|
173
168
|
return this.gridCellPadding;
|
|
174
169
|
},
|
|
@@ -180,7 +175,6 @@ var PdfGridStyle = /** @class */ (function (_super) {
|
|
|
180
175
|
else {
|
|
181
176
|
this.gridCellPadding = value;
|
|
182
177
|
}
|
|
183
|
-
this._isDefaultPadding = false;
|
|
184
178
|
},
|
|
185
179
|
enumerable: true,
|
|
186
180
|
configurable: true
|