@syncfusion/ej2-pdf-export 26.2.14 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.14
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@26.2.11",
3
+ "_id": "@syncfusion/ej2-pdf-export@0.38.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-2SLRcuu9QJUeMl3P9fl6qN8N5epJQoEMWNrN67oPxGlhTeTmIBXFidePOhCjrLQLahxO7v0vNEVjFQM0BTXXog==",
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-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-26.2.11.tgz",
31
- "_shasum": "a414545d364413377d3edc87567ed51d779a0f0d",
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-automation_release_26.1.1/packages/included",
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": "~26.2.10"
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": "26.2.14",
51
+ "version": "27.1.48",
51
52
  "sideEffects": false,
52
53
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
53
54
  }
@@ -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 (typeof this.gridRow.grid.style.cellPadding.left !== 'undefined' && this.gridRow.grid.style.cellPadding.hasLeftPad) {
399
- returnBounds.x += this.gridRow.grid.style.cellPadding.left + this.cellStyle.borders.left.width;
400
- returnBounds.width -= this.gridRow.grid.style.cellPadding.left;
401
- }
402
- if (typeof this.gridRow.grid.style.cellPadding.top !== 'undefined' && this.gridRow.grid.style.cellPadding.hasTopPad) {
403
- returnBounds.y += this.gridRow.grid.style.cellPadding.top + this.cellStyle.borders.top.width;
404
- returnBounds.height -= this.gridRow.grid.style.cellPadding.top;
405
- }
406
- if (typeof this.gridRow.grid.style.cellPadding.right !== 'undefined' && this.gridRow.grid.style.cellPadding.hasRightPad) {
407
- returnBounds.width -= this.gridRow.grid.style.cellPadding.right;
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
- if (typeof this.gridRow.grid.style.cellPadding.bottom !== 'undefined' && this.gridRow.grid.style.cellPadding.hasBottomPad) {
410
- returnBounds.height -= this.gridRow.grid.style.cellPadding.bottom;
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 = void 0;
636
- if (this.objectValue.width <= innerLayoutArea.width) {
637
- imageBounds = new RectangleF(innerLayoutArea.x, innerLayoutArea.y, this.objectValue.width, innerLayoutArea.height);
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
- else {
640
- imageBounds = innerLayoutArea;
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
  }