@syncfusion/ej2-pdf-export
Advanced tools
Comparing version 23.1.43 to 23.2.4
@@ -9,2 +9,10 @@ # Changelog | ||
- Resolved the floating point equality check issue. | ||
## 23.1.43 (2023-10-31) | ||
### Pdf Export | ||
#### Bug Fixes | ||
- The issue with the missing `PdfPageNumberField` on the minified file has been resolved. | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 23.1.43 | ||
* version : 23.2.4 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-pdf-export@*", | ||
"_id": "@syncfusion/ej2-pdf-export@23.1.39", | ||
"_id": "@syncfusion/ej2-pdf-export@23.1.43", | ||
"_inBundle": false, | ||
"_integrity": "sha512-RtZqzsRNvJsU3SMn5M2uPnqNvZ/VSRlggZ1LoDhV9s9eaef69Kn+Sa80XA0gHiT9tt3DF9w7gfML3fzTnvZshQ==", | ||
"_integrity": "sha512-R+LAKP3xyWtkYSeiDDKp6zT0iUH2oEB60OQ8TTuYGyocC+tjSIEo7pZimKjtdnzSVdDwQTN3Uj5i4u3stMJrkA==", | ||
"_location": "/@syncfusion/ej2-pdf-export", | ||
@@ -27,8 +27,7 @@ "_phantomChildren": {}, | ||
"/@syncfusion/ej2-maps", | ||
"/@syncfusion/ej2-pdfviewer", | ||
"/@syncfusion/ej2-pivotview", | ||
"/@syncfusion/ej2-treemap" | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-23.1.39.tgz", | ||
"_shasum": "7d8a50c3197f14d9783c5abef7b8a6f7ff55e03d", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-23.1.43.tgz", | ||
"_shasum": "b98960fa012f139516f4164b49bace3fa33c2658", | ||
"_spec": "@syncfusion/ej2-pdf-export@*", | ||
@@ -41,3 +40,3 @@ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-compression": "~23.1.36" | ||
"@syncfusion/ej2-compression": "~23.2.4" | ||
}, | ||
@@ -53,5 +52,5 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "23.1.43", | ||
"version": "23.2.4", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -235,2 +235,7 @@ /** | ||
private getTemplateDockBounds; | ||
/** | ||
* Ignore value zero, otherwise convert sign. | ||
* @private | ||
*/ | ||
private convertSign; | ||
} |
@@ -362,5 +362,2 @@ /** | ||
var bounds = this.calculateBounds(page, document); | ||
if (bounds.x === -0) { | ||
bounds.x = 0; | ||
} | ||
layer.graphics.drawPdfTemplate(this.template, new PointF(bounds.x, bounds.y), new SizeF(bounds.width, bounds.height)); | ||
@@ -461,8 +458,8 @@ }; | ||
if (this.type === TemplateType.Left) { | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = 0; | ||
} | ||
else if (this.type === TemplateType.Top) { | ||
x = -actualBounds.x; | ||
y = -actualBounds.y; | ||
x = this.convertSign(actualBounds.x); | ||
y = this.convertSign(actualBounds.y); | ||
} | ||
@@ -472,3 +469,3 @@ break; | ||
x = (actualBounds.width - this.width) / 2; | ||
y = -actualBounds.y; | ||
y = this.convertSign(actualBounds.y); | ||
break; | ||
@@ -482,7 +479,7 @@ case PdfAlignmentStyle.TopRight: | ||
x = actualBounds.width + section.getRightIndentWidth(document, page, false) - this.width; | ||
y = -actualBounds.y; | ||
y = this.convertSign(actualBounds.y); | ||
} | ||
break; | ||
case PdfAlignmentStyle.MiddleLeft: | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = (actualBounds.height - this.height) / 2; | ||
@@ -500,7 +497,7 @@ break; | ||
if (this.type === TemplateType.Left) { | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = actualBounds.height - this.height; | ||
} | ||
else if (this.type === TemplateType.Bottom) { | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = actualBounds.height + section.getBottomIndentHeight(document, page, false) - this.height; | ||
@@ -604,3 +601,3 @@ } | ||
case PdfDockStyle.Left: | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = 0; | ||
@@ -611,8 +608,8 @@ width = this.width; | ||
case PdfDockStyle.Top: | ||
x = -actualBounds.x; | ||
y = -actualBounds.y; | ||
x = this.convertSign(actualBounds.x); | ||
y = this.convertSign(actualBounds.y); | ||
width = actualSize.width; | ||
height = this.height; | ||
if (actualBounds.height < 0) { | ||
y = -actualBounds.y + actualSize.height; | ||
y = actualSize.height - actualBounds.y; | ||
} | ||
@@ -627,3 +624,3 @@ break; | ||
case PdfDockStyle.Bottom: | ||
x = -actualBounds.x; | ||
x = this.convertSign(actualBounds.x); | ||
y = actualBounds.height + section.getBottomIndentHeight(document, page, false) - this.height; | ||
@@ -646,4 +643,11 @@ width = actualSize.width; | ||
}; | ||
/** | ||
* Ignore value zero, otherwise convert sign. | ||
* @private | ||
*/ | ||
PdfPageTemplateElement.prototype.convertSign = function (value) { | ||
return (value !== 0 || (value === 0 && 1 / value === -Infinity)) ? -value : value; | ||
}; | ||
return PdfPageTemplateElement; | ||
}()); | ||
export { PdfPageTemplateElement }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13965323
130099
+ Added@syncfusion/ej2-compression@23.2.4(transitive)
+ Added@syncfusion/ej2-file-utils@23.2.4(transitive)
- Removed@syncfusion/ej2-compression@23.1.36(transitive)
- Removed@syncfusion/ej2-file-utils@23.1.36(transitive)