@syncfusion/ej2-pdf-export
Advanced tools
Comparing version 24.1.41 to 24.1.47
@@ -7,2 +7,10 @@ # Changelog | ||
#### Features | ||
- Added rounded rectangle drawing support in PDF graphics. | ||
## 24.1.41 (2023-12-18) | ||
### Pdf Export | ||
#### Bug Fixes | ||
@@ -9,0 +17,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 24.1.41 | ||
* version : 24.1.47 | ||
* 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@24.1.1", | ||
"_id": "@syncfusion/ej2-pdf-export@24.1.41", | ||
"_inBundle": false, | ||
"_integrity": "sha512-KQfl/Tro32JLbE459/DugsvWfwNSDKwv1h009Zzd7VXKkOHUE+8931GvO5f4+xv3YhdSryJxDQn9IWbuFo8urg==", | ||
"_integrity": "sha512-YsAAeoPkjS3iSmJVRxLQiYS9xzJagRTI9ulGPI8UbZW2vT8hI1tMJoTe0rBeXefgUC0xeFtLyORFhoDo5AyJaw==", | ||
"_location": "/@syncfusion/ej2-pdf-export", | ||
@@ -30,4 +30,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.1.tgz", | ||
"_shasum": "7b39165b57c0d82fad694d90a2a7161f0d516be0", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.41.tgz", | ||
"_shasum": "6f89d34b77b8bb688c6d71f9463d156454657aee", | ||
"_spec": "@syncfusion/ej2-pdf-export@*", | ||
@@ -51,5 +51,5 @@ "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included", | ||
"typings": "index.d.ts", | ||
"version": "24.1.41", | ||
"version": "24.1.47", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -303,2 +303,4 @@ /** | ||
private startCutIndex; | ||
private _pathPoints; | ||
private _pathTypes; | ||
/** | ||
@@ -533,2 +535,34 @@ * Returns the `result` after drawing string. | ||
/** | ||
* Draw rounded rectangle specified by a brush, pen, coordinate pair, a width, a height and a radius. | ||
* ```typescript | ||
* // Create a new PDF document. | ||
* let document : PdfDocument = new PdfDocument(); | ||
* // Create a new page | ||
* let page : PdfPage = document.pages.add(); | ||
* // Create brush for draw rectangle | ||
* let brush : PdfSolidBrush = new PdfSolidBrush(new PdfColor(238, 130, 238)); | ||
* // Create a new PDF pen | ||
* let pen: PdfPen = new PdfPen(new PdfColor(255, 0, 0), 1); | ||
* // Draw rounded rectangle | ||
* page.graphics.drawRoundedRectangle(pen, brush, 20, 20, 100, 50, 5); | ||
* // save the document | ||
* document.save('output.pdf'); | ||
* // destroy the document | ||
* document.destroy(); | ||
* ``` | ||
* @param pen Stoke color of the rectangle. | ||
* @param brush Fill color of the rectangle. | ||
* @param x The x-coordinate of the upper-left corner of the rectangle to draw. | ||
* @param y The y-coordinate of the upper-left corner of the rectangle to draw. | ||
* @param width Width of the rectangle to draw. | ||
* @param height Height of the rectangle to draw. | ||
* @param radius Radius of the arcs to draw. | ||
*/ | ||
drawRoundedRectangle(pen: PdfPen, brush: PdfBrush, x: number, y: number, width: number, height: number, radius: number): void; | ||
private _addArc; | ||
private _addArcPoints; | ||
private _getLastPoint; | ||
private _addPoint; | ||
private _getBezierArcPoints; | ||
/** | ||
* `Draws the path`. | ||
@@ -989,2 +1023,3 @@ * @private | ||
drawPath(pen: PdfPen, brush: PdfBrush, path: PdfPath): void; | ||
private _drawPath; | ||
/** | ||
@@ -991,0 +1026,0 @@ * `Draws the specified arc`, using its original physical size, at the location specified by a coordinate pair. |
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
Sorry, the diff of this file is too big to display
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
14039986
373
130552