@paodingai/mesh-dsh-plugin 0.0.0-stage → 0.2.4-rc.1
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/README.md +50 -2
- package/cordis.patch.yml +12 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/preview.zh.svg +34 -0
- package/icon.svg +9 -0
- package/lib/assets/lattice-preview-sdk/style.css +1 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Add-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Add-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/B5pc-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/B5pc-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS1-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS1-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS2-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/CNS2-V.bcmap +3 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETHK-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETHK-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETen-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETen-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETenms-B5-H.bcmap +3 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/ETenms-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Ext-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Ext-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GB-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GB-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GB-H.bcmap +4 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GB-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBK-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBK-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBK2K-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBK2K-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBT-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBT-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBT-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBT-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKdla-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKdla-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKm314-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKm314-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKm471-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKm471-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKscs-B5-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/HKscs-B5-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Hankaku.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Hiragana.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-Johab-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-Johab-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Katakana.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/LICENSE +36 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/NWP-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/NWP-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/RKSJ-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/RKSJ-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/Roman.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/V.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/cmaps/WP-Symbol.bcmap +0 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ach/viewer.ftl +212 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/af/viewer.ftl +191 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/an/viewer.ftl +244 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ar/viewer.ftl +627 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ast/viewer.ftl +191 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/az/viewer.ftl +244 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/be/viewer.ftl +656 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/bg/viewer.ftl +414 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/bn/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/bo/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/br/viewer.ftl +345 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/brx/viewer.ftl +205 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/bs/viewer.ftl +640 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ca/viewer.ftl +289 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/cak/viewer.ftl +287 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ckb/viewer.ftl +229 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/cs/viewer.ftl +659 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/cy/viewer.ftl +665 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/da/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/de/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/dsb/viewer.ftl +659 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/el/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/en-CA/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/en-GB/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/en-US/viewer.ftl +692 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/eo/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/es-AR/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/es-CL/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/es-ES/viewer.ftl +615 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/es-MX/viewer.ftl +574 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/et/viewer.ftl +262 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/eu/viewer.ftl +619 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/fa/viewer.ftl +341 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ff/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/fi/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/fr/viewer.ftl +649 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/fur/viewer.ftl +615 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/fy-NL/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ga-IE/viewer.ftl +192 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/gd/viewer.ftl +289 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/gl/viewer.ftl +623 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/gn/viewer.ftl +652 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/gu-IN/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/he/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hi-IN/viewer.ftl +237 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hr/viewer.ftl +618 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hsb/viewer.ftl +659 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hu/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hy-AM/viewer.ftl +265 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/hye/viewer.ftl +258 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ia/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/id/viewer.ftl +603 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/is/viewer.ftl +597 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/it/viewer.ftl +654 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ja/viewer.ftl +611 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ka/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/kab/viewer.ftl +600 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/kk/viewer.ftl +611 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/km/viewer.ftl +210 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/kn/viewer.ftl +192 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ko/viewer.ftl +641 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/lij/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/lo/viewer.ftl +289 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/locale.json +1 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/lt/viewer.ftl +258 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ltg/viewer.ftl +233 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/lv/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/meh/viewer.ftl +62 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/mk/viewer.ftl +202 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ml/viewer.ftl +521 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/mr/viewer.ftl +226 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ms/viewer.ftl +234 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/my/viewer.ftl +185 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/nb-NO/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ne-NP/viewer.ftl +213 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/nl/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/nn-NO/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/oc/viewer.ftl +405 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/pa-IN/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/pl/viewer.ftl +656 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/pt-BR/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/pt-PT/viewer.ftl +615 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/rm/viewer.ftl +615 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ro/viewer.ftl +656 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ru/viewer.ftl +656 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sat/viewer.ftl +301 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sc/viewer.ftl +356 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/scn/viewer.ftl +32 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sco/viewer.ftl +254 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/si/viewer.ftl +250 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sk/viewer.ftl +659 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/skr/viewer.ftl +497 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sl/viewer.ftl +629 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/son/viewer.ftl +185 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sq/viewer.ftl +606 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sr/viewer.ftl +418 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/sv-SE/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/szl/viewer.ftl +244 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ta/viewer.ftl +210 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/te/viewer.ftl +229 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/tg/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/th/viewer.ftl +603 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/tl/viewer.ftl +244 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/tr/viewer.ftl +653 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/trs/viewer.ftl +175 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/uk/viewer.ftl +618 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/ur/viewer.ftl +238 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/uz/viewer.ftl +166 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/vi/viewer.ftl +641 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/wo/viewer.ftl +100 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/xh/viewer.ftl +191 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/zh-CN/viewer.ftl +641 -0
- package/lib/assets/pdf-document-viewer/assets/pdf.js/locale/zh-TW/viewer.ftl +641 -0
- package/lib/assets/pdf-document-viewer/assets/pdflux.wasm +0 -0
- package/lib/assets/pdf-document-viewer/assets/words.txt +135798 -0
- package/lib/assets/pdf-document-viewer/extensions/Chronicle.js +1075 -0
- package/lib/assets/pdf-document-viewer/extensions/CollabService.js +19623 -0
- package/lib/assets/pdf-document-viewer/extensions/FocusAnnotationExtension.js +89 -0
- package/lib/assets/pdf-document-viewer/extensions/NERExtension.css +1 -0
- package/lib/assets/pdf-document-viewer/extensions/NERExtension.js +136 -0
- package/lib/assets/pdf-document-viewer/extensions/PopupListExtension.js +893 -0
- package/lib/assets/pdf-document-viewer/extensions/SelectOcrTextService.js +580 -0
- package/lib/assets/pdf-document-viewer/extensions/SelectTextService.js +345 -0
- package/lib/assets/pdf-document-viewer/extensions/ShowStyleInfo.js +239 -0
- package/lib/assets/pdf-document-viewer/extensions/TextDiff.css +1 -0
- package/lib/assets/pdf-document-viewer/extensions/TextDiff.js +15396 -0
- package/lib/assets/pdf-document-viewer/image-viewer.es.js +65682 -0
- package/lib/assets/pdf-document-viewer/image-viewer.umd.js +2708 -0
- package/lib/assets/pdf-document-viewer/plugin/copy.js +38 -0
- package/lib/assets/pdf-document-viewer/plugin/index.js +9 -0
- package/lib/assets/pdf-document-viewer/plugin/vite.copy.js +21 -0
- package/lib/assets/pdf-document-viewer/plugin/webpack.copy.js +16 -0
- package/lib/assets/pdf-document-viewer/style.css +1 -0
- package/lib/assets/pdf-document-viewer/types/Search.d.ts +66 -0
- package/lib/assets/pdf-document-viewer/types/cache-database.d.ts +8 -0
- package/lib/assets/pdf-document-viewer/types/cache-service.d.ts +25 -0
- package/lib/assets/pdf-document-viewer/types/extensions/CollabService.d.ts +45 -0
- package/lib/assets/pdf-document-viewer/types/extensions/FocusAnnotationExtension.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/extensions/PopupListExtension.d.ts +31 -0
- package/lib/assets/pdf-document-viewer/types/extensions/SelectOcrTextService.d.ts +98 -0
- package/lib/assets/pdf-document-viewer/types/extensions/SelectTextService.d.ts +81 -0
- package/lib/assets/pdf-document-viewer/types/extensions/TextDiff/EditedTextListRender.d.ts +28 -0
- package/lib/assets/pdf-document-viewer/types/extensions/TextDiff/TextDiffAnnotElementHelper.d.ts +74 -0
- package/lib/assets/pdf-document-viewer/types/extensions/TextDiff/TextDiffAnnotationRender.d.ts +76 -0
- package/lib/assets/pdf-document-viewer/types/extensions/TextDiff/TextDiffUIService.d.ts +37 -0
- package/lib/assets/pdf-document-viewer/types/extensions/TextDiff/index.d.ts +30 -0
- package/lib/assets/pdf-document-viewer/types/i18n/index.d.ts +26 -0
- package/lib/assets/pdf-document-viewer/types/main.d.ts +10 -0
- package/lib/assets/pdf-document-viewer/types/module/display/AnnotationElementFactory.d.ts +4 -0
- package/lib/assets/pdf-document-viewer/types/module/display/AnnotationManager.d.ts +67 -0
- package/lib/assets/pdf-document-viewer/types/module/display/PDFiumDocumentProxy.d.ts +12 -0
- package/lib/assets/pdf-document-viewer/types/module/display/PDFiumPageProxy.d.ts +82 -0
- package/lib/assets/pdf-document-viewer/types/module/display/Prefetch.d.ts +26 -0
- package/lib/assets/pdf-document-viewer/types/module/display/WorkerTransport.d.ts +67 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/BaseData.d.ts +30 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/DataFactory.d.ts +21 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/HighlightData.d.ts +17 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/InkData.d.ts +16 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/LineData.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/PolygonData.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/PolylineData.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/PopupData.d.ts +10 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/StrikeOutData.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/TextData.d.ts +12 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/TextDiffData.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-data-factory/UnderlineData.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/AnnotationElement.d.ts +266 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/HighlightAnnotationElement.d.ts +16 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/InkAnnotationElement.d.ts +12 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/LineAnnotationElement.d.ts +17 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/LinkAnnotationElement.d.ts +13 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/PolygonAnnotationElement.d.ts +14 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/PolylineAnnotationElement.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/PopupAnnotationElement.d.ts +45 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/ResizeAbility.d.ts +35 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/SelectTextAnnotationElement.d.ts +60 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/SquareAnnotationElement.d.ts +20 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/StampAnnotationElement.d.ts +9 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/StrikeOutAnnotationElement.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/TableAnnotationElement.d.ts +86 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/TextAnnotationElement.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/TextDiffAnnotationElement.d.ts +23 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/UnderlineAnnotationElement.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/ctrl-components/AnnotationControlHandler.d.ts +3 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/ctrl-components/ControlBar.d.ts +42 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/ctrl-components/ControlItem.d.ts +19 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/table-components/Line.d.ts +59 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/table-components/LineContainer.d.ts +46 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-elements/table-components/TableCell.d.ts +70 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-related-item/AnnotRelatedItem.d.ts +181 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-related-item/PopupAnnotRelatedItem.d.ts +22 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation-related-item/TextDiffAnnotRelatedItem.d.ts +139 -0
- package/lib/assets/pdf-document-viewer/types/module/display/annotation_layer.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/annotation_editor_layer.d.ts +138 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/editor-utils.d.ts +4 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/editor.d.ts +307 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/highlight.d.ts +102 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/ink.d.ts +46 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/line.d.ts +45 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/link.d.ts +20 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/polygon.d.ts +27 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/polyline.d.ts +64 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/popup.d.ts +30 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/resizeService.d.ts +26 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/square.d.ts +49 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/strikeout.d.ts +29 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/table.d.ts +171 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/text.d.ts +44 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/textdiff.d.ts +26 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/tools.d.ts +133 -0
- package/lib/assets/pdf-document-viewer/types/module/display/editor/underline.d.ts +30 -0
- package/lib/assets/pdf-document-viewer/types/module/display/selection.d.ts +59 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/HighlightWidget.d.ts +33 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/InkWidget.d.ts +45 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/LineWidget.d.ts +34 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/LinkWidget.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/NoteWidget.d.ts +14 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/PolygonWidget.d.ts +21 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/PolylineWidget.d.ts +39 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/SelectTextWidget.d.ts +66 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/SquareWidget.d.ts +32 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/StampWidget.d.ts +6 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/StrikeOutWidget.d.ts +22 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/TableWidget.d.ts +82 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/UnderlineWidget.d.ts +22 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/Widget.d.ts +110 -0
- package/lib/assets/pdf-document-viewer/types/module/display/widgets/index.d.ts +13 -0
- package/lib/assets/pdf-document-viewer/types/module/view/AnnotationHandlers/BaseAnnotationHandler.d.ts +99 -0
- package/lib/assets/pdf-document-viewer/types/module/view/AnnotationHandlers/PolylineAndPolygonHandler.d.ts +10 -0
- package/lib/assets/pdf-document-viewer/types/module/view/AnnotationHandlers/SelectTextHandler.d.ts +60 -0
- package/lib/assets/pdf-document-viewer/types/module/view/AnnotationHandlers/TextDiffHandler.d.ts +16 -0
- package/lib/assets/pdf-document-viewer/types/module/view/DocumentViewer.d.ts +518 -0
- package/lib/assets/pdf-document-viewer/types/module/view/PDFViewer.d.ts +21 -0
- package/lib/assets/pdf-document-viewer/types/module/view/PageImageCache.d.ts +9 -0
- package/lib/assets/pdf-document-viewer/types/module/view/ToolbarControl.d.ts +44 -0
- package/lib/assets/pdf-document-viewer/types/module/view/UIManager.d.ts +66 -0
- package/lib/assets/pdf-document-viewer/types/module/view/annotation_editor_layer_builder.d.ts +19 -0
- package/lib/assets/pdf-document-viewer/types/module/view/annotation_layer_builder.d.ts +6 -0
- package/lib/assets/pdf-document-viewer/types/module/view/custom-scroll.d.ts +21 -0
- package/lib/assets/pdf-document-viewer/types/module/view/features.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/module/view/sidebar-manager/index.d.ts +27 -0
- package/lib/assets/pdf-document-viewer/types/module/view/widget-manager/index.d.ts +14 -0
- package/lib/assets/pdf-document-viewer/types/module/view/widget-manager/widgets/TextEditBoxWidget.d.ts +32 -0
- package/lib/assets/pdf-document-viewer/types/module/widgets/WidgetMenu.d.ts +23 -0
- package/lib/assets/pdf-document-viewer/types/sdk/documents-manager/DataStore.d.ts +15 -0
- package/lib/assets/pdf-document-viewer/types/sdk/documents-manager/components/PdfViewerContainer.d.ts +83 -0
- package/lib/assets/pdf-document-viewer/types/sdk/documents-manager/util.d.ts +5 -0
- package/lib/assets/pdf-document-viewer/types/sdk/relation-line/Point.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/sdk/relation-line/RelationLine.d.ts +36 -0
- package/lib/assets/pdf-document-viewer/types/shared/EventBus.d.ts +39 -0
- package/lib/assets/pdf-document-viewer/types/shared/MarkerFactory.d.ts +3 -0
- package/lib/assets/pdf-document-viewer/types/shared/TaskQueue.d.ts +6 -0
- package/lib/assets/pdf-document-viewer/types/shared/annot-utils.d.ts +116 -0
- package/lib/assets/pdf-document-viewer/types/shared/block-utils.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/shared/capability.d.ts +10 -0
- package/lib/assets/pdf-document-viewer/types/shared/constant.d.ts +139 -0
- package/lib/assets/pdf-document-viewer/types/shared/controls-config.d.ts +7 -0
- package/lib/assets/pdf-document-viewer/types/shared/diff-utils.d.ts +22 -0
- package/lib/assets/pdf-document-viewer/types/shared/editor-util.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/shared/env-config.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/shared/global-override.d.ts +0 -0
- package/lib/assets/pdf-document-viewer/types/shared/id-generator.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/shared/password-util.d.ts +8 -0
- package/lib/assets/pdf-document-viewer/types/shared/pdfjs-utils.d.ts +4 -0
- package/lib/assets/pdf-document-viewer/types/shared/rect-utils.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/shared/search-utils.d.ts +2 -0
- package/lib/assets/pdf-document-viewer/types/shared/selection-utils.d.ts +13 -0
- package/lib/assets/pdf-document-viewer/types/shared/svg-data.d.ts +1 -0
- package/lib/assets/pdf-document-viewer/types/shared/svg-utils.d.ts +6 -0
- package/lib/assets/pdf-document-viewer/types/shared/ui-utils.d.ts +95 -0
- package/lib/assets/pdf-document-viewer/types/shared/util.d.ts +42 -0
- package/lib/assets/pdf-document-viewer/types/types/annotation.d.ts +281 -0
- package/lib/assets/pdf-document-viewer/types/types/char.d.ts +18 -0
- package/lib/assets/pdf-document-viewer/types/types/extension.d.ts +10 -0
- package/lib/assets/pdf-document-viewer/types/types/pdf.d.ts +88 -0
- package/lib/assets/pdf-document-viewer/types/types/widget.d.ts +90 -0
- package/lib/assets/pdf-document-viewer/types/viewer.d.ts +49 -0
- package/lib/assets/pdf-document-viewer/worker/pdf.sandbox.mjs +21 -0
- package/lib/assets/pdf-document-viewer/worker/pdf.worker.mjs +58352 -0
- package/lib/assets/pdf-document-viewer/worker/pdflux.worker.js +74 -0
- package/lib/client.js +72089 -0
- package/lib/index.js +1592 -0
- package/lib/pure.js +396 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/config.d.ts +36 -0
- package/lib/types/errors.d.ts +14 -0
- package/lib/types/index.d.ts +11 -0
- package/lib/types/master-markdown.d.ts +21 -0
- package/lib/types/registry.d.ts +34 -0
- package/lib/types/rs-client.d.ts +68 -0
- package/lib/types/skill.d.ts +4 -0
- package/lib/types/sources.d.ts +50 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +110 -4
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
var v = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function K(t) {
|
|
3
|
+
var n = typeof t;
|
|
4
|
+
return t != null && (n == "object" || n == "function");
|
|
5
|
+
}
|
|
6
|
+
var N = K, Z = typeof v == "object" && v && v.Object === Object && v, X = Z, J = X, Q = typeof self == "object" && self && self.Object === Object && self, Y = J || Q || Function("return this")(), F = Y, tt = F, nt = function() {
|
|
7
|
+
return tt.Date.now();
|
|
8
|
+
}, ot = nt, at = /\s/;
|
|
9
|
+
function et(t) {
|
|
10
|
+
for (var n = t.length; n-- && at.test(t.charAt(n)); )
|
|
11
|
+
;
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
var it = et, rt = it, st = /^\s+/;
|
|
15
|
+
function lt(t) {
|
|
16
|
+
return t && t.slice(0, rt(t) + 1).replace(st, "");
|
|
17
|
+
}
|
|
18
|
+
var pt = lt, ct = F, ut = ct.Symbol, j = ut, E = j, z = Object.prototype, dt = z.hasOwnProperty, ht = z.toString, g = E ? E.toStringTag : void 0;
|
|
19
|
+
function mt(t) {
|
|
20
|
+
var n = dt.call(t, g), o = t[g];
|
|
21
|
+
try {
|
|
22
|
+
t[g] = void 0;
|
|
23
|
+
var a = !0;
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
var e = ht.call(t);
|
|
27
|
+
return a && (n ? t[g] = o : delete t[g]), e;
|
|
28
|
+
}
|
|
29
|
+
var gt = mt, ft = Object.prototype, vt = ft.toString;
|
|
30
|
+
function bt(t) {
|
|
31
|
+
return vt.call(t);
|
|
32
|
+
}
|
|
33
|
+
var yt = bt, $ = j, At = gt, Tt = yt, Ct = "[object Null]", Lt = "[object Undefined]", R = $ ? $.toStringTag : void 0;
|
|
34
|
+
function _t(t) {
|
|
35
|
+
return t == null ? t === void 0 ? Lt : Ct : R && R in Object(t) ? At(t) : Tt(t);
|
|
36
|
+
}
|
|
37
|
+
var Pt = _t;
|
|
38
|
+
function St(t) {
|
|
39
|
+
return t != null && typeof t == "object";
|
|
40
|
+
}
|
|
41
|
+
var It = St, Dt = Pt, Et = It, $t = "[object Symbol]";
|
|
42
|
+
function Rt(t) {
|
|
43
|
+
return typeof t == "symbol" || Et(t) && Dt(t) == $t;
|
|
44
|
+
}
|
|
45
|
+
var xt = Rt, wt = pt, x = N, kt = xt, w = 0 / 0, Ot = /^[-+]0x[0-9a-f]+$/i, Nt = /^0b[01]+$/i, Ft = /^0o[0-7]+$/i, jt = parseInt;
|
|
46
|
+
function zt(t) {
|
|
47
|
+
if (typeof t == "number")
|
|
48
|
+
return t;
|
|
49
|
+
if (kt(t))
|
|
50
|
+
return w;
|
|
51
|
+
if (x(t)) {
|
|
52
|
+
var n = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
53
|
+
t = x(n) ? n + "" : n;
|
|
54
|
+
}
|
|
55
|
+
if (typeof t != "string")
|
|
56
|
+
return t === 0 ? t : +t;
|
|
57
|
+
t = wt(t);
|
|
58
|
+
var o = Nt.test(t);
|
|
59
|
+
return o || Ft.test(t) ? jt(t.slice(2), o ? 2 : 8) : Ot.test(t) ? w : +t;
|
|
60
|
+
}
|
|
61
|
+
var Bt = zt, Mt = N, L = ot, k = Bt, Wt = "Expected a function", qt = Math.max, Ut = Math.min;
|
|
62
|
+
function Ht(t, n, o) {
|
|
63
|
+
var a, e, s, l, i, p, c = 0, P = !1, h = !1, A = !0;
|
|
64
|
+
if (typeof t != "function")
|
|
65
|
+
throw new TypeError(Wt);
|
|
66
|
+
n = k(n) || 0, Mt(o) && (P = !!o.leading, h = "maxWait" in o, s = h ? qt(k(o.maxWait) || 0, n) : s, A = "trailing" in o ? !!o.trailing : A);
|
|
67
|
+
function T(r) {
|
|
68
|
+
var u = a, m = e;
|
|
69
|
+
return a = e = void 0, c = r, l = t.apply(m, u), l;
|
|
70
|
+
}
|
|
71
|
+
function U(r) {
|
|
72
|
+
return c = r, i = setTimeout(f, n), P ? T(r) : l;
|
|
73
|
+
}
|
|
74
|
+
function H(r) {
|
|
75
|
+
var u = r - p, m = r - c, D = n - u;
|
|
76
|
+
return h ? Ut(D, s - m) : D;
|
|
77
|
+
}
|
|
78
|
+
function S(r) {
|
|
79
|
+
var u = r - p, m = r - c;
|
|
80
|
+
return p === void 0 || u >= n || u < 0 || h && m >= s;
|
|
81
|
+
}
|
|
82
|
+
function f() {
|
|
83
|
+
var r = L();
|
|
84
|
+
if (S(r))
|
|
85
|
+
return I(r);
|
|
86
|
+
i = setTimeout(f, H(r));
|
|
87
|
+
}
|
|
88
|
+
function I(r) {
|
|
89
|
+
return i = void 0, A && a ? T(r) : (a = e = void 0, l);
|
|
90
|
+
}
|
|
91
|
+
function G() {
|
|
92
|
+
i !== void 0 && clearTimeout(i), c = 0, a = p = e = i = void 0;
|
|
93
|
+
}
|
|
94
|
+
function V() {
|
|
95
|
+
return i === void 0 ? l : I(L());
|
|
96
|
+
}
|
|
97
|
+
function C() {
|
|
98
|
+
var r = L(), u = S(r);
|
|
99
|
+
if (a = arguments, e = this, p = r, u) {
|
|
100
|
+
if (i === void 0)
|
|
101
|
+
return U(p);
|
|
102
|
+
if (h)
|
|
103
|
+
return clearTimeout(i), i = setTimeout(f, n), T(p);
|
|
104
|
+
}
|
|
105
|
+
return i === void 0 && (i = setTimeout(f, n)), l;
|
|
106
|
+
}
|
|
107
|
+
return C.cancel = G, C.flush = V, C;
|
|
108
|
+
}
|
|
109
|
+
var Gt = Ht, d = /* @__PURE__ */ ((t) => (t[t.Text = 1] = "Text", t[t.Link = 2] = "Link", t[t.Line = 4] = "Line", t[t.Square = 5] = "Square", t[t.Polygon = 7] = "Polygon", t[t.PolyLine = 8] = "PolyLine", t[t.Highlight = 9] = "Highlight", t[t.Underline = 10] = "Underline", t[t.StrikeOut = 12] = "StrikeOut", t[t.Stamp = 13] = "Stamp", t[t.Ink = 15] = "Ink", t[t.Popup = 16] = "Popup", t[t.Table = 27] = "Table", t[t.SelectText = 28] = "SelectText", t[t.Null = 29] = "Null", t[t.TextDiff = 101] = "TextDiff", t))(d || {});
|
|
110
|
+
const B = "annot-added", M = "annot-updated", W = "annot-removed", b = "annot-focus", y = "blur";
|
|
111
|
+
function Vt(t) {
|
|
112
|
+
t.id === this.annotId && (this.annotData = t);
|
|
113
|
+
}
|
|
114
|
+
function Kt(t) {
|
|
115
|
+
this.listPos = {
|
|
116
|
+
...this.listPos,
|
|
117
|
+
...t
|
|
118
|
+
}, this.refresh();
|
|
119
|
+
}
|
|
120
|
+
function Zt() {
|
|
121
|
+
this.popupComponent?.$set(this.popupComponentProps || {});
|
|
122
|
+
}
|
|
123
|
+
function Xt(t, n) {
|
|
124
|
+
const o = this.annotationService.getCurrentPageNumber(), a = {
|
|
125
|
+
block: "center"
|
|
126
|
+
};
|
|
127
|
+
if (this.annotData.parentId) {
|
|
128
|
+
t ? this.app.activeAnnotation(this.annotData.parentId) : this.app.deactiveAnnotation(this.annotData.parentId);
|
|
129
|
+
const e = this.annotationService.getEditorById(this.annotData.parentId);
|
|
130
|
+
if (!e?.isAttachedToDOM && o !== this.annotData.pageNumber) {
|
|
131
|
+
this.annotationService.scrollToAnnotation(this.annotData.pageNumber, this.annotData.parentId, t, a);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
n && this.app.annotScrollIntoView(e, a);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function Jt() {
|
|
138
|
+
this.popupComponent && (this.popupComponent.$on("open-popup", this.handleOpenPopup), this.popupComponent.$on("close-popup", this.handleClosePopup));
|
|
139
|
+
}
|
|
140
|
+
function Qt() {
|
|
141
|
+
this.app.addEventListener(M, this.refresReply), this.app.addEventListener(b, this.handleAnnotFocus), this.app.addEventListener(y, this.handleAnnotBlur);
|
|
142
|
+
}
|
|
143
|
+
function Yt() {
|
|
144
|
+
this.app.removeEventListener(M, this.refresReply), this.app.removeEventListener(b, this.handleAnnotFocus), this.app.removeEventListener(y, this.handleAnnotBlur);
|
|
145
|
+
}
|
|
146
|
+
function tn() {
|
|
147
|
+
this.unbindAppEvents(), this.listPopupRemoveCallback?.(this.annotId);
|
|
148
|
+
}
|
|
149
|
+
let nn = class {
|
|
150
|
+
avatar = "";
|
|
151
|
+
constructor({
|
|
152
|
+
annotData: n,
|
|
153
|
+
app: o
|
|
154
|
+
}) {
|
|
155
|
+
this.annotId = n.id, this.annotData = n, this.app = o, this.bindAppEvents(), this.annotationService.getAvatar(this.parentData?.authorID || "")?.then((a) => {
|
|
156
|
+
this.avatar = a, this.refresh();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
get parentData() {
|
|
160
|
+
const {
|
|
161
|
+
parentId: n
|
|
162
|
+
} = this.annotData;
|
|
163
|
+
return n ? this.annotationService.getAnnotationById(n) : null;
|
|
164
|
+
}
|
|
165
|
+
get destroyed() {
|
|
166
|
+
return this.app.destroyed;
|
|
167
|
+
}
|
|
168
|
+
get annotationService() {
|
|
169
|
+
return this.app.annotationService;
|
|
170
|
+
}
|
|
171
|
+
get annot() {
|
|
172
|
+
return this.app.getAnnotationById(this.annotId);
|
|
173
|
+
}
|
|
174
|
+
get focus() {
|
|
175
|
+
return this.annotationService.isAnnotationActive(this.annotData.parentId);
|
|
176
|
+
}
|
|
177
|
+
getParentAnnotationElement = () => this.annotationService.getEditorById(this.annotData.parentId);
|
|
178
|
+
setAnnotData(n) {
|
|
179
|
+
return Vt.call(this, n);
|
|
180
|
+
}
|
|
181
|
+
pin = !1;
|
|
182
|
+
listPos = {
|
|
183
|
+
top: 0,
|
|
184
|
+
left: 0
|
|
185
|
+
};
|
|
186
|
+
setListPos(n) {
|
|
187
|
+
return Kt.call(this, n);
|
|
188
|
+
}
|
|
189
|
+
refresh() {
|
|
190
|
+
return Zt.call(this);
|
|
191
|
+
}
|
|
192
|
+
get alignAnnotPageNumber() {
|
|
193
|
+
return this.annotData.pageNumber;
|
|
194
|
+
}
|
|
195
|
+
get pagePos() {
|
|
196
|
+
const n = {
|
|
197
|
+
top: 0,
|
|
198
|
+
left: 0
|
|
199
|
+
}, o = (a) => {
|
|
200
|
+
if (!a)
|
|
201
|
+
return;
|
|
202
|
+
const e = a[2] - a[0];
|
|
203
|
+
[, n.top] = a, n.left = a[0] + e;
|
|
204
|
+
};
|
|
205
|
+
if (this.annot && this.annotData.parentId) {
|
|
206
|
+
const a = this.annotationService.getAnnotationOutline(this.annotData.parentId);
|
|
207
|
+
a && o(a);
|
|
208
|
+
} else {
|
|
209
|
+
const {
|
|
210
|
+
rect: a
|
|
211
|
+
} = this.annotData;
|
|
212
|
+
o(a);
|
|
213
|
+
}
|
|
214
|
+
return n;
|
|
215
|
+
}
|
|
216
|
+
get customClass() {
|
|
217
|
+
const n = [];
|
|
218
|
+
return this.pin ? this.focus && n.push("focus") : this.focus || n.push("hidden"), n;
|
|
219
|
+
}
|
|
220
|
+
get popupComponentProps() {
|
|
221
|
+
const {
|
|
222
|
+
customClass: n
|
|
223
|
+
} = this, o = {
|
|
224
|
+
...this.annotData,
|
|
225
|
+
avatar: this.avatar,
|
|
226
|
+
editable: !1
|
|
227
|
+
};
|
|
228
|
+
return {
|
|
229
|
+
annotationData: o,
|
|
230
|
+
annotationPopupData: o,
|
|
231
|
+
replyAnnotationData: [],
|
|
232
|
+
pos: this.pin ? this.listPos : this.pagePos,
|
|
233
|
+
customClass: n,
|
|
234
|
+
canReply: !1
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
togglePopup(n, o = !1) {
|
|
238
|
+
return Xt.call(this, n, o);
|
|
239
|
+
}
|
|
240
|
+
handleAnnotAdded = ({
|
|
241
|
+
data: n
|
|
242
|
+
}) => {
|
|
243
|
+
n.id === this.annotId && (this.annotData = n, this.refresh(), this.listPopupSetPosCallback?.(this));
|
|
244
|
+
};
|
|
245
|
+
refresReply = ({
|
|
246
|
+
data: n
|
|
247
|
+
}) => {
|
|
248
|
+
let {
|
|
249
|
+
inReplyTo: o,
|
|
250
|
+
popupId: a
|
|
251
|
+
} = n;
|
|
252
|
+
a || (a = this.app.annotationManager.getById(o)?.popupId), a === this.annotId && (this.annotData = this.app.annotationManager.getById(this.annotId), this.refresh(), this.listPopupSetPosCallback?.(this));
|
|
253
|
+
};
|
|
254
|
+
handleAnnotBlur = (n) => {
|
|
255
|
+
this.parentData && [this.parentData.id].includes(n.data.id) && (this.refresh(), requestAnimationFrame(() => {
|
|
256
|
+
this.listPopupToggleCallback?.(!1);
|
|
257
|
+
}));
|
|
258
|
+
};
|
|
259
|
+
handleAnnotFocus = (n) => {
|
|
260
|
+
this.parentData && [this.parentData.id].includes(n.data.id) && (this.refresh(), requestAnimationFrame(() => {
|
|
261
|
+
this.listPopupToggleCallback?.(!0);
|
|
262
|
+
}));
|
|
263
|
+
};
|
|
264
|
+
handleOpenPopup = () => {
|
|
265
|
+
this.togglePopup(!0);
|
|
266
|
+
};
|
|
267
|
+
handleClosePopup = () => {
|
|
268
|
+
this.togglePopup(!1);
|
|
269
|
+
};
|
|
270
|
+
bindComponentEvents() {
|
|
271
|
+
return Jt.call(this);
|
|
272
|
+
}
|
|
273
|
+
bindAppEvents() {
|
|
274
|
+
return Qt.call(this);
|
|
275
|
+
}
|
|
276
|
+
unbindAppEvents() {
|
|
277
|
+
return Yt.call(this);
|
|
278
|
+
}
|
|
279
|
+
destroy() {
|
|
280
|
+
return tn.call(this);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
function on(t, {
|
|
284
|
+
clientWidth: n,
|
|
285
|
+
clientHeight: o
|
|
286
|
+
}, a) {
|
|
287
|
+
const [e, s, l, i] = t, p = n, c = o;
|
|
288
|
+
switch (a) {
|
|
289
|
+
case 90:
|
|
290
|
+
return [s, p - l, i, p - e];
|
|
291
|
+
case 180:
|
|
292
|
+
return [p - l, c - i, p - e, c - s];
|
|
293
|
+
case 270:
|
|
294
|
+
return [c - i, e, c - s, l];
|
|
295
|
+
default:
|
|
296
|
+
return [e, s, l, i];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
function an(t) {
|
|
300
|
+
const n = t[2] - t[0];
|
|
301
|
+
return {
|
|
302
|
+
top: t[1],
|
|
303
|
+
left: t[0] + n
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function en() {
|
|
307
|
+
const {
|
|
308
|
+
left: t
|
|
309
|
+
} = this.pagePos;
|
|
310
|
+
return this.annotationService.getPageView(this.annotData.pageNumber - 1).width - t;
|
|
311
|
+
}
|
|
312
|
+
function rn(t, n) {
|
|
313
|
+
this.replyAvatar[t] = n;
|
|
314
|
+
}
|
|
315
|
+
function sn() {
|
|
316
|
+
this.popupComponent && (this.popupComponent.$on("open-popup", this.handleOpenPopup), this.popupComponent.$on("close-popup", this.handleClosePopup), this.popupComponent.$on("add-reply", this.handleAddReply), this.popupComponent.$on("update-annotation-data", this.handleUpdateAnnotationData), this.popupComponent.$on("remove-annotation-data", this.handleDeleteAnnotationData));
|
|
317
|
+
}
|
|
318
|
+
let ln = class extends nn {
|
|
319
|
+
// alignAnnotInfo: {
|
|
320
|
+
// id: string;
|
|
321
|
+
// pageNumber: number;
|
|
322
|
+
// outline: number[];
|
|
323
|
+
// } | null = null;
|
|
324
|
+
replyAvatar = {};
|
|
325
|
+
constructor(n) {
|
|
326
|
+
super(n);
|
|
327
|
+
const o = this.replyData.map(async (a) => {
|
|
328
|
+
const e = await this.annotationService.getAvatar(a.authorID || "") || "";
|
|
329
|
+
return {
|
|
330
|
+
...a,
|
|
331
|
+
avatar: e
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
Promise.all(o).then((a) => {
|
|
335
|
+
this.replyAvatar = a.reduce((e, s) => ({
|
|
336
|
+
...e,
|
|
337
|
+
[s.id]: s.avatar
|
|
338
|
+
}), {});
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
_calcPagePos(n) {
|
|
342
|
+
return an.call(this, n);
|
|
343
|
+
}
|
|
344
|
+
get pagePos() {
|
|
345
|
+
let n = {
|
|
346
|
+
top: 0,
|
|
347
|
+
left: 0
|
|
348
|
+
};
|
|
349
|
+
const o = this.annotationService.getAnnotationAlignInfo(this.annotData.id);
|
|
350
|
+
o && (n = this._calcPagePos(o.outline));
|
|
351
|
+
const a = this.annotationService.getPageView(this.annotData.pageNumber - 1), {
|
|
352
|
+
width: e,
|
|
353
|
+
height: s
|
|
354
|
+
} = a;
|
|
355
|
+
if (this.annot) {
|
|
356
|
+
const [l, i] = on([n.left, n.top, n.left, n.top], {
|
|
357
|
+
clientWidth: e,
|
|
358
|
+
clientHeight: s
|
|
359
|
+
}, a.viewport.rotation);
|
|
360
|
+
return {
|
|
361
|
+
left: l,
|
|
362
|
+
top: i
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
return n;
|
|
366
|
+
}
|
|
367
|
+
marginPageLeft() {
|
|
368
|
+
return en.call(this);
|
|
369
|
+
}
|
|
370
|
+
get alignAnnotPageNumber() {
|
|
371
|
+
return Number(this.annotData.pageNumber);
|
|
372
|
+
}
|
|
373
|
+
get replyData() {
|
|
374
|
+
return this.app.annotationManager.getReplies(this.parentData?.replyIds || []);
|
|
375
|
+
}
|
|
376
|
+
updateReplyAvatar(n, o) {
|
|
377
|
+
return rn.call(this, n, o);
|
|
378
|
+
}
|
|
379
|
+
get popupComponentProps() {
|
|
380
|
+
const {
|
|
381
|
+
parentId: n
|
|
382
|
+
} = this.annotData;
|
|
383
|
+
if (!n || !this.parentData)
|
|
384
|
+
return null;
|
|
385
|
+
const o = [];
|
|
386
|
+
return this.pin ? this.focus && o.push("focus") : this.focus ? o.push("focus") : o.push("hidden"), {
|
|
387
|
+
annotationData: {
|
|
388
|
+
...this.parentData,
|
|
389
|
+
avatar: this.avatar,
|
|
390
|
+
editable: this.annotationService.canEdit(this.parentData.authorID)
|
|
391
|
+
},
|
|
392
|
+
annotationPopupData: this.annotData,
|
|
393
|
+
replyAnnotationData: (this.replyData || []).map((a) => ({
|
|
394
|
+
...a,
|
|
395
|
+
avatar: this.replyAvatar[a.id],
|
|
396
|
+
editable: this.annotationService.canEdit(a.authorID)
|
|
397
|
+
})),
|
|
398
|
+
pos: this.pin ? this.listPos : this.pagePos,
|
|
399
|
+
marginPageLeft: this.marginPageLeft(),
|
|
400
|
+
customClass: o
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
// get alignAnnotInfo() {
|
|
404
|
+
// return this.annot?.alignAnnotInfo;
|
|
405
|
+
// }
|
|
406
|
+
// setAlignAnnotInfo(parentAnnot: AnnotationElement, refresh = false) {
|
|
407
|
+
// this.annot?.setAlignAnnotInfo(parentAnnot, refresh);
|
|
408
|
+
// }
|
|
409
|
+
// togglePopup = (focus: boolean, needScroll: boolean = false) => {
|
|
410
|
+
// super.togglePopup(focus, needScroll);
|
|
411
|
+
// // if (this.annotData.parentId) {
|
|
412
|
+
// // if (focus) {
|
|
413
|
+
// // this.app.activeAnnotation(this.annotData.parentId);
|
|
414
|
+
// // } else {
|
|
415
|
+
// // this.app.deactiveAnnotation(this.annotData.parentId);
|
|
416
|
+
// // }
|
|
417
|
+
// // }
|
|
418
|
+
// };
|
|
419
|
+
handleAddReply = async (n) => {
|
|
420
|
+
const o = this.annotationService.createReplyData(n.detail, this.annotData.parentId);
|
|
421
|
+
this.replyAvatar[o.id] = await this.annotationService.getAvatar() || "", this.annotationService.addReplay(o), this.refresh(), this.listPopupSetPosCallback?.(this);
|
|
422
|
+
};
|
|
423
|
+
handleUpdateAnnotationData = (n) => {
|
|
424
|
+
const o = n.detail;
|
|
425
|
+
this.annotationService.updateAnnotationWithData(o);
|
|
426
|
+
};
|
|
427
|
+
handleDeleteAnnotationData = (n) => {
|
|
428
|
+
const o = n.detail, a = this.annotationService.getAnnotationById(o);
|
|
429
|
+
if (a) {
|
|
430
|
+
const e = {
|
|
431
|
+
type: "removeByInteraction",
|
|
432
|
+
data: a,
|
|
433
|
+
annotation: a
|
|
434
|
+
};
|
|
435
|
+
this.annotationService.removeAnnotation(e);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
bindComponentEvents() {
|
|
439
|
+
return sn.call(this);
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
function O(t) {
|
|
443
|
+
return t.annotationType === d.Popup;
|
|
444
|
+
}
|
|
445
|
+
const pn = {
|
|
446
|
+
"annotation.selectText": "选择文本",
|
|
447
|
+
"annotation.rectangle": "矩形",
|
|
448
|
+
"annotation.table": "表格",
|
|
449
|
+
"annotation.note": "便签",
|
|
450
|
+
"annotation.line": "直线",
|
|
451
|
+
"annotation.ink": "画笔",
|
|
452
|
+
"annotation.polygon": "多边形",
|
|
453
|
+
"annotation.polyline": "折线",
|
|
454
|
+
"annotation.textDiff": "编辑文本",
|
|
455
|
+
"annotation.highlight": "高亮",
|
|
456
|
+
"annotation.underline": "下划线",
|
|
457
|
+
"annotation.strikethrough": "删除线",
|
|
458
|
+
"annotation.copy": "复制",
|
|
459
|
+
"annotation.move": "移动",
|
|
460
|
+
"annotation.delete": "删除",
|
|
461
|
+
"annotation.addHLine": "增加水平线",
|
|
462
|
+
"annotation.addVLine": "增加竖线",
|
|
463
|
+
"annotation.mergeCell": "合并单元格",
|
|
464
|
+
"annotation.splitCell": "拆分单元格",
|
|
465
|
+
"annotation.selectTextArea": "框选文字",
|
|
466
|
+
"input.placeholder": "请输入内容",
|
|
467
|
+
"input.required": "请输入内容后再发送批注",
|
|
468
|
+
"input.shortcut": "Ctrl + 回车快速发送",
|
|
469
|
+
"input.limit": "(限制 {maxLength} 个字符)",
|
|
470
|
+
"input.enterContent": "请输入{title}内容",
|
|
471
|
+
"toolbar.zoomIn": "放大",
|
|
472
|
+
"toolbar.zoomOut": "缩小",
|
|
473
|
+
"toolbar.fitPage": "适合页面",
|
|
474
|
+
"toolbar.fitWidth": "适合宽度",
|
|
475
|
+
"toolbar.actualSize": "实际大小",
|
|
476
|
+
"toolbar.rotateLeft": "向左旋转",
|
|
477
|
+
"toolbar.rotateRight": "向右旋转",
|
|
478
|
+
"toolbar.print": "打印",
|
|
479
|
+
"toolbar.download": "下载",
|
|
480
|
+
"navigation.previous": "上一页",
|
|
481
|
+
"navigation.next": "下一页",
|
|
482
|
+
"navigation.first": "首页",
|
|
483
|
+
"navigation.last": "末页",
|
|
484
|
+
"navigation.page": "第 {page} 页,共 {total} 页",
|
|
485
|
+
"error.loadFailed": "文档加载失败",
|
|
486
|
+
"error.networkError": "网络错误",
|
|
487
|
+
"error.fileNotFound": "文件未找到",
|
|
488
|
+
"error.invalidFormat": "文件格式无效",
|
|
489
|
+
"error.passwordRequired": "需要密码",
|
|
490
|
+
"error.passwordIncorrect": "密码错误",
|
|
491
|
+
"error.invalidOptions": "无效的appOptions",
|
|
492
|
+
"error.containerNotFound": "appContainer不存在",
|
|
493
|
+
"error.customTypeRequired": '自定义annotation的"customType"不能为空',
|
|
494
|
+
"error.customTypeConflict": '"{customType}"不能作为自定义annotation的"customType"',
|
|
495
|
+
"status.loading": "正在加载文档...",
|
|
496
|
+
"status.rendering": "正在渲染页面...",
|
|
497
|
+
"status.searching": "正在搜索...",
|
|
498
|
+
"status.noResults": "未找到相关内容",
|
|
499
|
+
"status.ready": "准备就绪",
|
|
500
|
+
"common.confirm": "确认",
|
|
501
|
+
"common.cancel": "取消",
|
|
502
|
+
"common.save": "保存",
|
|
503
|
+
"common.delete": "删除",
|
|
504
|
+
"common.edit": "编辑",
|
|
505
|
+
"common.close": "关闭",
|
|
506
|
+
"common.submit": "提交",
|
|
507
|
+
"common.reset": "重置",
|
|
508
|
+
"common.search": "搜索",
|
|
509
|
+
"common.loading": "加载中...",
|
|
510
|
+
"common.error": "错误",
|
|
511
|
+
"common.success": "成功",
|
|
512
|
+
"common.warning": "警告",
|
|
513
|
+
"common.info": "信息",
|
|
514
|
+
"common.translate": "译",
|
|
515
|
+
"annotation.totalCount": "共 {count} 条批注",
|
|
516
|
+
"annotation.totalCount.singular": "共 {count} 条批注",
|
|
517
|
+
"annotation.totalCount.plural": "共 {count} 条批注",
|
|
518
|
+
"annotation.collapsedCount": "已折叠 {count} 条批注",
|
|
519
|
+
"annotation.collapsedCount.singular": "已折叠 {count} 条批注",
|
|
520
|
+
"annotation.collapsedCount.plural": "已折叠 {count} 条批注",
|
|
521
|
+
"annotation.edit": "编辑",
|
|
522
|
+
"annotation.addReply": "追加批注",
|
|
523
|
+
"annotation.annotation": "批注",
|
|
524
|
+
"popupList.totalCount": "共 {count} 个{type}",
|
|
525
|
+
"popupList.totalCount.singular": "共 {count} 个{type}",
|
|
526
|
+
"popupList.totalCount.plural": "共 {count} 个{type}"
|
|
527
|
+
}, cn = {
|
|
528
|
+
"annotation.selectText": "Select Text",
|
|
529
|
+
"annotation.rectangle": "Rectangle",
|
|
530
|
+
"annotation.table": "Table",
|
|
531
|
+
"annotation.note": "Note",
|
|
532
|
+
"annotation.line": "Line",
|
|
533
|
+
"annotation.ink": "Ink",
|
|
534
|
+
"annotation.polygon": "Polygon",
|
|
535
|
+
"annotation.polyline": "Polyline",
|
|
536
|
+
"annotation.textDiff": "Edit Text",
|
|
537
|
+
"annotation.highlight": "Highlight",
|
|
538
|
+
"annotation.underline": "Underline",
|
|
539
|
+
"annotation.strikethrough": "Strikethrough",
|
|
540
|
+
"annotation.copy": "Copy",
|
|
541
|
+
"annotation.move": "Move",
|
|
542
|
+
"annotation.delete": "Delete",
|
|
543
|
+
"annotation.addHLine": "Add Horizontal Line",
|
|
544
|
+
"annotation.addVLine": "Add Vertical Line",
|
|
545
|
+
"annotation.mergeCell": "Merge Cell",
|
|
546
|
+
"annotation.splitCell": "Split Cell",
|
|
547
|
+
"annotation.selectTextArea": "Select Text Area",
|
|
548
|
+
"input.placeholder": "Please enter content",
|
|
549
|
+
"input.required": "Please enter content before sending annotation",
|
|
550
|
+
"input.shortcut": "Ctrl + Enter to send quickly",
|
|
551
|
+
"input.limit": "(Limit {maxLength} characters)",
|
|
552
|
+
"input.enterContent": "Please enter {title} content",
|
|
553
|
+
"toolbar.zoomIn": "Zoom In",
|
|
554
|
+
"toolbar.zoomOut": "Zoom Out",
|
|
555
|
+
"toolbar.fitPage": "Fit Page",
|
|
556
|
+
"toolbar.fitWidth": "Fit Width",
|
|
557
|
+
"toolbar.actualSize": "Actual Size",
|
|
558
|
+
"toolbar.rotateLeft": "Rotate Left",
|
|
559
|
+
"toolbar.rotateRight": "Rotate Right",
|
|
560
|
+
"toolbar.print": "Print",
|
|
561
|
+
"toolbar.download": "Download",
|
|
562
|
+
"navigation.previous": "Previous",
|
|
563
|
+
"navigation.next": "Next",
|
|
564
|
+
"navigation.first": "First",
|
|
565
|
+
"navigation.last": "Last",
|
|
566
|
+
"navigation.page": "Page {page} of {total}",
|
|
567
|
+
"error.loadFailed": "Failed to load document",
|
|
568
|
+
"error.networkError": "Network error",
|
|
569
|
+
"error.fileNotFound": "File not found",
|
|
570
|
+
"error.invalidFormat": "Invalid file format",
|
|
571
|
+
"error.passwordRequired": "Password required",
|
|
572
|
+
"error.passwordIncorrect": "Incorrect password",
|
|
573
|
+
"error.invalidOptions": "Invalid appOptions",
|
|
574
|
+
"error.containerNotFound": "appContainer does not exist",
|
|
575
|
+
"error.customTypeRequired": 'Custom annotation "customType" cannot be empty',
|
|
576
|
+
"error.customTypeConflict": '"{customType}" cannot be used as custom annotation "customType"',
|
|
577
|
+
"status.loading": "Loading document...",
|
|
578
|
+
"status.rendering": "Rendering page...",
|
|
579
|
+
"status.searching": "Searching...",
|
|
580
|
+
"status.noResults": "No results found",
|
|
581
|
+
"status.ready": "Ready",
|
|
582
|
+
"common.confirm": "Confirm",
|
|
583
|
+
"common.cancel": "Cancel",
|
|
584
|
+
"common.save": "Save",
|
|
585
|
+
"common.delete": "Delete",
|
|
586
|
+
"common.edit": "Edit",
|
|
587
|
+
"common.close": "Close",
|
|
588
|
+
"common.submit": "Submit",
|
|
589
|
+
"common.reset": "Reset",
|
|
590
|
+
"common.search": "Search",
|
|
591
|
+
"common.loading": "Loading...",
|
|
592
|
+
"common.error": "Error",
|
|
593
|
+
"common.success": "Success",
|
|
594
|
+
"common.warning": "Warning",
|
|
595
|
+
"common.info": "Info",
|
|
596
|
+
"common.translate": "Translate",
|
|
597
|
+
"annotation.totalCount": "{count} annotations",
|
|
598
|
+
"annotation.totalCount.singular": "{count} annotation",
|
|
599
|
+
"annotation.totalCount.plural": "{count} annotations",
|
|
600
|
+
"annotation.collapsedCount": "{count} annotations collapsed",
|
|
601
|
+
"annotation.collapsedCount.singular": "{count} annotation collapsed",
|
|
602
|
+
"annotation.collapsedCount.plural": "{count} annotations collapsed",
|
|
603
|
+
"annotation.edit": "Edit",
|
|
604
|
+
"annotation.addReply": "Add Reply",
|
|
605
|
+
"annotation.annotation": "Annotation",
|
|
606
|
+
"popupList.totalCount": "{count} {type}",
|
|
607
|
+
"popupList.totalCount.singular": "{count} {type}",
|
|
608
|
+
"popupList.totalCount.plural": "{count} {type}s"
|
|
609
|
+
}, un = {
|
|
610
|
+
"annotation.selectText": "選擇文本",
|
|
611
|
+
"annotation.rectangle": "矩形",
|
|
612
|
+
"annotation.table": "表格",
|
|
613
|
+
"annotation.note": "便籤",
|
|
614
|
+
"annotation.line": "直線",
|
|
615
|
+
"annotation.ink": "畫筆",
|
|
616
|
+
"annotation.polygon": "多邊形",
|
|
617
|
+
"annotation.polyline": "折線",
|
|
618
|
+
"annotation.textDiff": "編輯文本",
|
|
619
|
+
"annotation.highlight": "高亮",
|
|
620
|
+
"annotation.underline": "下劃線",
|
|
621
|
+
"annotation.strikethrough": "刪除線",
|
|
622
|
+
"annotation.copy": "複製",
|
|
623
|
+
"annotation.move": "移動",
|
|
624
|
+
"annotation.delete": "刪除",
|
|
625
|
+
"annotation.addHLine": "增加水平線",
|
|
626
|
+
"annotation.addVLine": "增加豎線",
|
|
627
|
+
"annotation.mergeCell": "合併單元格",
|
|
628
|
+
"annotation.splitCell": "拆分單元格",
|
|
629
|
+
"annotation.selectTextArea": "框選文字",
|
|
630
|
+
"input.placeholder": "請輸入內容",
|
|
631
|
+
"input.required": "請輸入內容後再發送批註",
|
|
632
|
+
"input.shortcut": "Ctrl + 回車快速發送",
|
|
633
|
+
"input.limit": "(限制 {maxLength} 個字符)",
|
|
634
|
+
"input.enterContent": "請輸入{title}內容",
|
|
635
|
+
"toolbar.zoomIn": "放大",
|
|
636
|
+
"toolbar.zoomOut": "縮小",
|
|
637
|
+
"toolbar.fitPage": "適合頁面",
|
|
638
|
+
"toolbar.fitWidth": "適合寬度",
|
|
639
|
+
"toolbar.actualSize": "實際大小",
|
|
640
|
+
"toolbar.rotateLeft": "向左旋轉",
|
|
641
|
+
"toolbar.rotateRight": "向右旋轉",
|
|
642
|
+
"toolbar.print": "打印",
|
|
643
|
+
"toolbar.download": "下載",
|
|
644
|
+
"navigation.previous": "上一頁",
|
|
645
|
+
"navigation.next": "下一頁",
|
|
646
|
+
"navigation.first": "首頁",
|
|
647
|
+
"navigation.last": "末頁",
|
|
648
|
+
"navigation.page": "第 {page} 頁,共 {total} 頁",
|
|
649
|
+
"error.loadFailed": "文檔加載失敗",
|
|
650
|
+
"error.networkError": "網絡錯誤",
|
|
651
|
+
"error.fileNotFound": "文件未找到",
|
|
652
|
+
"error.invalidFormat": "文件格式無效",
|
|
653
|
+
"error.passwordRequired": "需要密碼",
|
|
654
|
+
"error.passwordIncorrect": "密碼錯誤",
|
|
655
|
+
"error.invalidOptions": "無效的appOptions",
|
|
656
|
+
"error.containerNotFound": "appContainer不存在",
|
|
657
|
+
"error.customTypeRequired": '自定義annotation的"customType"不能為空',
|
|
658
|
+
"error.customTypeConflict": '"{customType}"不能作為自定義annotation的"customType"',
|
|
659
|
+
"status.loading": "正在加載文檔...",
|
|
660
|
+
"status.rendering": "正在渲染頁面...",
|
|
661
|
+
"status.searching": "正在搜索...",
|
|
662
|
+
"status.noResults": "未找到相關內容",
|
|
663
|
+
"status.ready": "準備就緒",
|
|
664
|
+
"common.confirm": "確認",
|
|
665
|
+
"common.cancel": "取消",
|
|
666
|
+
"common.save": "保存",
|
|
667
|
+
"common.delete": "刪除",
|
|
668
|
+
"common.edit": "編輯",
|
|
669
|
+
"common.close": "關閉",
|
|
670
|
+
"common.submit": "提交",
|
|
671
|
+
"common.reset": "重置",
|
|
672
|
+
"common.search": "搜索",
|
|
673
|
+
"common.loading": "加載中...",
|
|
674
|
+
"common.error": "錯誤",
|
|
675
|
+
"common.success": "成功",
|
|
676
|
+
"common.warning": "警告",
|
|
677
|
+
"common.info": "信息",
|
|
678
|
+
"common.translate": "譯",
|
|
679
|
+
"annotation.totalCount": "共 {count} 條批註",
|
|
680
|
+
"annotation.totalCount.singular": "共 {count} 條批註",
|
|
681
|
+
"annotation.totalCount.plural": "共 {count} 條批註",
|
|
682
|
+
"annotation.collapsedCount": "已折疊 {count} 條批註",
|
|
683
|
+
"annotation.collapsedCount.singular": "已折疊 {count} 條批註",
|
|
684
|
+
"annotation.collapsedCount.plural": "已折疊 {count} 條批註",
|
|
685
|
+
"annotation.edit": "編輯",
|
|
686
|
+
"annotation.addReply": "追加批註",
|
|
687
|
+
"annotation.annotation": "批註",
|
|
688
|
+
"popupList.totalCount": "共 {count} 個{type}",
|
|
689
|
+
"popupList.totalCount.singular": "共 {count} 個{type}",
|
|
690
|
+
"popupList.totalCount.plural": "共 {count} 個{type}"
|
|
691
|
+
}, dn = {
|
|
692
|
+
"zh-CN": pn,
|
|
693
|
+
"en-US": cn,
|
|
694
|
+
"zh-TW": un
|
|
695
|
+
};
|
|
696
|
+
function q(t) {
|
|
697
|
+
return {
|
|
698
|
+
"zh-cn": "zh-CN",
|
|
699
|
+
en: "en-US",
|
|
700
|
+
"en-us": "en-US",
|
|
701
|
+
"zh-hk": "zh-TW",
|
|
702
|
+
"zh-tw": "zh-TW"
|
|
703
|
+
}[t.toLowerCase()] || "en-US";
|
|
704
|
+
}
|
|
705
|
+
function hn(t, n, o) {
|
|
706
|
+
const a = this.getMessage(t);
|
|
707
|
+
return a ? n ? this.interpolate(a, n) : a : o || t;
|
|
708
|
+
}
|
|
709
|
+
function mn(t) {
|
|
710
|
+
const n = q(t);
|
|
711
|
+
this.config.messages[n] ? this.currentLocale = n : (console.warn(`Locale ${t} not found, falling back to ${this.config.fallbackLocale || "zh-CN"}`), this.currentLocale = this.config.fallbackLocale || "zh-CN");
|
|
712
|
+
}
|
|
713
|
+
function gn() {
|
|
714
|
+
return this.currentLocale;
|
|
715
|
+
}
|
|
716
|
+
function fn() {
|
|
717
|
+
return Object.keys(this.config.messages);
|
|
718
|
+
}
|
|
719
|
+
function vn(t) {
|
|
720
|
+
return this.config.messages[this.currentLocale]?.[t];
|
|
721
|
+
}
|
|
722
|
+
function bn(t, n) {
|
|
723
|
+
return t.replace(/\{(\w+)\}/g, (o, a) => n[a] !== void 0 ? String(n[a]) : o);
|
|
724
|
+
}
|
|
725
|
+
class yn {
|
|
726
|
+
constructor(n) {
|
|
727
|
+
this.config = n, this.currentLocale = n.locale;
|
|
728
|
+
}
|
|
729
|
+
t(n, o, a) {
|
|
730
|
+
return hn.call(this, n, o, a);
|
|
731
|
+
}
|
|
732
|
+
setLocale(n) {
|
|
733
|
+
return mn.call(this, n);
|
|
734
|
+
}
|
|
735
|
+
getLocale() {
|
|
736
|
+
return gn.call(this);
|
|
737
|
+
}
|
|
738
|
+
getSupportedLocales() {
|
|
739
|
+
return fn.call(this);
|
|
740
|
+
}
|
|
741
|
+
getMessage(n) {
|
|
742
|
+
return vn.call(this, n);
|
|
743
|
+
}
|
|
744
|
+
interpolate(n, o) {
|
|
745
|
+
return bn.call(this, n, o);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
let _ = null;
|
|
749
|
+
function An(t = {}) {
|
|
750
|
+
const n = {
|
|
751
|
+
fallbackLocale: "en-US",
|
|
752
|
+
messages: dn,
|
|
753
|
+
...t,
|
|
754
|
+
locale: t.locale ? q(t.locale) : "en-US"
|
|
755
|
+
};
|
|
756
|
+
return _ = new yn(n), _;
|
|
757
|
+
}
|
|
758
|
+
function Tn() {
|
|
759
|
+
return _ || An();
|
|
760
|
+
}
|
|
761
|
+
function Cn(t, n, o) {
|
|
762
|
+
return Tn().t(t, n, o);
|
|
763
|
+
}
|
|
764
|
+
function Ln(t) {
|
|
765
|
+
this._popupAnnotationToActive = t;
|
|
766
|
+
}
|
|
767
|
+
function _n(t) {
|
|
768
|
+
t.parentId && this._popupAnnotationToActive && this._popupAnnotationToActive === t.id && this._app.annotationService.selectAnnotation(t.parentId);
|
|
769
|
+
}
|
|
770
|
+
async function Pn() {
|
|
771
|
+
await this._app.readyPromise, this._app.sidebarManager.setActiveTabKey(this._tabKey);
|
|
772
|
+
}
|
|
773
|
+
function Sn() {
|
|
774
|
+
const t = {
|
|
775
|
+
label: Cn("annotation.annotation"),
|
|
776
|
+
key: this._tabKey,
|
|
777
|
+
props: {
|
|
778
|
+
container: this._app.appConfig.mainContainer,
|
|
779
|
+
getCurrentPageNumber: () => this._app.page
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
this._app.sidebarManager.addTab(t);
|
|
783
|
+
}
|
|
784
|
+
function In() {
|
|
785
|
+
this._renderTab(), this._getParentAnnot = (t) => this._app.annotationManager.getById(t || ""), this._app.addEventListener(B, this._handleAnnotAdded), this._app.addEventListener(b, this._handleAnnotFocused), this._app.addEventListener(W, this._handleAnnotRemoved), this._app.addEventListener(y, this._handleAnnotBlured), this._app.addEventListener("scalechanging", this._handleScale);
|
|
786
|
+
}
|
|
787
|
+
function Dn() {
|
|
788
|
+
this._popupAnnotationElementList?.reset(), this._renderTab();
|
|
789
|
+
}
|
|
790
|
+
function En(t) {
|
|
791
|
+
this._app = t;
|
|
792
|
+
}
|
|
793
|
+
function $n() {
|
|
794
|
+
this._initial();
|
|
795
|
+
}
|
|
796
|
+
function Rn() {
|
|
797
|
+
this._app.removeEventListener(B, this._handleAnnotAdded), this._app.removeEventListener(b, this._handleAnnotFocused), this._app.removeEventListener(y, this._handleAnnotBlured), this._app.removeEventListener(W, this._handleAnnotRemoved), this._app.removeEventListener("scalechanging", this._handleScale);
|
|
798
|
+
}
|
|
799
|
+
function xn(t) {
|
|
800
|
+
this._app = t;
|
|
801
|
+
}
|
|
802
|
+
class On {
|
|
803
|
+
name = "popupList";
|
|
804
|
+
_tabKey = "annotPopup";
|
|
805
|
+
get _popupAnnotationElementList() {
|
|
806
|
+
return this._app.sidebarManager.getComponentIns(this._tabKey);
|
|
807
|
+
}
|
|
808
|
+
_popupAnnotationToActive = "";
|
|
809
|
+
_popupAnnotationToRender = /* @__PURE__ */ new Map();
|
|
810
|
+
_renderPopupAnnotations = Gt(() => {
|
|
811
|
+
const {
|
|
812
|
+
_app: n
|
|
813
|
+
} = this;
|
|
814
|
+
this._popupAnnotationToRender.forEach((o) => {
|
|
815
|
+
if (n.annotationManager.getById(o.parentId || "") && o.pageNumber) {
|
|
816
|
+
const a = new ln({
|
|
817
|
+
app: this._app,
|
|
818
|
+
annotData: o
|
|
819
|
+
// annot: popupAnnotation,
|
|
820
|
+
});
|
|
821
|
+
this._popupAnnotationElementList.addAnnotRelatedItem(a), this._popupAnnotationToActive === o.id ? (a.togglePopup(!0), this._popupAnnotationToActive = "") : a.togglePopup(!1);
|
|
822
|
+
}
|
|
823
|
+
}), this._popupAnnotationToRender.clear();
|
|
824
|
+
}, 100, {
|
|
825
|
+
leading: !1,
|
|
826
|
+
trailing: !0
|
|
827
|
+
});
|
|
828
|
+
setPopupAnnotationToActive(n) {
|
|
829
|
+
return Ln.call(this, n);
|
|
830
|
+
}
|
|
831
|
+
activeTextPopup(n) {
|
|
832
|
+
return _n.call(this, n);
|
|
833
|
+
}
|
|
834
|
+
get popupList() {
|
|
835
|
+
return this._popupAnnotationElementList;
|
|
836
|
+
}
|
|
837
|
+
async activate() {
|
|
838
|
+
return Pn.call(this);
|
|
839
|
+
}
|
|
840
|
+
_renderTab() {
|
|
841
|
+
return Sn.call(this);
|
|
842
|
+
}
|
|
843
|
+
_handleAnnotAdded = (n) => {
|
|
844
|
+
const {
|
|
845
|
+
data: o
|
|
846
|
+
} = n;
|
|
847
|
+
O(o) && this._app.annotationManager.getById(o.parentId)?.subtype !== d[d.Text] && this.addPopupItemFromData(o);
|
|
848
|
+
};
|
|
849
|
+
_handleAnnotFocused = (n) => {
|
|
850
|
+
n.data.annotationType === d.Text ? this._popupAnnotationElementList.setInBackground() : this._popupAnnotationElementList.setInForeground();
|
|
851
|
+
};
|
|
852
|
+
_handleAnnotBlured = (n) => {
|
|
853
|
+
n.data.annotationType === d.Text && this._popupAnnotationElementList.setInForeground();
|
|
854
|
+
};
|
|
855
|
+
_handleAnnotRemoved = (n) => {
|
|
856
|
+
const {
|
|
857
|
+
data: o
|
|
858
|
+
} = n;
|
|
859
|
+
O(o) && this._popupAnnotationElementList.removeAnnotationElement(o.id);
|
|
860
|
+
};
|
|
861
|
+
_handleScale = () => {
|
|
862
|
+
this.popupList?.resetPositionDebounce();
|
|
863
|
+
};
|
|
864
|
+
addPopupItemFromData = (n) => {
|
|
865
|
+
if (this._popupAnnotationElementList) {
|
|
866
|
+
if (this._popupAnnotationElementList.getAnnotRelatedItem(n.id))
|
|
867
|
+
return;
|
|
868
|
+
const o = this._app.annotationManager.getById(n.parentId || "");
|
|
869
|
+
o && (o.annotationType !== d.Text ? (this._popupAnnotationToRender.set(n.id, n), this._renderPopupAnnotations()) : this.activeTextPopup(n));
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
_initial() {
|
|
873
|
+
return In.call(this);
|
|
874
|
+
}
|
|
875
|
+
_reset() {
|
|
876
|
+
return Dn.call(this);
|
|
877
|
+
}
|
|
878
|
+
onAppCreated(n) {
|
|
879
|
+
return En.call(this, n);
|
|
880
|
+
}
|
|
881
|
+
onDocCreated() {
|
|
882
|
+
return $n.call(this);
|
|
883
|
+
}
|
|
884
|
+
onDocClosed() {
|
|
885
|
+
return Rn.call(this);
|
|
886
|
+
}
|
|
887
|
+
install(n) {
|
|
888
|
+
return xn.call(this, n);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
export {
|
|
892
|
+
On as default
|
|
893
|
+
};
|