@syncfusion/ej2-pdf 23.2.4 → 23.2.6
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/CHANGELOG.md +8 -0
- package/dist/ej2-pdf.umd.min.js +2 -2
- package/dist/ej2-pdf.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf.es2015.js +13 -0
- package/dist/es6/ej2-pdf.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf.es5.js +13 -0
- package/dist/es6/ej2-pdf.es5.js.map +1 -1
- package/dist/global/ej2-pdf.min.js +2 -2
- package/dist/global/ej2-pdf.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/pdf/core/annotations/annotation-collection.d.ts +1 -0
- package/src/pdf/core/annotations/annotation-collection.js +13 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.2.
|
|
3
|
+
* version : 23.2.6
|
|
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@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-pdf@23.
|
|
3
|
+
"_id": "@syncfusion/ej2-pdf@23.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-s074EOizxXQmqWsbCofpCxc1vyp/hn+HwkpauJupl7bfbZTqGye8Z7XhTES1ro6XgW//naBrAnXtCJJ6LQF+iA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-pdf",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
22
|
"/@syncfusion/ej2-pdfviewer"
|
|
23
23
|
],
|
|
24
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf/-/ej2-pdf-23.
|
|
25
|
-
"_shasum": "
|
|
24
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf/-/ej2-pdf-23.2.4.tgz",
|
|
25
|
+
"_shasum": "aee4ed26dea7fdff2cd434724b143c5f8bd968f3",
|
|
26
26
|
"_spec": "@syncfusion/ej2-pdf@*",
|
|
27
27
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
28
28
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"bundleDependencies": false,
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@syncfusion/ej2-base": "~23.2.
|
|
33
|
+
"@syncfusion/ej2-base": "~23.2.6",
|
|
34
34
|
"@syncfusion/ej2-compression": "~23.2.4"
|
|
35
35
|
},
|
|
36
36
|
"deprecated": false,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/pdf"
|
|
56
56
|
},
|
|
57
57
|
"typings": "index.d.ts",
|
|
58
|
-
"version": "23.2.
|
|
58
|
+
"version": "23.2.6",
|
|
59
59
|
"sideEffects": false,
|
|
60
60
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
61
61
|
}
|
|
@@ -130,6 +130,7 @@ export declare class PdfAnnotationCollection {
|
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
132
132
|
removeAt(index: number): void;
|
|
133
|
+
_reorderParsedAnnotations(index: number): void;
|
|
133
134
|
_updateCustomAppearanceResource(annotation: PdfAnnotation): void;
|
|
134
135
|
_addCommentsAndReview(annotation: PdfComment, flag: number): void;
|
|
135
136
|
_updateChildReference(annotation: PdfComment, collection: PdfPopupAnnotationCollection, flag: number): void;
|
|
@@ -217,6 +217,7 @@ var PdfAnnotationCollection = /** @class */ (function () {
|
|
|
217
217
|
}
|
|
218
218
|
if (this._parsedAnnotations.has(index)) {
|
|
219
219
|
this._parsedAnnotations.delete(index);
|
|
220
|
+
this._reorderParsedAnnotations(index);
|
|
220
221
|
}
|
|
221
222
|
var crossReference = this._page._crossReference;
|
|
222
223
|
if (crossReference && crossReference._cacheMap.has(reference)) {
|
|
@@ -224,6 +225,18 @@ var PdfAnnotationCollection = /** @class */ (function () {
|
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
};
|
|
228
|
+
PdfAnnotationCollection.prototype._reorderParsedAnnotations = function (index) {
|
|
229
|
+
var result = new Map();
|
|
230
|
+
this._parsedAnnotations.forEach(function (value, key) {
|
|
231
|
+
if (key > index) {
|
|
232
|
+
result.set(key - 1, value);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
result.set(key, value);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
this._parsedAnnotations = result;
|
|
239
|
+
};
|
|
227
240
|
PdfAnnotationCollection.prototype._updateCustomAppearanceResource = function (annotation) {
|
|
228
241
|
if (annotation instanceof PdfRubberStampAnnotation && typeof annotation._appearance !== 'undefined') {
|
|
229
242
|
annotation._appearance.normal.graphics._processResources(annotation._crossReference);
|