latex-editor-cli 1.0.3 → 1.0.5
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/build/assets/latex-editor/3rdpartylicenses.txt +1 -1
- package/build/assets/latex-editor/browser/assets/{pdf.sandbox-5.4.1100-es5.mjs → pdf.sandbox-5.4.1105-es5.mjs} +2 -2
- package/build/assets/latex-editor/browser/assets/{pdf.sandbox-5.4.1100.min.mjs → pdf.sandbox-5.4.1105.min.mjs} +2 -2
- package/build/assets/latex-editor/browser/assets/{pdf.sandbox-5.4.1100.mjs → pdf.sandbox-5.4.1105.mjs} +2 -2
- package/build/assets/latex-editor/browser/assets/{pdf.worker-5.4.1100-es5.mjs → pdf.worker-5.4.1105-es5.mjs} +3 -3
- package/build/assets/latex-editor/browser/assets/{pdf.worker-5.4.1100.min.mjs → pdf.worker-5.4.1105.min.mjs} +3 -3
- package/build/assets/latex-editor/browser/assets/{pdf.worker-5.4.1100.mjs → pdf.worker-5.4.1105.mjs} +3 -3
- package/build/assets/latex-editor/browser/assets/{viewer-5.4.1100-es5.mjs → viewer-5.4.1105-es5.mjs} +67 -23
- package/build/assets/latex-editor/browser/assets/{viewer-5.4.1100.min.mjs → viewer-5.4.1105.min.mjs} +6 -6
- package/build/assets/latex-editor/browser/assets/{viewer-5.4.1100.mjs → viewer-5.4.1105.mjs} +67 -23
- package/build/assets/latex-editor/browser/chunk-2BBESEDJ.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-B7GYZ4WX.js → chunk-2ZCHJ4LQ.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-3DHH7WFG.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-KF5TJCJQ.js → chunk-3L5YDNK2.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-24IUQ2MV.js → chunk-3VBJVVZR.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-73RY2KW2.js → chunk-3WGN6R25.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-ZB4JU7WT.js → chunk-4JVTVI62.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-4OZE3NHM.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-O5J3Y3L7.js → chunk-4TJF2OJ3.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-4EOYPKOI.js → chunk-5ZKXG644.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-MSK5WAZG.js → chunk-5ZNBLA4K.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-75YGEQNU.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-NYEB6TBF.js → chunk-7DUWD47N.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-EUTGOWIE.js → chunk-7JPAJBCT.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-5C7O7QP5.js → chunk-A5UBKE6S.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-GH6DFKRO.js → chunk-A6VQ25DP.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-PDJLBOI6.js → chunk-BJK5MXZB.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-BLSZXTO5.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-2UJWNOWC.js → chunk-BP3SRSQ3.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-CEGGG4MW.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-XZUSPHUJ.js → chunk-CQSL3W6Y.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-ADKYR6BA.js → chunk-CWVBUSYX.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-N5FPGLFW.js → chunk-DCD2SCCO.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-V6KHBBKF.js → chunk-DHNUBMSL.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-6WH3BGXL.js → chunk-DME26OOD.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-GT4NYD43.js → chunk-DUOOHP3I.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-EDQNL3ID.js +7 -0
- package/build/assets/latex-editor/browser/{chunk-QXQJJ2SD.js → chunk-EUXGLUDK.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-EXRJ6IRL.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-7Z3JRUB7.js → chunk-FGMHU37X.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-4NFTXFH2.js → chunk-FROMWQDU.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-5J43ASUN.js → chunk-FT7CTCDT.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-DFV4P2Z7.js → chunk-GE5FMQAQ.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-HOR7DQFB.js → chunk-GRTTJ5GJ.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-34FS6KBD.js → chunk-GVTSOCKY.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-GYEZIGOH.js +1 -0
- package/build/assets/latex-editor/browser/chunk-H7JNLLHN.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-4QKTIK2W.js → chunk-HQSFSBF5.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-HSCC6Y3Z.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-IKFXPDEW.js → chunk-ICCIAI24.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-IK2IBSL5.js +11 -0
- package/build/assets/latex-editor/browser/{chunk-JJMIO6OD.js → chunk-J4U6TH7A.js} +2 -2
- package/build/assets/latex-editor/browser/chunk-JJ7QO4SV.js +3 -0
- package/build/assets/latex-editor/browser/{chunk-FFA6CGT2.js → chunk-K3W5MMJ7.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-NCWAMEEV.js → chunk-KRJT56AR.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-UFRVRKMS.js → chunk-LDTXD65M.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-FDL5KDY4.js → chunk-LEP7GLKI.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-QNVQWVBM.js → chunk-LUL2L5CY.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-UNAE3JG5.js → chunk-NLN7CR4C.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-2KGEQVPR.js → chunk-NOHSGSFD.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-4UJYLC6N.js → chunk-OFFRTM2S.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-XE4VDS74.js → chunk-OOQTK2VG.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-PUGAIDR5.js → chunk-OWP637BC.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-VXEWKX7X.js → chunk-OXYZZ63H.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-W6LPZD42.js → chunk-PBEB2VID.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-3FBVUMZU.js → chunk-PMRT6UP4.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-LLLACJWD.js → chunk-PVRGLOUP.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-Q4UGQISN.css +1 -0
- package/build/assets/latex-editor/browser/{chunk-6P5DP5K6.js → chunk-QEWOJBZG.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-BPEIK6H6.js → chunk-QTIVPA7U.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-QUXXO5A5.js +903 -0
- package/build/assets/latex-editor/browser/chunk-RGFHHWZD.js +1 -0
- package/build/assets/latex-editor/browser/chunk-RGTUQKLR.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-HWUKL373.js → chunk-RHLYQPBS.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-AHNYK46F.js → chunk-RIXGD6IK.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-57KPLBLW.js → chunk-RJV5RT56.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-S33STG2E.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-7RMT4HBF.js → chunk-S7NLYCXK.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-SAHSYVOX.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-MBKEJNT2.js → chunk-SCZOPCFC.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-W3VUPDEC.js → chunk-SVWDBGWA.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-MR4LD2ZN.js → chunk-T442EELO.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-ZRYASBR7.js → chunk-TGDZBWKV.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-NA3JWVQB.js → chunk-TXJZTFBH.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-23ACGIAR.js → chunk-U46XB2WF.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-AN3EYM7M.js → chunk-UABAZMN7.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-D76E7THE.js → chunk-V7HZIPSW.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-W7KC2FSG.js → chunk-VBUNZTAW.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-I4CKQIH6.js → chunk-VHJLDT52.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-ZWVR77BX.js → chunk-VHX3IXUR.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-OI2ZOW6T.js → chunk-VXSAZON2.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-W3F43F3O.js +4 -0
- package/build/assets/latex-editor/browser/{chunk-OPGPIDJM.js → chunk-WHZGRWNO.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-3J7QQQJO.js → chunk-WNBI3SKA.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-PW5DVYYE.js → chunk-WTHB55QN.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-WUZUFPZZ.js → chunk-XKF5ZD3L.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-XSTB37VS.js +4 -0
- package/build/assets/latex-editor/browser/{chunk-6NWCKC4R.js → chunk-Y5BPXZ6A.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-5JE7RQ2F.js → chunk-YAEKPTII.js} +1 -1
- package/build/assets/latex-editor/browser/chunk-YF6DGJ2Q.js +1 -0
- package/build/assets/latex-editor/browser/{chunk-GRYERMJ2.js → chunk-YJS2ZNZG.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-BYJW4GAD.js → chunk-YO3IECDI.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-YYQ6WD2Z.js → chunk-ZRIQ255R.js} +1 -1
- package/build/assets/latex-editor/browser/{chunk-R7HOYRRP.js → chunk-ZWHUSKMI.js} +1 -1
- package/build/assets/latex-editor/browser/index.html +2 -2
- package/build/assets/latex-editor/browser/main-LQCCN2JL.js +7257 -0
- package/build/assets/latex-editor/browser/main-X4IUVA5T.css +1 -0
- package/build/assets/latex-editor/browser/{styles-LJVRSM5K.css → styles-QSPTKCPS.css} +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/assets/latex-editor/browser/chunk-4QRP66BG.js +0 -1
- package/build/assets/latex-editor/browser/chunk-7OIHM2XG.js +0 -1
- package/build/assets/latex-editor/browser/chunk-AT3DQ77V.js +0 -669
- package/build/assets/latex-editor/browser/chunk-BOZXEBYA.js +0 -4
- package/build/assets/latex-editor/browser/chunk-EJUJSVO6.js +0 -1
- package/build/assets/latex-editor/browser/chunk-GTO27H2I.js +0 -1
- package/build/assets/latex-editor/browser/chunk-HIAT2FCX.js +0 -1
- package/build/assets/latex-editor/browser/chunk-J55MCTV6.css +0 -1
- package/build/assets/latex-editor/browser/chunk-K4MSRLPF.js +0 -11
- package/build/assets/latex-editor/browser/chunk-KOWJO2XF.js +0 -10
- package/build/assets/latex-editor/browser/chunk-LGKHQWOM.js +0 -1
- package/build/assets/latex-editor/browser/chunk-MDRV3ZLQ.js +0 -3
- package/build/assets/latex-editor/browser/chunk-OMILAHGT.js +0 -1
- package/build/assets/latex-editor/browser/chunk-RJMSLSMR.js +0 -1
- package/build/assets/latex-editor/browser/chunk-S3KGWAJA.js +0 -1
- package/build/assets/latex-editor/browser/chunk-TAZDO5BO.js +0 -4
- package/build/assets/latex-editor/browser/chunk-VUTBKH5T.js +0 -1
- package/build/assets/latex-editor/browser/chunk-Y762CR37.js +0 -1
- package/build/assets/latex-editor/browser/chunk-YCCPGHOH.js +0 -1
- package/build/assets/latex-editor/browser/chunk-YIPPHTCK.js +0 -4
- package/build/assets/latex-editor/browser/main-DOH4MLTT.js +0 -7393
- package/build/assets/latex-editor/browser/main-IYK5LUY7.css +0 -1
package/build/assets/latex-editor/browser/assets/{pdf.worker-5.4.1100.mjs → pdf.worker-5.4.1105.mjs}
RENAMED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* pdfjsVersion = 5.4.
|
|
25
|
-
* pdfjsBuild =
|
|
24
|
+
* pdfjsVersion = 5.4.1105
|
|
25
|
+
* pdfjsBuild = 7496c25f6
|
|
26
26
|
*/
|
|
27
27
|
/******/ var __webpack_modules__ = ({
|
|
28
28
|
|
|
@@ -66660,7 +66660,7 @@ class WorkerMessageHandler {
|
|
|
66660
66660
|
docId,
|
|
66661
66661
|
apiVersion
|
|
66662
66662
|
} = docParams;
|
|
66663
|
-
const workerVersion = "5.4.
|
|
66663
|
+
const workerVersion = "5.4.1105";
|
|
66664
66664
|
if (apiVersion !== workerVersion) {
|
|
66665
66665
|
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
|
|
66666
66666
|
}
|
package/build/assets/latex-editor/browser/assets/{viewer-5.4.1100-es5.mjs → viewer-5.4.1105-es5.mjs}
RENAMED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* pdfjsVersion = 5.4.
|
|
25
|
-
* pdfjsBuild =
|
|
24
|
+
* pdfjsVersion = 5.4.1105
|
|
25
|
+
* pdfjsBuild = 7496c25f6
|
|
26
26
|
*/
|
|
27
27
|
/******/ var __webpack_modules__ = ({
|
|
28
28
|
|
|
@@ -10989,6 +10989,7 @@ class AnnotationEditorUIManager {
|
|
|
10989
10989
|
type: "moved",
|
|
10990
10990
|
page: newPageIndex + 1,
|
|
10991
10991
|
editorType: editor.constructor.name,
|
|
10992
|
+
id: editor.uid,
|
|
10992
10993
|
previousValue: {
|
|
10993
10994
|
x: savedX,
|
|
10994
10995
|
y: savedY,
|
|
@@ -12530,7 +12531,8 @@ class AnnotationEditor {
|
|
|
12530
12531
|
type: "commit",
|
|
12531
12532
|
page: this.pageIndex + 1,
|
|
12532
12533
|
editorType: this.constructor.name,
|
|
12533
|
-
value: this
|
|
12534
|
+
value: this,
|
|
12535
|
+
id: this.uid
|
|
12534
12536
|
});
|
|
12535
12537
|
}
|
|
12536
12538
|
addToAnnotationStorage() {
|
|
@@ -12605,6 +12607,7 @@ class AnnotationEditor {
|
|
|
12605
12607
|
source: this,
|
|
12606
12608
|
type: "moved",
|
|
12607
12609
|
page: this.pageIndex + 1,
|
|
12610
|
+
id: this.uid,
|
|
12608
12611
|
editorType: this.constructor.name,
|
|
12609
12612
|
value: {
|
|
12610
12613
|
x,
|
|
@@ -12730,6 +12733,7 @@ class AnnotationEditor {
|
|
|
12730
12733
|
source: this,
|
|
12731
12734
|
type: "altTextChanged",
|
|
12732
12735
|
page: this.pageIndex + 1,
|
|
12736
|
+
id: this.uid,
|
|
12733
12737
|
editorType: this.constructor.name,
|
|
12734
12738
|
value: editor_classPrivateFieldGet(editor_altText, this)
|
|
12735
12739
|
});
|
|
@@ -13210,6 +13214,7 @@ class AnnotationEditor {
|
|
|
13210
13214
|
source: this,
|
|
13211
13215
|
type: "removed",
|
|
13212
13216
|
page: this.pageIndex + 1,
|
|
13217
|
+
id: this.uid,
|
|
13213
13218
|
editorType: this.constructor.name,
|
|
13214
13219
|
value: this
|
|
13215
13220
|
});
|
|
@@ -13677,6 +13682,7 @@ function _addResizeToUndoStack() {
|
|
|
13677
13682
|
source: this,
|
|
13678
13683
|
type: "sizeChanged",
|
|
13679
13684
|
editorType: this.constructor.name,
|
|
13685
|
+
id: this.uid,
|
|
13680
13686
|
page: this.pageIndex + 1,
|
|
13681
13687
|
value: {
|
|
13682
13688
|
x: savedX,
|
|
@@ -22806,7 +22812,7 @@ function getDocument() {
|
|
|
22806
22812
|
}
|
|
22807
22813
|
const docParams = {
|
|
22808
22814
|
docId,
|
|
22809
|
-
apiVersion: "5.4.
|
|
22815
|
+
apiVersion: "5.4.1105",
|
|
22810
22816
|
data,
|
|
22811
22817
|
password,
|
|
22812
22818
|
disableAutoFetch,
|
|
@@ -24536,8 +24542,8 @@ class InternalRenderTask {
|
|
|
24536
24542
|
var _canvasInUse = {
|
|
24537
24543
|
_: new WeakSet()
|
|
24538
24544
|
};
|
|
24539
|
-
const version = "5.4.
|
|
24540
|
-
const build = "
|
|
24545
|
+
const version = "5.4.1105";
|
|
24546
|
+
const build = "7496c25f6";
|
|
24541
24547
|
|
|
24542
24548
|
;// ./src/display/editor/color_picker.js
|
|
24543
24549
|
var _ColorPicker;
|
|
@@ -28710,6 +28716,7 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
28710
28716
|
source: this,
|
|
28711
28717
|
type: "commit",
|
|
28712
28718
|
page: this.pageIndex + 1,
|
|
28719
|
+
id: this.uid,
|
|
28713
28720
|
value: newText,
|
|
28714
28721
|
previousValue: savedText
|
|
28715
28722
|
});
|
|
@@ -28964,6 +28971,8 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
28964
28971
|
}
|
|
28965
28972
|
serialize() {
|
|
28966
28973
|
let isForCopying = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
28974
|
+
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
28975
|
+
let includeId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
28967
28976
|
if (this.isEmpty()) {
|
|
28968
28977
|
return null;
|
|
28969
28978
|
}
|
|
@@ -28971,20 +28980,23 @@ class FreeTextEditor extends AnnotationEditor {
|
|
|
28971
28980
|
return this.serializeDeleted();
|
|
28972
28981
|
}
|
|
28973
28982
|
const color = AnnotationEditor._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : this.color);
|
|
28974
|
-
const serialized = Object.assign(super.serialize(isForCopying), {
|
|
28983
|
+
const serialized = Object.assign(super.serialize(isForCopying, context), {
|
|
28975
28984
|
color,
|
|
28976
28985
|
fontSize: freetext_classPrivateFieldGet(_fontSize, this),
|
|
28977
28986
|
value: freetext_assertClassBrand(_FreeTextEditor_brand, this, _serializeContent).call(this)
|
|
28978
28987
|
});
|
|
28979
28988
|
this.addComment(serialized);
|
|
28980
28989
|
if (isForCopying) {
|
|
28990
|
+
if (includeId) {
|
|
28991
|
+
serialized.id = this.uid;
|
|
28992
|
+
}
|
|
28981
28993
|
serialized.isCopy = true;
|
|
28982
28994
|
return serialized;
|
|
28983
28995
|
}
|
|
28984
28996
|
if (this.annotationElementId && !freetext_assertClassBrand(_FreeTextEditor_brand, this, _hasElementChanged).call(this, serialized)) {
|
|
28985
28997
|
return null;
|
|
28986
28998
|
}
|
|
28987
|
-
serialized.id = this.
|
|
28999
|
+
serialized.id = this.uid;
|
|
28988
29000
|
return serialized;
|
|
28989
29001
|
}
|
|
28990
29002
|
renderAnnotationElement(annotation) {
|
|
@@ -29038,6 +29050,7 @@ function _updateFontSize(fontSize) {
|
|
|
29038
29050
|
source: this,
|
|
29039
29051
|
type: "fontSizeChanged",
|
|
29040
29052
|
page: this.pageIndex + 1,
|
|
29053
|
+
id: this.uid,
|
|
29041
29054
|
editorType: this.constructor.name,
|
|
29042
29055
|
value: fontSize,
|
|
29043
29056
|
previousValue: freetext_classPrivateFieldGet(_fontSize, this)
|
|
@@ -29062,6 +29075,7 @@ function freetext_updateColor(color) {
|
|
|
29062
29075
|
source: this,
|
|
29063
29076
|
type: "colorChanged",
|
|
29064
29077
|
page: this.pageIndex + 1,
|
|
29078
|
+
id: this.uid,
|
|
29065
29079
|
editorType: this.constructor.name,
|
|
29066
29080
|
value: color,
|
|
29067
29081
|
previousValue: savedColor
|
|
@@ -30075,6 +30089,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
30075
30089
|
source: this,
|
|
30076
30090
|
type: "added",
|
|
30077
30091
|
page: this.pageIndex + 1,
|
|
30092
|
+
id: this.uid,
|
|
30078
30093
|
editorType: this.constructor.name,
|
|
30079
30094
|
value: {
|
|
30080
30095
|
color: this.color,
|
|
@@ -30608,14 +30623,16 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
30608
30623
|
}
|
|
30609
30624
|
serialize() {
|
|
30610
30625
|
let isForCopying = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
30611
|
-
|
|
30626
|
+
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
30627
|
+
let includeId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
30628
|
+
if (this.isEmpty() || isForCopying && !includeId) {
|
|
30612
30629
|
return null;
|
|
30613
30630
|
}
|
|
30614
30631
|
if (this.deleted) {
|
|
30615
30632
|
return this.serializeDeleted();
|
|
30616
30633
|
}
|
|
30617
30634
|
const color = AnnotationEditor._colorManager.convert(this._uiManager.getNonHCMColor(this.color));
|
|
30618
|
-
const serialized = super.serialize(isForCopying);
|
|
30635
|
+
const serialized = super.serialize(isForCopying, context);
|
|
30619
30636
|
Object.assign(serialized, {
|
|
30620
30637
|
color,
|
|
30621
30638
|
opacity: this.opacity,
|
|
@@ -30624,10 +30641,15 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
30624
30641
|
outlines: editor_highlight_assertClassBrand(_HighlightEditor_brand, this, _serializeOutlines).call(this, serialized.rect)
|
|
30625
30642
|
});
|
|
30626
30643
|
this.addComment(serialized);
|
|
30644
|
+
if (isForCopying && includeId) {
|
|
30645
|
+
serialized.id = this.uid;
|
|
30646
|
+
serialized.isCopy = true;
|
|
30647
|
+
return serialized;
|
|
30648
|
+
}
|
|
30627
30649
|
if (this.annotationElementId && !editor_highlight_assertClassBrand(_HighlightEditor_brand, this, highlight_hasElementChanged).call(this, serialized)) {
|
|
30628
30650
|
return null;
|
|
30629
30651
|
}
|
|
30630
|
-
serialized.id = this.
|
|
30652
|
+
serialized.id = this.uid;
|
|
30631
30653
|
return serialized;
|
|
30632
30654
|
}
|
|
30633
30655
|
renderAnnotationElement(annotation) {
|
|
@@ -30771,6 +30793,7 @@ function highlight_updateColor(color) {
|
|
|
30771
30793
|
source: this,
|
|
30772
30794
|
type: "colorChanged",
|
|
30773
30795
|
page: this.pageIndex + 1,
|
|
30796
|
+
id: this.uid,
|
|
30774
30797
|
editorType: this.constructor.name,
|
|
30775
30798
|
value: color,
|
|
30776
30799
|
previousValue: savedColor
|
|
@@ -30799,6 +30822,7 @@ function _updateThickness(thickness) {
|
|
|
30799
30822
|
source: this,
|
|
30800
30823
|
type: "thicknessChanged",
|
|
30801
30824
|
page: this.pageIndex + 1,
|
|
30825
|
+
id: this.uid,
|
|
30802
30826
|
editorType: this.constructor.name,
|
|
30803
30827
|
value: thickness,
|
|
30804
30828
|
previousValue: savedThickness
|
|
@@ -31116,7 +31140,8 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
31116
31140
|
type: "colorChanged",
|
|
31117
31141
|
page: this.pageIndex + 1,
|
|
31118
31142
|
editorType: this.constructor.name,
|
|
31119
|
-
value
|
|
31143
|
+
value,
|
|
31144
|
+
id: this.uid
|
|
31120
31145
|
});
|
|
31121
31146
|
} else if (name === "stroke-width") {
|
|
31122
31147
|
this.eventBus?.dispatch("annotation-editor-event", {
|
|
@@ -31124,7 +31149,8 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
31124
31149
|
type: "thicknessChanged",
|
|
31125
31150
|
page: this.pageIndex + 1,
|
|
31126
31151
|
editorType: this.constructor.name,
|
|
31127
|
-
value
|
|
31152
|
+
value,
|
|
31153
|
+
id: this.uid
|
|
31128
31154
|
});
|
|
31129
31155
|
} else if (name === "stroke-opacity") {
|
|
31130
31156
|
this.eventBus?.dispatch("annotation-editor-event", {
|
|
@@ -31132,7 +31158,8 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
31132
31158
|
type: "opacityChanged",
|
|
31133
31159
|
page: this.pageIndex + 1,
|
|
31134
31160
|
editorType: this.constructor.name,
|
|
31135
|
-
value
|
|
31161
|
+
value,
|
|
31162
|
+
id: this.uid
|
|
31136
31163
|
});
|
|
31137
31164
|
}
|
|
31138
31165
|
if (type === this.colorType) {
|
|
@@ -31428,7 +31455,8 @@ class DrawingEditor extends AnnotationEditor {
|
|
|
31428
31455
|
source: this,
|
|
31429
31456
|
type: "bezierPathChanged",
|
|
31430
31457
|
page: this._currentParent ? this._currentParent.pageIndex + 1 : NaN,
|
|
31431
|
-
editorType: this.name
|
|
31458
|
+
editorType: this.name,
|
|
31459
|
+
id: this.uid
|
|
31432
31460
|
});
|
|
31433
31461
|
if (this.supportMultipleDrawings) {
|
|
31434
31462
|
const draw = _currentDraw._;
|
|
@@ -32574,6 +32602,8 @@ class InkEditor extends DrawingEditor {
|
|
|
32574
32602
|
}
|
|
32575
32603
|
serialize() {
|
|
32576
32604
|
let isForCopying = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
32605
|
+
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
32606
|
+
let includeId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
32577
32607
|
if (this.isEmpty()) {
|
|
32578
32608
|
return null;
|
|
32579
32609
|
}
|
|
@@ -32591,7 +32621,7 @@ class InkEditor extends DrawingEditor {
|
|
|
32591
32621
|
"stroke-width": thickness
|
|
32592
32622
|
}
|
|
32593
32623
|
} = this;
|
|
32594
|
-
const serialized = Object.assign(super.serialize(isForCopying), {
|
|
32624
|
+
const serialized = Object.assign(super.serialize(isForCopying, context), {
|
|
32595
32625
|
color: AnnotationEditor._colorManager.convert(stroke),
|
|
32596
32626
|
opacity,
|
|
32597
32627
|
thickness,
|
|
@@ -32602,13 +32632,16 @@ class InkEditor extends DrawingEditor {
|
|
|
32602
32632
|
});
|
|
32603
32633
|
this.addComment(serialized);
|
|
32604
32634
|
if (isForCopying) {
|
|
32635
|
+
if (includeId) {
|
|
32636
|
+
serialized.id = this.uid;
|
|
32637
|
+
}
|
|
32605
32638
|
serialized.isCopy = true;
|
|
32606
32639
|
return serialized;
|
|
32607
32640
|
}
|
|
32608
32641
|
if (this.annotationElementId && !ink_assertClassBrand(_InkEditor_brand, this, ink_hasElementChanged).call(this, serialized)) {
|
|
32609
32642
|
return null;
|
|
32610
32643
|
}
|
|
32611
|
-
serialized.id = this.
|
|
32644
|
+
serialized.id = this.uid;
|
|
32612
32645
|
return serialized;
|
|
32613
32646
|
}
|
|
32614
32647
|
renderAnnotationElement(annotation) {
|
|
@@ -33631,6 +33664,8 @@ class SignatureEditor extends DrawingEditor {
|
|
|
33631
33664
|
}
|
|
33632
33665
|
serialize() {
|
|
33633
33666
|
let isForCopying = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
33667
|
+
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
33668
|
+
let includeId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
33634
33669
|
if (this.isEmpty()) {
|
|
33635
33670
|
return null;
|
|
33636
33671
|
}
|
|
@@ -33643,7 +33678,7 @@ class SignatureEditor extends DrawingEditor {
|
|
|
33643
33678
|
"stroke-width": thickness
|
|
33644
33679
|
}
|
|
33645
33680
|
} = this;
|
|
33646
|
-
const serialized = Object.assign(super.serialize(isForCopying), {
|
|
33681
|
+
const serialized = Object.assign(super.serialize(isForCopying, context), {
|
|
33647
33682
|
isSignature: true,
|
|
33648
33683
|
areContours: signature_classPrivateFieldGet(_isExtracted, this),
|
|
33649
33684
|
color: [0, 0, 0],
|
|
@@ -33659,6 +33694,9 @@ class SignatureEditor extends DrawingEditor {
|
|
|
33659
33694
|
serialized.isCopy = true;
|
|
33660
33695
|
} else {
|
|
33661
33696
|
serialized.lines = lines;
|
|
33697
|
+
if (includeId) {
|
|
33698
|
+
serialized.id = this.uid;
|
|
33699
|
+
}
|
|
33662
33700
|
}
|
|
33663
33701
|
if (signature_classPrivateFieldGet(_description, this)) {
|
|
33664
33702
|
serialized.accessibilityData = {
|
|
@@ -34105,13 +34143,14 @@ class StampEditor extends AnnotationEditor {
|
|
|
34105
34143
|
serialize() {
|
|
34106
34144
|
let isForCopying = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
34107
34145
|
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
34146
|
+
let includeId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
34108
34147
|
if (this.isEmpty()) {
|
|
34109
34148
|
return null;
|
|
34110
34149
|
}
|
|
34111
34150
|
if (this.deleted) {
|
|
34112
34151
|
return this.serializeDeleted();
|
|
34113
34152
|
}
|
|
34114
|
-
const serialized = Object.assign(super.serialize(isForCopying), {
|
|
34153
|
+
const serialized = Object.assign(super.serialize(isForCopying, context), {
|
|
34115
34154
|
bitmapId: stamp_classPrivateFieldGet(_bitmapId, this),
|
|
34116
34155
|
isSvg: stamp_classPrivateFieldGet(_isSvg, this)
|
|
34117
34156
|
});
|
|
@@ -34119,6 +34158,9 @@ class StampEditor extends AnnotationEditor {
|
|
|
34119
34158
|
if (isForCopying) {
|
|
34120
34159
|
serialized.bitmapUrl = stamp_assertClassBrand(_StampEditor_brand, this, _serializeBitmap).call(this, true);
|
|
34121
34160
|
serialized.accessibilityData = this.serializeAltText(true);
|
|
34161
|
+
if (includeId) {
|
|
34162
|
+
serialized.id = this.uid;
|
|
34163
|
+
}
|
|
34122
34164
|
serialized.isCopy = true;
|
|
34123
34165
|
return serialized;
|
|
34124
34166
|
}
|
|
@@ -34142,7 +34184,7 @@ class StampEditor extends AnnotationEditor {
|
|
|
34142
34184
|
} else {
|
|
34143
34185
|
serialized.accessibilityData.structParent = this._initialData.structParent ?? -1;
|
|
34144
34186
|
}
|
|
34145
|
-
serialized.id = this.
|
|
34187
|
+
serialized.id = this.uid;
|
|
34146
34188
|
delete serialized.bitmapId;
|
|
34147
34189
|
return serialized;
|
|
34148
34190
|
}
|
|
@@ -34320,6 +34362,7 @@ function _createCanvas() {
|
|
|
34320
34362
|
source: this,
|
|
34321
34363
|
type: "imageAdded",
|
|
34322
34364
|
page: this.pageIndex + 1,
|
|
34365
|
+
id: this.uid,
|
|
34323
34366
|
editorType: this.constructor.name,
|
|
34324
34367
|
value: canvas,
|
|
34325
34368
|
width,
|
|
@@ -36493,7 +36536,7 @@ class SimpleLinkService extends PDFLinkService {
|
|
|
36493
36536
|
}
|
|
36494
36537
|
|
|
36495
36538
|
;// ./web/ngx-extended-pdf-viewer-version.js
|
|
36496
|
-
const ngxExtendedPdfViewerVersion = '25.6.
|
|
36539
|
+
const ngxExtendedPdfViewerVersion = '25.6.4';
|
|
36497
36540
|
;// ./web/event_utils.js
|
|
36498
36541
|
function event_utils_classPrivateFieldSet(s, a, r) { return s.set(event_utils_assertClassBrand(s, a), r), r; }
|
|
36499
36542
|
function event_utils_classPrivateFieldInitSpec(e, t, a) { event_utils_checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -51647,7 +51690,7 @@ class PDFViewer {
|
|
|
51647
51690
|
pdf_viewer_classPrivateFieldInitSpec(this, _maxZoom, MAX_SCALE);
|
|
51648
51691
|
pdf_viewer_classPrivateFieldInitSpec(this, _minZoom, MIN_SCALE);
|
|
51649
51692
|
pdf_viewer_classPrivateFieldInitSpec(this, pdf_viewer_viewerAlert, null);
|
|
51650
|
-
const viewerVersion = "5.4.
|
|
51693
|
+
const viewerVersion = "5.4.1105";
|
|
51651
51694
|
if (version !== viewerVersion) {
|
|
51652
51695
|
throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);
|
|
51653
51696
|
}
|
|
@@ -53155,7 +53198,7 @@ class PDFViewer {
|
|
|
53155
53198
|
const annotations = [];
|
|
53156
53199
|
for (const [key, annotation] of annotationStorage) {
|
|
53157
53200
|
if (annotation && typeof annotation.serialize === "function") {
|
|
53158
|
-
const serialized = annotation.serialize(true);
|
|
53201
|
+
const serialized = annotation.serialize(true, null, true);
|
|
53159
53202
|
if (serialized && serialized.annotationType !== undefined) {
|
|
53160
53203
|
annotations.push(serialized);
|
|
53161
53204
|
}
|
|
@@ -56751,6 +56794,7 @@ const PDFViewerApplication = {
|
|
|
56751
56794
|
annotationStorage.onResetModified = () => {
|
|
56752
56795
|
window.removeEventListener("beforeunload", beforeUnload);
|
|
56753
56796
|
delete this._annotationStorageModified;
|
|
56797
|
+
this._initialAnnotationValues = null;
|
|
56754
56798
|
};
|
|
56755
56799
|
annotationStorage.onAnnotationEditor = typeStr => {
|
|
56756
56800
|
this._hasAnnotationEditors = !!typeStr;
|