@box/pdfjs-dist 0.0.0-stage → 6.4.299-box.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/CODE_OF_CONDUCT.md +15 -0
- package/LICENSE +177 -0
- package/README.md +23 -2
- package/build/pdf.min.mjs +28 -0
- package/build/pdf.mjs +28336 -0
- package/build/pdf.mjs.map +1 -0
- package/build/pdf.sandbox.min.mjs +28 -0
- package/build/pdf.sandbox.mjs +211 -0
- package/build/pdf.sandbox.mjs.map +1 -0
- package/build/pdf.worker.min.mjs +28 -0
- package/build/pdf.worker.mjs +64908 -0
- package/build/pdf.worker.mjs.map +1 -0
- package/cmaps/78-EUC-H.bcmap +0 -0
- package/cmaps/78-EUC-V.bcmap +0 -0
- package/cmaps/78-H.bcmap +0 -0
- package/cmaps/78-RKSJ-H.bcmap +0 -0
- package/cmaps/78-RKSJ-V.bcmap +0 -0
- package/cmaps/78-V.bcmap +0 -0
- package/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-V.bcmap +0 -0
- package/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/cmaps/B5-H.bcmap +0 -0
- package/cmaps/B5-V.bcmap +0 -0
- package/cmaps/B5pc-H.bcmap +0 -0
- package/cmaps/B5pc-V.bcmap +0 -0
- package/cmaps/CNS-EUC-H.bcmap +0 -0
- package/cmaps/CNS-EUC-V.bcmap +0 -0
- package/cmaps/CNS1-H.bcmap +0 -0
- package/cmaps/CNS1-V.bcmap +0 -0
- package/cmaps/CNS2-H.bcmap +0 -0
- package/cmaps/CNS2-V.bcmap +3 -0
- package/cmaps/ETHK-B5-H.bcmap +0 -0
- package/cmaps/ETHK-B5-V.bcmap +0 -0
- package/cmaps/ETen-B5-H.bcmap +0 -0
- package/cmaps/ETen-B5-V.bcmap +0 -0
- package/cmaps/ETenms-B5-H.bcmap +3 -0
- package/cmaps/ETenms-B5-V.bcmap +0 -0
- package/cmaps/EUC-H.bcmap +0 -0
- package/cmaps/EUC-V.bcmap +0 -0
- package/cmaps/Ext-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/cmaps/Ext-V.bcmap +0 -0
- package/cmaps/GB-EUC-H.bcmap +0 -0
- package/cmaps/GB-EUC-V.bcmap +0 -0
- package/cmaps/GB-H.bcmap +4 -0
- package/cmaps/GB-V.bcmap +0 -0
- package/cmaps/GBK-EUC-H.bcmap +0 -0
- package/cmaps/GBK-EUC-V.bcmap +0 -0
- package/cmaps/GBK2K-H.bcmap +0 -0
- package/cmaps/GBK2K-V.bcmap +0 -0
- package/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/cmaps/GBT-EUC-H.bcmap +0 -0
- package/cmaps/GBT-EUC-V.bcmap +0 -0
- package/cmaps/GBT-H.bcmap +0 -0
- package/cmaps/GBT-V.bcmap +0 -0
- package/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/cmaps/H.bcmap +0 -0
- package/cmaps/HKdla-B5-H.bcmap +0 -0
- package/cmaps/HKdla-B5-V.bcmap +0 -0
- package/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/cmaps/HKm314-B5-H.bcmap +0 -0
- package/cmaps/HKm314-B5-V.bcmap +0 -0
- package/cmaps/HKm471-B5-H.bcmap +0 -0
- package/cmaps/HKm471-B5-V.bcmap +0 -0
- package/cmaps/HKscs-B5-H.bcmap +0 -0
- package/cmaps/HKscs-B5-V.bcmap +0 -0
- package/cmaps/Hankaku.bcmap +0 -0
- package/cmaps/Hiragana.bcmap +0 -0
- package/cmaps/KSC-EUC-H.bcmap +0 -0
- package/cmaps/KSC-EUC-V.bcmap +0 -0
- package/cmaps/KSC-H.bcmap +0 -0
- package/cmaps/KSC-Johab-H.bcmap +0 -0
- package/cmaps/KSC-Johab-V.bcmap +0 -0
- package/cmaps/KSC-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/cmaps/Katakana.bcmap +0 -0
- package/cmaps/LICENSE +36 -0
- package/cmaps/NWP-H.bcmap +0 -0
- package/cmaps/NWP-V.bcmap +0 -0
- package/cmaps/RKSJ-H.bcmap +0 -0
- package/cmaps/RKSJ-V.bcmap +0 -0
- package/cmaps/Roman.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/cmaps/V.bcmap +0 -0
- package/cmaps/WP-Symbol.bcmap +0 -0
- package/iccs/CGATS001Compat-v2-micro.icc +0 -0
- package/iccs/LICENSE +116 -0
- package/image_decoders/pdf.image_decoders.min.mjs +28 -0
- package/image_decoders/pdf.image_decoders.mjs +5378 -0
- package/image_decoders/pdf.image_decoders.mjs.map +1 -0
- package/legacy/build/pdf.d.mts +1 -0
- package/legacy/build/pdf.min.mjs +27 -0
- package/legacy/build/pdf.mjs +34799 -0
- package/legacy/build/pdf.mjs.map +1 -0
- package/legacy/build/pdf.sandbox.min.mjs +27 -0
- package/legacy/build/pdf.sandbox.mjs +2502 -0
- package/legacy/build/pdf.sandbox.mjs.map +1 -0
- package/legacy/build/pdf.worker.min.mjs +27 -0
- package/legacy/build/pdf.worker.mjs +71124 -0
- package/legacy/build/pdf.worker.mjs.map +1 -0
- package/legacy/image_decoders/pdf.image_decoders.min.mjs +27 -0
- package/legacy/image_decoders/pdf.image_decoders.mjs +9845 -0
- package/legacy/image_decoders/pdf.image_decoders.mjs.map +1 -0
- package/legacy/web/images/altText_add.svg +3 -0
- package/legacy/web/images/altText_disclaimer.svg +3 -0
- package/legacy/web/images/altText_done.svg +3 -0
- package/legacy/web/images/altText_spinner.svg +30 -0
- package/legacy/web/images/altText_warning.svg +3 -0
- package/legacy/web/images/annotation-check.svg +11 -0
- package/legacy/web/images/annotation-comment.svg +16 -0
- package/legacy/web/images/annotation-help.svg +26 -0
- package/legacy/web/images/annotation-insert.svg +10 -0
- package/legacy/web/images/annotation-key.svg +11 -0
- package/legacy/web/images/annotation-newparagraph.svg +11 -0
- package/legacy/web/images/annotation-noicon.svg +7 -0
- package/legacy/web/images/annotation-note.svg +42 -0
- package/legacy/web/images/annotation-paperclip.svg +6 -0
- package/legacy/web/images/annotation-paragraph.svg +16 -0
- package/legacy/web/images/annotation-pushpin.svg +7 -0
- package/legacy/web/images/checkmark.svg +5 -0
- package/legacy/web/images/comment-actionsButton.svg +3 -0
- package/legacy/web/images/comment-closeButton.svg +3 -0
- package/legacy/web/images/comment-editButton.svg +8 -0
- package/legacy/web/images/comment-popup-editButton.svg +5 -0
- package/legacy/web/images/cursor-editorFreeHighlight.svg +6 -0
- package/legacy/web/images/cursor-editorFreeText.svg +3 -0
- package/legacy/web/images/cursor-editorInk.svg +4 -0
- package/legacy/web/images/cursor-editorTextHighlight.svg +8 -0
- package/legacy/web/images/editor-toolbar-delete.svg +5 -0
- package/legacy/web/images/editor-toolbar-edit.svg +3 -0
- package/legacy/web/images/findbarButton-next.svg +3 -0
- package/legacy/web/images/findbarButton-previous.svg +3 -0
- package/legacy/web/images/gv-toolbarButton-download.svg +3 -0
- package/legacy/web/images/loading-icon.gif +0 -0
- package/legacy/web/images/loading.svg +1 -0
- package/legacy/web/images/messageBar_closingButton.svg +3 -0
- package/legacy/web/images/messageBar_info.svg +3 -0
- package/legacy/web/images/messageBar_warning.svg +3 -0
- package/legacy/web/images/pages_closeButton.svg +3 -0
- package/legacy/web/images/pages_selected.svg +7 -0
- package/legacy/web/images/pages_viewArrow.svg +3 -0
- package/legacy/web/images/pages_viewButton.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-handTool.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/legacy/web/images/signature-properties-row-check.svg +4 -0
- package/legacy/web/images/toolbarButton-bookmark.svg +3 -0
- package/legacy/web/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/legacy/web/images/toolbarButton-download.svg +4 -0
- package/legacy/web/images/toolbarButton-editorFreeText.svg +5 -0
- package/legacy/web/images/toolbarButton-editorHighlight.svg +6 -0
- package/legacy/web/images/toolbarButton-editorInk.svg +4 -0
- package/legacy/web/images/toolbarButton-editorSignature.svg +6 -0
- package/legacy/web/images/toolbarButton-editorStamp.svg +8 -0
- package/legacy/web/images/toolbarButton-menuArrow.svg +3 -0
- package/legacy/web/images/toolbarButton-menuArrowNova.svg +3 -0
- package/legacy/web/images/toolbarButton-openFile.svg +3 -0
- package/legacy/web/images/toolbarButton-pageDown.svg +3 -0
- package/legacy/web/images/toolbarButton-pageUp.svg +3 -0
- package/legacy/web/images/toolbarButton-presentationMode.svg +3 -0
- package/legacy/web/images/toolbarButton-print.svg +3 -0
- package/legacy/web/images/toolbarButton-search.svg +3 -0
- package/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/legacy/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
- package/legacy/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
- package/legacy/web/images/toolbarButton-viewAttachments.svg +3 -0
- package/legacy/web/images/toolbarButton-viewLayers.svg +3 -0
- package/legacy/web/images/toolbarButton-viewOutline.svg +3 -0
- package/legacy/web/images/toolbarButton-viewThumbnail.svg +3 -0
- package/legacy/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/legacy/web/images/toolbarButton-zoomIn.svg +3 -0
- package/legacy/web/images/toolbarButton-zoomOut.svg +3 -0
- package/legacy/web/images/treeitem-collapsed.svg +1 -0
- package/legacy/web/images/treeitem-expanded.svg +1 -0
- package/legacy/web/pdf_viewer.css +6463 -0
- package/legacy/web/pdf_viewer.d.mts +1 -0
- package/legacy/web/pdf_viewer.mjs +14798 -0
- package/legacy/web/pdf_viewer.mjs.map +1 -0
- package/legacy/webpack.mjs +26 -0
- package/package.json +33 -4
- package/standard_fonts/FoxitDingbats.pfb +0 -0
- package/standard_fonts/FoxitFixed.pfb +0 -0
- package/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/standard_fonts/FoxitSerif.pfb +0 -0
- package/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/standard_fonts/FoxitSymbol.pfb +0 -0
- package/standard_fonts/LICENSE_FOXIT +27 -0
- package/standard_fonts/LICENSE_LIBERATION +363 -0
- package/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/types/external/brotli/decode.d.ts +5 -0
- package/types/external/jbig2/jbig2.d.ts +2 -0
- package/types/external/openjpeg/openjpeg.d.ts +2 -0
- package/types/external/qcms/qcms.d.ts +96 -0
- package/types/external/qcms/qcms_utils.d.ts +9 -0
- package/types/src/core/ascii_85_stream.d.ts +7 -0
- package/types/src/core/ascii_hex_stream.d.ts +7 -0
- package/types/src/core/base_stream.d.ts +52 -0
- package/types/src/core/brotli_stream.d.ts +9 -0
- package/types/src/core/calculate_md5.d.ts +1 -0
- package/types/src/core/calculate_sha256.d.ts +1 -0
- package/types/src/core/calculate_sha_other.d.ts +2 -0
- package/types/src/core/catalog.d.ts +169 -0
- package/types/src/core/ccitt_stream.d.ts +18 -0
- package/types/src/core/cleanup_helper.d.ts +1 -0
- package/types/src/core/colorspace.d.ts +168 -0
- package/types/src/core/colorspace_utils.d.ts +21 -0
- package/types/src/core/core_utils.d.ts +136 -0
- package/types/src/core/crypto.d.ts +135 -0
- package/types/src/core/decode_stream.d.ts +32 -0
- package/types/src/core/decrypt_stream.d.ts +9 -0
- package/types/src/core/file_spec.d.ts +67 -0
- package/types/src/core/flate_stream.d.ts +14 -0
- package/types/src/core/icc_colorspace.d.ts +21 -0
- package/types/src/core/image_resizer.d.ts +24 -0
- package/types/src/core/image_utils.d.ts +52 -0
- package/types/src/core/jbig2_ccittFax.d.ts +13 -0
- package/types/src/core/jbig2_stream.d.ts +17 -0
- package/types/src/core/jpeg_stream.d.ts +24 -0
- package/types/src/core/jpg.d.ts +58 -0
- package/types/src/core/jpx.d.ts +24 -0
- package/types/src/core/jpx_stream.d.ts +15 -0
- package/types/src/core/lzw_stream.d.ts +19 -0
- package/types/src/core/metadata_parser.d.ts +13 -0
- package/types/src/core/name_number_tree.d.ts +21 -0
- package/types/src/core/parser.d.ts +119 -0
- package/types/src/core/pattern.d.ts +61 -0
- package/types/src/core/predictor_stream.d.ts +14 -0
- package/types/src/core/primitives.d.ts +95 -0
- package/types/src/core/run_length_stream.d.ts +6 -0
- package/types/src/core/sasl_prep.d.ts +1 -0
- package/types/src/core/sound.d.ts +39 -0
- package/types/src/core/stream.d.ts +20 -0
- package/types/src/core/string_utils.d.ts +5 -0
- package/types/src/core/struct_tree.d.ts +93 -0
- package/types/src/core/unicode.d.ts +5 -0
- package/types/src/core/wasm_image.d.ts +21 -0
- package/types/src/core/xml_parser.d.ts +78 -0
- package/types/src/core/xref.d.ts +39 -0
- package/types/src/display/annotation_layer.d.ts +265 -0
- package/types/src/display/annotation_storage.d.ts +94 -0
- package/types/src/display/api.d.ts +1693 -0
- package/types/src/display/api_utils.d.ts +13 -0
- package/types/src/display/binary_data_factory.d.ts +22 -0
- package/types/src/display/canvas.d.ts +257 -0
- package/types/src/display/canvas_dependency_tracker.d.ts +221 -0
- package/types/src/display/canvas_factory.d.ts +29 -0
- package/types/src/display/content_disposition.d.ts +6 -0
- package/types/src/display/display_utils.d.ts +172 -0
- package/types/src/display/draw_layer.d.ts +143 -0
- package/types/src/display/editor/alt_text.d.ts +34 -0
- package/types/src/display/editor/annotation_editor_layer.d.ts +226 -0
- package/types/src/display/editor/color_picker.d.ts +40 -0
- package/types/src/display/editor/comment.d.ts +59 -0
- package/types/src/display/editor/draw.d.ts +175 -0
- package/types/src/display/editor/drawers/contour.d.ts +3 -0
- package/types/src/display/editor/drawers/freedraw.d.ts +34 -0
- package/types/src/display/editor/drawers/highlight.d.ts +120 -0
- package/types/src/display/editor/drawers/inkdraw.d.ts +134 -0
- package/types/src/display/editor/drawers/outline.d.ts +81 -0
- package/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
- package/types/src/display/editor/editor.d.ts +581 -0
- package/types/src/display/editor/freetext.d.ts +63 -0
- package/types/src/display/editor/highlight.d.ts +85 -0
- package/types/src/display/editor/ink.d.ts +49 -0
- package/types/src/display/editor/signature.d.ts +77 -0
- package/types/src/display/editor/stamp.d.ts +49 -0
- package/types/src/display/editor/toolbar.d.ts +26 -0
- package/types/src/display/editor/tools.d.ts +503 -0
- package/types/src/display/fetch_stream.d.ts +7 -0
- package/types/src/display/filter_factory.d.ts +53 -0
- package/types/src/display/font_loader.d.ts +52 -0
- package/types/src/display/metadata.d.ts +10 -0
- package/types/src/display/network.d.ts +20 -0
- package/types/src/display/network_stream.d.ts +2 -0
- package/types/src/display/network_utils.d.ts +16 -0
- package/types/src/display/node_stream.d.ts +4 -0
- package/types/src/display/node_utils.d.ts +18 -0
- package/types/src/display/obj_bin_transform_display.d.ts +50 -0
- package/types/src/display/optional_content_config.d.ts +28 -0
- package/types/src/display/page_viewport.d.ts +137 -0
- package/types/src/display/pages_mapper.d.ts +78 -0
- package/types/src/display/pattern_helper.d.ts +88 -0
- package/types/src/display/pdf_objects.d.ts +38 -0
- package/types/src/display/svg_factory.d.ts +14 -0
- package/types/src/display/text_layer.d.ts +93 -0
- package/types/src/display/text_layer_images.d.ts +10 -0
- package/types/src/display/touch_manager.d.ts +55 -0
- package/types/src/display/transport_stream.d.ts +11 -0
- package/types/src/display/webgpu.d.ts +11 -0
- package/types/src/display/worker_options.d.ts +25 -0
- package/types/src/display/xfa_layer.d.ts +49 -0
- package/types/src/display/xfa_text.d.ts +18 -0
- package/types/src/pdf.d.ts +69 -0
- package/types/src/shared/base_pdf_stream.d.ts +120 -0
- package/types/src/shared/css_utils.d.ts +8 -0
- package/types/src/shared/image_utils.d.ts +28 -0
- package/types/src/shared/internal_evt.d.ts +7 -0
- package/types/src/shared/math_clamp.d.ts +1 -0
- package/types/src/shared/message_handler.d.ts +39 -0
- package/types/src/shared/murmurhash3.d.ts +7 -0
- package/types/src/shared/obj_bin_transform_utils.d.ts +27 -0
- package/types/src/shared/scripting_utils.d.ts +18 -0
- package/types/src/shared/util.d.ts +433 -0
- package/types/web/annotation_editor_layer_builder.d.ts +66 -0
- package/types/web/annotation_layer_builder.d.ts +107 -0
- package/types/web/app_options.d.ts +16 -0
- package/types/web/autolinker.d.ts +29 -0
- package/types/web/base_download_manager.d.ts +24 -0
- package/types/web/base_pdf_page_view.d.ts +29 -0
- package/types/web/comment_manager.d.ts +20 -0
- package/types/web/download_manager.d.ts +4 -0
- package/types/web/draw_layer_builder.d.ts +64 -0
- package/types/web/event_utils.d.ts +68 -0
- package/types/web/generic_scripting.d.ts +8 -0
- package/types/web/genericl10n.d.ts +18 -0
- package/types/web/internal_evt.d.ts +7 -0
- package/types/web/l10n.d.ts +31 -0
- package/types/web/menu.d.ts +11 -0
- package/types/web/pdf_find_controller.d.ts +142 -0
- package/types/web/pdf_find_utils.d.ts +10 -0
- package/types/web/pdf_history.d.ts +116 -0
- package/types/web/pdf_link_service.d.ts +148 -0
- package/types/web/pdf_page_detail_view.d.ts +27 -0
- package/types/web/pdf_page_view.d.ts +256 -0
- package/types/web/pdf_rendering_queue.d.ts +49 -0
- package/types/web/pdf_scripting_manager.component.d.ts +5 -0
- package/types/web/pdf_scripting_manager.d.ts +57 -0
- package/types/web/pdf_single_page_viewer.d.ts +7 -0
- package/types/web/pdf_thumbnail_view.d.ts +108 -0
- package/types/web/pdf_thumbnail_viewer.d.ts +179 -0
- package/types/web/pdf_viewer.component.d.ts +23 -0
- package/types/web/pdf_viewer.d.ts +653 -0
- package/types/web/renderable_view.d.ts +33 -0
- package/types/web/sidebar.d.ts +65 -0
- package/types/web/struct_tree_layer_builder.d.ts +39 -0
- package/types/web/text_accessibility.d.ts +46 -0
- package/types/web/text_highlighter.d.ts +62 -0
- package/types/web/text_layer_builder.d.ts +70 -0
- package/types/web/ui_utils.d.ts +260 -0
- package/types/web/xfa_layer_builder.d.ts +50 -0
- package/wasm/LICENSE_JBIG2 +196 -0
- package/wasm/LICENSE_OPENJPEG +39 -0
- package/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/wasm/LICENSE_QCMS +21 -0
- package/wasm/jbig2.wasm +0 -0
- package/wasm/jbig2_nowasm_fallback.js +15 -0
- package/wasm/openjpeg.wasm +0 -0
- package/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/wasm/qcms_bg.wasm +0 -0
- package/wasm/quickjs-eval.js +16 -0
- package/wasm/quickjs-eval.wasm +0 -0
- package/web/images/altText_add.svg +3 -0
- package/web/images/altText_disclaimer.svg +3 -0
- package/web/images/altText_done.svg +3 -0
- package/web/images/altText_spinner.svg +30 -0
- package/web/images/altText_warning.svg +3 -0
- package/web/images/annotation-check.svg +11 -0
- package/web/images/annotation-comment.svg +16 -0
- package/web/images/annotation-help.svg +26 -0
- package/web/images/annotation-insert.svg +10 -0
- package/web/images/annotation-key.svg +11 -0
- package/web/images/annotation-newparagraph.svg +11 -0
- package/web/images/annotation-noicon.svg +7 -0
- package/web/images/annotation-note.svg +42 -0
- package/web/images/annotation-paperclip.svg +6 -0
- package/web/images/annotation-paragraph.svg +16 -0
- package/web/images/annotation-pushpin.svg +7 -0
- package/web/images/checkmark.svg +5 -0
- package/web/images/comment-actionsButton.svg +3 -0
- package/web/images/comment-closeButton.svg +3 -0
- package/web/images/comment-editButton.svg +8 -0
- package/web/images/comment-popup-editButton.svg +5 -0
- package/web/images/cursor-editorFreeHighlight.svg +6 -0
- package/web/images/cursor-editorFreeText.svg +3 -0
- package/web/images/cursor-editorInk.svg +4 -0
- package/web/images/cursor-editorTextHighlight.svg +8 -0
- package/web/images/editor-toolbar-delete.svg +5 -0
- package/web/images/editor-toolbar-edit.svg +3 -0
- package/web/images/findbarButton-next.svg +3 -0
- package/web/images/findbarButton-previous.svg +3 -0
- package/web/images/gv-toolbarButton-download.svg +3 -0
- package/web/images/loading-icon.gif +0 -0
- package/web/images/loading.svg +1 -0
- package/web/images/messageBar_closingButton.svg +3 -0
- package/web/images/messageBar_info.svg +3 -0
- package/web/images/messageBar_warning.svg +3 -0
- package/web/images/pages_closeButton.svg +3 -0
- package/web/images/pages_selected.svg +7 -0
- package/web/images/pages_viewArrow.svg +3 -0
- package/web/images/pages_viewButton.svg +3 -0
- package/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/web/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/web/images/secondaryToolbarButton-handTool.svg +3 -0
- package/web/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/web/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/web/images/signature-properties-row-check.svg +4 -0
- package/web/images/toolbarButton-bookmark.svg +3 -0
- package/web/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/web/images/toolbarButton-download.svg +4 -0
- package/web/images/toolbarButton-editorFreeText.svg +5 -0
- package/web/images/toolbarButton-editorHighlight.svg +6 -0
- package/web/images/toolbarButton-editorInk.svg +4 -0
- package/web/images/toolbarButton-editorSignature.svg +6 -0
- package/web/images/toolbarButton-editorStamp.svg +8 -0
- package/web/images/toolbarButton-menuArrow.svg +3 -0
- package/web/images/toolbarButton-menuArrowNova.svg +3 -0
- package/web/images/toolbarButton-openFile.svg +3 -0
- package/web/images/toolbarButton-pageDown.svg +3 -0
- package/web/images/toolbarButton-pageUp.svg +3 -0
- package/web/images/toolbarButton-presentationMode.svg +3 -0
- package/web/images/toolbarButton-print.svg +3 -0
- package/web/images/toolbarButton-search.svg +3 -0
- package/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
- package/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
- package/web/images/toolbarButton-viewAttachments.svg +3 -0
- package/web/images/toolbarButton-viewLayers.svg +3 -0
- package/web/images/toolbarButton-viewOutline.svg +3 -0
- package/web/images/toolbarButton-viewThumbnail.svg +3 -0
- package/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/web/images/toolbarButton-zoomIn.svg +3 -0
- package/web/images/toolbarButton-zoomOut.svg +3 -0
- package/web/images/treeitem-collapsed.svg +1 -0
- package/web/images/treeitem-expanded.svg +1 -0
- package/web/pdf_viewer.css +6463 -0
- package/web/pdf_viewer.d.mts +1 -0
- package/web/pdf_viewer.mjs +9811 -0
- package/web/pdf_viewer.mjs.map +1 -0
- package/webpack.mjs +26 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export type PDFPageProxy = import("./api").PDFPageProxy;
|
|
2
|
+
export type PageViewport = import("./page_viewport").PageViewport;
|
|
3
|
+
export type OptionalContentConfig = any;
|
|
4
|
+
export type TextAccessibilityManager = import("../../web/text_accessibility.js").TextAccessibilityManager;
|
|
5
|
+
export type AnnotationEditorUIManager = any;
|
|
6
|
+
export type StructTreeLayerBuilder = import("../../web/struct_tree_layer_builder.js").StructTreeLayerBuilder;
|
|
7
|
+
export type CommentManager = import("../../web/comment_manager.js").CommentManager;
|
|
8
|
+
export type PDFLinkService = import("../../web/pdf_link_service.js").PDFLinkService;
|
|
9
|
+
export type BaseDownloadManager = import("../../web/base_download_manager.js").BaseDownloadManager;
|
|
10
|
+
export type AnnotationElementParameters = {
|
|
11
|
+
data: object;
|
|
12
|
+
layer: HTMLDivElement;
|
|
13
|
+
linkService: PDFLinkService;
|
|
14
|
+
downloadManager?: import("../../web/base_download_manager.js").BaseDownloadManager | undefined;
|
|
15
|
+
annotationStorage?: AnnotationStorage | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* - Path for image resources, mainly
|
|
18
|
+
* for annotation icons. Include trailing slash.
|
|
19
|
+
*/
|
|
20
|
+
imageResourcesPath?: string | undefined;
|
|
21
|
+
renderForms: boolean;
|
|
22
|
+
svgFactory: object;
|
|
23
|
+
enableScripting?: boolean | undefined;
|
|
24
|
+
hasJSActions?: boolean | undefined;
|
|
25
|
+
fieldObjects?: Map<any, any> | undefined;
|
|
26
|
+
};
|
|
27
|
+
export type AnnotationLayerParameters = {
|
|
28
|
+
viewport: PageViewport;
|
|
29
|
+
div: HTMLDivElement;
|
|
30
|
+
annotations: any[];
|
|
31
|
+
page: PDFPageProxy;
|
|
32
|
+
linkService: PDFLinkService;
|
|
33
|
+
downloadManager?: import("../../web/base_download_manager.js").BaseDownloadManager | undefined;
|
|
34
|
+
annotationStorage?: AnnotationStorage | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* - Path for image resources, mainly
|
|
37
|
+
* for annotation icons. Include trailing slash.
|
|
38
|
+
*/
|
|
39
|
+
imageResourcesPath?: string | undefined;
|
|
40
|
+
renderForms: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* - Enable embedded script execution.
|
|
43
|
+
*/
|
|
44
|
+
enableScripting?: boolean | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* - Some fields have JS actions.
|
|
47
|
+
* The default value is `false`.
|
|
48
|
+
*/
|
|
49
|
+
hasJSActions?: boolean | undefined;
|
|
50
|
+
fieldObjects?: Map<string, object[]> | null | undefined;
|
|
51
|
+
annotationCanvasMap?: Map<string, HTMLCanvasElement> | undefined;
|
|
52
|
+
accessibilityManager?: import("../../web/text_accessibility.js").TextAccessibilityManager | undefined;
|
|
53
|
+
annotationEditorUIManager?: AnnotationEditorUIManager;
|
|
54
|
+
structTreeLayer?: import("../../web/struct_tree_layer_builder.js").StructTreeLayerBuilder | undefined;
|
|
55
|
+
optionalContentConfig?: OptionalContentConfig;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* @typedef {object} AnnotationLayerParameters
|
|
59
|
+
* @property {PageViewport} viewport
|
|
60
|
+
* @property {HTMLDivElement} div
|
|
61
|
+
* @property {Array} annotations
|
|
62
|
+
* @property {PDFPageProxy} page
|
|
63
|
+
* @property {PDFLinkService} linkService
|
|
64
|
+
* @property {BaseDownloadManager} [downloadManager]
|
|
65
|
+
* @property {AnnotationStorage} [annotationStorage]
|
|
66
|
+
* @property {string} [imageResourcesPath] - Path for image resources, mainly
|
|
67
|
+
* for annotation icons. Include trailing slash.
|
|
68
|
+
* @property {boolean} renderForms
|
|
69
|
+
* @property {boolean} [enableScripting] - Enable embedded script execution.
|
|
70
|
+
* @property {boolean} [hasJSActions] - Some fields have JS actions.
|
|
71
|
+
* The default value is `false`.
|
|
72
|
+
* @property {Map<string, Array<object>> | null} [fieldObjects]
|
|
73
|
+
* @property {Map<string, HTMLCanvasElement>} [annotationCanvasMap]
|
|
74
|
+
* @property {TextAccessibilityManager} [accessibilityManager]
|
|
75
|
+
* @property {AnnotationEditorUIManager} [annotationEditorUIManager]
|
|
76
|
+
* @property {StructTreeLayerBuilder} [structTreeLayer]
|
|
77
|
+
* @property {OptionalContentConfig} [optionalContentConfig]
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Manage the layer containing all the annotations.
|
|
81
|
+
*/
|
|
82
|
+
export class AnnotationLayer {
|
|
83
|
+
/**
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private static get _defaultBorderStyle();
|
|
87
|
+
constructor({ div, accessibilityManager, annotationCanvasMap, annotationEditorUIManager, page, viewport, structTreeLayer, commentManager, linkService, annotationStorage, }: {
|
|
88
|
+
div: any;
|
|
89
|
+
accessibilityManager: any;
|
|
90
|
+
annotationCanvasMap: any;
|
|
91
|
+
annotationEditorUIManager: any;
|
|
92
|
+
page: any;
|
|
93
|
+
viewport: any;
|
|
94
|
+
structTreeLayer: any;
|
|
95
|
+
commentManager: any;
|
|
96
|
+
linkService: any;
|
|
97
|
+
annotationStorage: any;
|
|
98
|
+
});
|
|
99
|
+
zIndex: number;
|
|
100
|
+
div: any;
|
|
101
|
+
page: any;
|
|
102
|
+
viewport: any;
|
|
103
|
+
_annotationEditorUIManager: any;
|
|
104
|
+
_commentManager: any;
|
|
105
|
+
popupShow: any[] | undefined;
|
|
106
|
+
hasEditableAnnotations(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Render a new annotation layer with all annotation elements.
|
|
109
|
+
* @param {AnnotationLayerParameters} params
|
|
110
|
+
* @memberof AnnotationLayer
|
|
111
|
+
*/
|
|
112
|
+
render(params: AnnotationLayerParameters): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Add link annotations to the annotation layer.
|
|
115
|
+
* @param {Array<object>} annotations
|
|
116
|
+
*/
|
|
117
|
+
addLinkAnnotations(annotations: Array<object>): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Update the annotation elements on existing annotation layer.
|
|
120
|
+
* @param {AnnotationLayerParameters} viewport
|
|
121
|
+
* @memberof AnnotationLayer
|
|
122
|
+
*/
|
|
123
|
+
update({ viewport, optionalContentConfig }: AnnotationLayerParameters): void;
|
|
124
|
+
destroy(): void;
|
|
125
|
+
refreshCanvases(): void;
|
|
126
|
+
getEditableAnnotations(): MapIterator<any>;
|
|
127
|
+
getEditableAnnotation(id: any): any;
|
|
128
|
+
addFakeAnnotation(editor: any): EditorAnnotationElement;
|
|
129
|
+
removeAnnotation(id: any): void;
|
|
130
|
+
updateFakeAnnotations(editors: any): void;
|
|
131
|
+
togglePointerEvents(enabled?: boolean): void;
|
|
132
|
+
#private;
|
|
133
|
+
}
|
|
134
|
+
export class FreeTextAnnotationElement extends AnnotationElement {
|
|
135
|
+
constructor(parameters: any);
|
|
136
|
+
textContent: any;
|
|
137
|
+
textPosition: any;
|
|
138
|
+
annotationEditorType: number;
|
|
139
|
+
render(): HTMLElement | undefined;
|
|
140
|
+
}
|
|
141
|
+
export class HighlightAnnotationElement extends AnnotationElement {
|
|
142
|
+
constructor(parameters: any);
|
|
143
|
+
annotationEditorType: number;
|
|
144
|
+
render(): HTMLElement | undefined;
|
|
145
|
+
}
|
|
146
|
+
export class InkAnnotationElement extends AnnotationElement {
|
|
147
|
+
constructor(parameters: any);
|
|
148
|
+
containerClassName: string;
|
|
149
|
+
svgElementName: string;
|
|
150
|
+
annotationEditorType: number;
|
|
151
|
+
render(): HTMLElement | undefined;
|
|
152
|
+
getElementsToTriggerPopup(): any[];
|
|
153
|
+
#private;
|
|
154
|
+
}
|
|
155
|
+
export class StampAnnotationElement extends AnnotationElement {
|
|
156
|
+
constructor(parameters: any);
|
|
157
|
+
annotationEditorType: number;
|
|
158
|
+
render(): HTMLElement | undefined;
|
|
159
|
+
}
|
|
160
|
+
import { AnnotationStorage } from "./annotation_storage.js";
|
|
161
|
+
declare class EditorAnnotationElement extends AnnotationElement {
|
|
162
|
+
constructor(parameters: any);
|
|
163
|
+
editor: any;
|
|
164
|
+
render(): HTMLElement | undefined;
|
|
165
|
+
createOrUpdatePopup(): void;
|
|
166
|
+
remove(): void;
|
|
167
|
+
}
|
|
168
|
+
declare class AnnotationElement {
|
|
169
|
+
static _hasPopupData({ contentsObj, richText }: {
|
|
170
|
+
contentsObj: any;
|
|
171
|
+
richText: any;
|
|
172
|
+
}): boolean;
|
|
173
|
+
constructor(parameters: any, { isRenderable, ignoreBorder, createQuadrilaterals, }?: {
|
|
174
|
+
isRenderable?: boolean | undefined;
|
|
175
|
+
ignoreBorder?: boolean | undefined;
|
|
176
|
+
createQuadrilaterals?: boolean | undefined;
|
|
177
|
+
});
|
|
178
|
+
isRenderable: boolean;
|
|
179
|
+
data: any;
|
|
180
|
+
layer: any;
|
|
181
|
+
linkService: any;
|
|
182
|
+
downloadManager: any;
|
|
183
|
+
imageResourcesPath: any;
|
|
184
|
+
renderForms: any;
|
|
185
|
+
svgFactory: any;
|
|
186
|
+
annotationStorage: any;
|
|
187
|
+
enableComment: any;
|
|
188
|
+
enableScripting: any;
|
|
189
|
+
hasJSActions: any;
|
|
190
|
+
_fieldObjects: any;
|
|
191
|
+
parent: any;
|
|
192
|
+
hasOwnCommentButton: boolean;
|
|
193
|
+
contentElement: HTMLElement | undefined;
|
|
194
|
+
container: HTMLElement | undefined;
|
|
195
|
+
get _isEditable(): any;
|
|
196
|
+
get hasPopupData(): any;
|
|
197
|
+
get commentData(): any;
|
|
198
|
+
get hasCommentButton(): any;
|
|
199
|
+
get commentButtonPosition(): any;
|
|
200
|
+
_normalizePoint(point: any): any;
|
|
201
|
+
set commentText(text: any);
|
|
202
|
+
get commentText(): any;
|
|
203
|
+
removePopup(): void;
|
|
204
|
+
popup: any;
|
|
205
|
+
updateEdited(params: any): void;
|
|
206
|
+
resetEdited(): void;
|
|
207
|
+
/**
|
|
208
|
+
* Create an empty container for the annotation's HTML element.
|
|
209
|
+
* @private
|
|
210
|
+
* @param {boolean} ignoreBorder
|
|
211
|
+
* @memberof AnnotationElement
|
|
212
|
+
* @returns {HTMLElement} A section element.
|
|
213
|
+
*/
|
|
214
|
+
private _createContainer;
|
|
215
|
+
setRotation(angle: any, container?: HTMLElement | undefined): void;
|
|
216
|
+
get _commonActions(): any;
|
|
217
|
+
_dispatchEventFromSandbox(actions: any, jsEvent: any): void;
|
|
218
|
+
_setDefaultPropertiesFromJS(element: any): void;
|
|
219
|
+
/**
|
|
220
|
+
* Create quadrilaterals from the annotation's quadpoints.
|
|
221
|
+
* @private
|
|
222
|
+
* @memberof AnnotationElement
|
|
223
|
+
*/
|
|
224
|
+
private _createQuadrilaterals;
|
|
225
|
+
/**
|
|
226
|
+
* Create a popup for the annotation's HTML element. This is used for
|
|
227
|
+
* annotations that do not have a Popup entry in the dictionary, but
|
|
228
|
+
* are of a type that works with popups (such as Highlight annotations).
|
|
229
|
+
* @param {object} [popupData] - The data for the popup, if any.
|
|
230
|
+
* @private
|
|
231
|
+
* @memberof AnnotationElement
|
|
232
|
+
*/
|
|
233
|
+
private _createPopup;
|
|
234
|
+
get hasPopupElement(): boolean;
|
|
235
|
+
get extraPopupElement(): null;
|
|
236
|
+
/**
|
|
237
|
+
* Render the annotation's HTML element(s).
|
|
238
|
+
* @public
|
|
239
|
+
* @memberof AnnotationElement
|
|
240
|
+
*/
|
|
241
|
+
public render(): void;
|
|
242
|
+
/**
|
|
243
|
+
* @private
|
|
244
|
+
* @returns {Array}
|
|
245
|
+
*/
|
|
246
|
+
private _getElementsByName;
|
|
247
|
+
show(): void;
|
|
248
|
+
hide(): void;
|
|
249
|
+
/**
|
|
250
|
+
* Get the HTML element(s) which can trigger a popup when clicked or hovered.
|
|
251
|
+
* @public
|
|
252
|
+
* @memberof AnnotationElement
|
|
253
|
+
* @returns {Array<HTMLElement>|HTMLElement} An array of elements or an
|
|
254
|
+
* element.
|
|
255
|
+
*/
|
|
256
|
+
public getElementsToTriggerPopup(): Array<HTMLElement> | HTMLElement;
|
|
257
|
+
addHighlightArea(): void;
|
|
258
|
+
_editOnDoubleClick(): void;
|
|
259
|
+
updateOC(optionalContentConfig: any): void;
|
|
260
|
+
get width(): number;
|
|
261
|
+
get height(): number;
|
|
262
|
+
_setBackgroundColor(element: any): void;
|
|
263
|
+
#private;
|
|
264
|
+
}
|
|
265
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key/value storage for annotation data in forms.
|
|
3
|
+
*/
|
|
4
|
+
export class AnnotationStorage {
|
|
5
|
+
onSetModified: null;
|
|
6
|
+
onResetModified: null;
|
|
7
|
+
onAnnotationEditor: null;
|
|
8
|
+
/**
|
|
9
|
+
* Get the value for a given key if it exists, or return the default value.
|
|
10
|
+
* @param {string} key
|
|
11
|
+
* @param {object} defaultValue
|
|
12
|
+
* @returns {object}
|
|
13
|
+
*/
|
|
14
|
+
getValue(key: string, defaultValue: object): object;
|
|
15
|
+
/**
|
|
16
|
+
* Get the value for a given key.
|
|
17
|
+
* @param {string} key
|
|
18
|
+
* @returns {object}
|
|
19
|
+
*/
|
|
20
|
+
getRawValue(key: string): object;
|
|
21
|
+
/**
|
|
22
|
+
* Remove a value from the storage.
|
|
23
|
+
* @param {string} key
|
|
24
|
+
*/
|
|
25
|
+
remove(key: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Set the value for a given key
|
|
28
|
+
* @param {string} key
|
|
29
|
+
* @param {object} value
|
|
30
|
+
*/
|
|
31
|
+
setValue(key: string, value: object): void;
|
|
32
|
+
/**
|
|
33
|
+
* Check if the storage contains the given key.
|
|
34
|
+
* @param {string} key
|
|
35
|
+
* @returns {boolean}
|
|
36
|
+
*/
|
|
37
|
+
has(key: string): boolean;
|
|
38
|
+
get size(): number;
|
|
39
|
+
resetModified(): void;
|
|
40
|
+
/**
|
|
41
|
+
* @returns {PrintAnnotationStorage}
|
|
42
|
+
*/
|
|
43
|
+
get print(): PrintAnnotationStorage;
|
|
44
|
+
/**
|
|
45
|
+
* PLEASE NOTE: Only intended for usage within the API itself.
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
get serializable(): Readonly<{
|
|
49
|
+
map: null;
|
|
50
|
+
hash: "";
|
|
51
|
+
transfer: undefined;
|
|
52
|
+
}> | {
|
|
53
|
+
map: Map<any, any>;
|
|
54
|
+
hash: string;
|
|
55
|
+
transfer: any[];
|
|
56
|
+
};
|
|
57
|
+
get editorStats(): any;
|
|
58
|
+
resetModifiedIds(): void;
|
|
59
|
+
updateEditor(annotationId: any, data: any): boolean;
|
|
60
|
+
getEditor(annotationId: any): any;
|
|
61
|
+
/**
|
|
62
|
+
* @returns {{ids: Set<string>, hash: string}}
|
|
63
|
+
*/
|
|
64
|
+
get modifiedIds(): {
|
|
65
|
+
ids: Set<string>;
|
|
66
|
+
hash: string;
|
|
67
|
+
};
|
|
68
|
+
[Symbol.iterator](): MapIterator<[any, any]>;
|
|
69
|
+
#private;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A special `AnnotationStorage` for use during printing, where the serializable
|
|
73
|
+
* data is *frozen* upon initialization, to prevent scripting from modifying its
|
|
74
|
+
* contents. (Necessary since printing is triggered synchronously in browsers.)
|
|
75
|
+
*/
|
|
76
|
+
export class PrintAnnotationStorage extends AnnotationStorage {
|
|
77
|
+
constructor(parent: any);
|
|
78
|
+
/**
|
|
79
|
+
* PLEASE NOTE: Only intended for usage within the API itself.
|
|
80
|
+
* @ignore
|
|
81
|
+
*/
|
|
82
|
+
get serializable(): Readonly<{
|
|
83
|
+
map: null;
|
|
84
|
+
hash: "";
|
|
85
|
+
transfer: undefined;
|
|
86
|
+
}>;
|
|
87
|
+
get modifiedIds(): any;
|
|
88
|
+
#private;
|
|
89
|
+
}
|
|
90
|
+
export const SerializableEmpty: Readonly<{
|
|
91
|
+
map: null;
|
|
92
|
+
hash: "";
|
|
93
|
+
transfer: undefined;
|
|
94
|
+
}>;
|