@syncfusion/ej2-pdf-export 26.2.14 → 27.1.50
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 +40 -17
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +40 -17
- 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 +7 -7
- package/src/implementation/structured-elements/grid/pdf-grid-cell.js +40 -17
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.50
|
|
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@27.1.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-S6YjmYHmDun2L5WUJ6iOKxTEPrvh0fY0RntT/Id7dhm3AVsgNw0Zgq9J9Jejev31cP09GEzzI2W4V6DmqIAhdQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pdf-export",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"/@syncfusion/ej2-pivotview",
|
|
28
28
|
"/@syncfusion/ej2-treemap"
|
|
29
29
|
],
|
|
30
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-
|
|
31
|
-
"_shasum": "
|
|
30
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-27.1.48.tgz",
|
|
31
|
+
"_shasum": "c83f8d5208e17ce7fa47f2c45f96a96e9abe224f",
|
|
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.50"
|
|
40
40
|
},
|
|
41
41
|
"deprecated": false,
|
|
42
42
|
"description": "Syncfusion TypeScript Component",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"module": "./index.js",
|
|
48
48
|
"name": "@syncfusion/ej2-pdf-export",
|
|
49
49
|
"typings": "index.d.ts",
|
|
50
|
-
"version": "
|
|
50
|
+
"version": "27.1.50",
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
53
53
|
}
|
|
@@ -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
|
}
|