@pdftools/four-heights-pdf-web-viewer 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +446 -0
- package/README.md +145 -0
- package/css/pdf-web-viewer.css +2407 -0
- package/doc/PdfWebViewer.pdf +0 -0
- package/es6/common/Checkbox.d.ts +9 -0
- package/es6/common/Checkbox.js +8 -0
- package/es6/common/Color.d.ts +23 -0
- package/es6/common/Color.js +118 -0
- package/es6/common/ColorPicker.d.ts +15 -0
- package/es6/common/ColorPicker.js +46 -0
- package/es6/common/Contextbar.d.ts +6 -0
- package/es6/common/Contextbar.js +19 -0
- package/es6/common/DragMoveHandler.d.ts +51 -0
- package/es6/common/DragMoveHandler.js +175 -0
- package/es6/common/Dropdown.d.ts +36 -0
- package/es6/common/Dropdown.js +76 -0
- package/es6/common/DropdownMenu.d.ts +9 -0
- package/es6/common/DropdownMenu.js +10 -0
- package/es6/common/DropdownSeparator.d.ts +3 -0
- package/es6/common/DropdownSeparator.js +6 -0
- package/es6/common/Icon.d.ts +13 -0
- package/es6/common/Icon.js +8 -0
- package/es6/common/Loader.d.ts +3 -0
- package/es6/common/Loader.js +6 -0
- package/es6/common/RangeSlider.d.ts +17 -0
- package/es6/common/RangeSlider.js +42 -0
- package/es6/common/StrokeStylePicker.d.ts +11 -0
- package/es6/common/StrokeStylePicker.js +20 -0
- package/es6/common/StrokeWidthPicker.d.ts +11 -0
- package/es6/common/StrokeWidthPicker.js +20 -0
- package/es6/common/Toolbar.d.ts +10 -0
- package/es6/common/Toolbar.js +6 -0
- package/es6/common/ToolbarButton.d.ts +14 -0
- package/es6/common/ToolbarButton.js +21 -0
- package/es6/common/ToolbarFileButton.d.ts +15 -0
- package/es6/common/ToolbarFileButton.js +27 -0
- package/es6/common/ToolbarItemGroup.d.ts +8 -0
- package/es6/common/ToolbarItemGroup.js +12 -0
- package/es6/common/ToolbarSeparator.d.ts +3 -0
- package/es6/common/ToolbarSeparator.js +6 -0
- package/es6/common/Tools.d.ts +10 -0
- package/es6/common/Tools.js +89 -0
- package/es6/common/TooltipManager.d.ts +12 -0
- package/es6/common/TooltipManager.js +54 -0
- package/es6/common/TranslationManager.d.ts +11 -0
- package/es6/common/TranslationManager.js +61 -0
- package/es6/common/classNames.d.ts +2 -0
- package/es6/common/classNames.js +18 -0
- package/es6/common/formatDate.d.ts +1 -0
- package/es6/common/formatDate.js +1 -0
- package/es6/common/icons.d.ts +13 -0
- package/es6/common/icons.js +412 -0
- package/es6/common/utils.d.ts +2 -0
- package/es6/common/utils.js +19 -0
- package/es6/custom/history.d.ts +2 -0
- package/es6/custom/history.js +59 -0
- package/es6/index.d.ts +5 -0
- package/es6/index.js +5 -0
- package/es6/lib/hyperapp/index.d.ts +108 -0
- package/es6/lib/hyperapp/index.js +327 -0
- package/es6/modules/CanvasLayer.d.ts +32 -0
- package/es6/modules/CanvasLayer.js +83 -0
- package/es6/modules/CanvasModule.d.ts +59 -0
- package/es6/modules/CanvasModule.js +98 -0
- package/es6/modules/eraser/EraserLayer.d.ts +13 -0
- package/es6/modules/eraser/EraserLayer.js +141 -0
- package/es6/modules/eraser/EraserModule.d.ts +19 -0
- package/es6/modules/eraser/EraserModule.js +34 -0
- package/es6/modules/eraser/EraserToolbar.d.ts +10 -0
- package/es6/modules/eraser/EraserToolbar.js +30 -0
- package/es6/modules/form-fields/CheckBoxWidget.d.ts +9 -0
- package/es6/modules/form-fields/CheckBoxWidget.js +45 -0
- package/es6/modules/form-fields/ComboBoxWidget.d.ts +22 -0
- package/es6/modules/form-fields/ComboBoxWidget.js +152 -0
- package/es6/modules/form-fields/EditFormFieldLayer.d.ts +17 -0
- package/es6/modules/form-fields/EditFormFieldLayer.js +238 -0
- package/es6/modules/form-fields/FormFieldModule.d.ts +15 -0
- package/es6/modules/form-fields/FormFieldModule.js +27 -0
- package/es6/modules/form-fields/ListBoxWidget.d.ts +9 -0
- package/es6/modules/form-fields/ListBoxWidget.js +73 -0
- package/es6/modules/form-fields/RadioButtonWidget.d.ts +9 -0
- package/es6/modules/form-fields/RadioButtonWidget.js +45 -0
- package/es6/modules/form-fields/SelectListWidget.d.ts +9 -0
- package/es6/modules/form-fields/SelectListWidget.js +45 -0
- package/es6/modules/form-fields/TextBoxWidget.d.ts +9 -0
- package/es6/modules/form-fields/TextBoxWidget.js +53 -0
- package/es6/modules/form-fields/WidgetBase.d.ts +23 -0
- package/es6/modules/form-fields/WidgetBase.js +29 -0
- package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.d.ts +19 -0
- package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.js +181 -0
- package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.d.ts +21 -0
- package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.js +37 -0
- package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.d.ts +20 -0
- package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.js +211 -0
- package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.d.ts +50 -0
- package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.js +118 -0
- package/es6/modules/freetext-annotation/FreetextAnnotationModule.d.ts +28 -0
- package/es6/modules/freetext-annotation/FreetextAnnotationModule.js +58 -0
- package/es6/modules/freetext-annotation/RichTextEditor.d.ts +31 -0
- package/es6/modules/freetext-annotation/RichTextEditor.js +223 -0
- package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.d.ts +31 -0
- package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.js +289 -0
- package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.d.ts +20 -0
- package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.js +52 -0
- package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.d.ts +15 -0
- package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.js +104 -0
- package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.d.ts +15 -0
- package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.js +28 -0
- package/es6/modules/highlight-annotation/HighlightAnnotationModule.d.ts +27 -0
- package/es6/modules/highlight-annotation/HighlightAnnotationModule.js +54 -0
- package/es6/modules/image-annotations/ImageAnnotationModule.d.ts +23 -0
- package/es6/modules/image-annotations/ImageAnnotationModule.js +169 -0
- package/es6/modules/index.d.ts +13 -0
- package/es6/modules/index.js +13 -0
- package/es6/modules/ink-annotation/AddInkAnnotationLayer.d.ts +40 -0
- package/es6/modules/ink-annotation/AddInkAnnotationLayer.js +503 -0
- package/es6/modules/ink-annotation/AddInkAnnotationToolbar.d.ts +30 -0
- package/es6/modules/ink-annotation/AddInkAnnotationToolbar.js +53 -0
- package/es6/modules/ink-annotation/EditInkAnnotationLayer.d.ts +20 -0
- package/es6/modules/ink-annotation/EditInkAnnotationLayer.js +137 -0
- package/es6/modules/ink-annotation/EditInkAnnotationToolbar.d.ts +25 -0
- package/es6/modules/ink-annotation/EditInkAnnotationToolbar.js +47 -0
- package/es6/modules/ink-annotation/InkAnnotationModule.d.ts +27 -0
- package/es6/modules/ink-annotation/InkAnnotationModule.js +50 -0
- package/es6/modules/popup/Popup.d.ts +64 -0
- package/es6/modules/popup/Popup.js +360 -0
- package/es6/modules/popup/PopupLayer.d.ts +31 -0
- package/es6/modules/popup/PopupLayer.js +509 -0
- package/es6/modules/popup/PopupModule.d.ts +16 -0
- package/es6/modules/popup/PopupModule.js +25 -0
- package/es6/modules/print-service/PrintServiceDialog.d.ts +30 -0
- package/es6/modules/print-service/PrintServiceDialog.js +134 -0
- package/es6/modules/print-service/PrintServiceLayer.d.ts +24 -0
- package/es6/modules/print-service/PrintServiceLayer.js +310 -0
- package/es6/modules/print-service/PrintServiceModule.d.ts +18 -0
- package/es6/modules/print-service/PrintServiceModule.js +30 -0
- package/es6/modules/shape-annotations/AddShapeAnnotationLayer.d.ts +24 -0
- package/es6/modules/shape-annotations/AddShapeAnnotationLayer.js +210 -0
- package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.d.ts +26 -0
- package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.js +69 -0
- package/es6/modules/shape-annotations/EditShapeAnnotationLayer.d.ts +19 -0
- package/es6/modules/shape-annotations/EditShapeAnnotationLayer.js +148 -0
- package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.d.ts +24 -0
- package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.js +57 -0
- package/es6/modules/shape-annotations/ShapeAnnotationModule.d.ts +28 -0
- package/es6/modules/shape-annotations/ShapeAnnotationModule.js +50 -0
- package/es6/modules/stamp-annotation/AddStampAnnotationLayer.d.ts +19 -0
- package/es6/modules/stamp-annotation/AddStampAnnotationLayer.js +257 -0
- package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.d.ts +17 -0
- package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.js +68 -0
- package/es6/modules/stamp-annotation/StampAnnotationModule.d.ts +20 -0
- package/es6/modules/stamp-annotation/StampAnnotationModule.js +35 -0
- package/es6/modules/text-annotation/AddTextAnnotationLayer.d.ts +14 -0
- package/es6/modules/text-annotation/AddTextAnnotationLayer.js +132 -0
- package/es6/modules/text-annotation/AddTextAnnotationToolbar.d.ts +15 -0
- package/es6/modules/text-annotation/AddTextAnnotationToolbar.js +27 -0
- package/es6/modules/text-annotation/TextAnnotationModule.d.ts +19 -0
- package/es6/modules/text-annotation/TextAnnotationModule.js +34 -0
- package/es6/pdf-viewer-api/ImageContainer.d.ts +10 -0
- package/es6/pdf-viewer-api/ImageContainer.js +43 -0
- package/es6/pdf-viewer-api/PdfViewerApi.d.ts +463 -0
- package/es6/pdf-viewer-api/PdfViewerApi.js +732 -0
- package/es6/pdf-viewer-api/PdfViewingWrapper.d.ts +178 -0
- package/es6/pdf-viewer-api/PdfViewingWrapper.js +2037 -0
- package/es6/pdf-viewer-api/annotationDefaultBehaviors.d.ts +3 -0
- package/es6/pdf-viewer-api/annotationDefaultBehaviors.js +30 -0
- package/es6/pdf-viewer-api/enums.d.ts +100 -0
- package/es6/pdf-viewer-api/enums.js +113 -0
- package/es6/pdf-viewer-api/index.d.ts +3 -0
- package/es6/pdf-viewer-api/index.js +3 -0
- package/es6/pdf-viewer-api/types.d.ts +284 -0
- package/es6/pdf-viewer-api/types.js +6 -0
- package/es6/pdf-viewer-canvas/CanvasEvents.d.ts +76 -0
- package/es6/pdf-viewer-canvas/CanvasEvents.js +345 -0
- package/es6/pdf-viewer-canvas/PdfViewerCanvas.d.ts +175 -0
- package/es6/pdf-viewer-canvas/PdfViewerCanvas.js +1226 -0
- package/es6/pdf-viewer-canvas/state/annotations.d.ts +36 -0
- package/es6/pdf-viewer-canvas/state/annotations.js +157 -0
- package/es6/pdf-viewer-canvas/state/appState.d.ts +10 -0
- package/es6/pdf-viewer-canvas/state/appState.js +60 -0
- package/es6/pdf-viewer-canvas/state/canvas.d.ts +31 -0
- package/es6/pdf-viewer-canvas/state/canvas.js +41 -0
- package/es6/pdf-viewer-canvas/state/document.d.ts +50 -0
- package/es6/pdf-viewer-canvas/state/document.js +99 -0
- package/es6/pdf-viewer-canvas/state/pointer.d.ts +31 -0
- package/es6/pdf-viewer-canvas/state/pointer.js +31 -0
- package/es6/pdf-viewer-canvas/state/scroll.d.ts +22 -0
- package/es6/pdf-viewer-canvas/state/scroll.js +25 -0
- package/es6/pdf-viewer-canvas/state/search.d.ts +36 -0
- package/es6/pdf-viewer-canvas/state/search.js +27 -0
- package/es6/pdf-viewer-canvas/state/store.d.ts +39 -0
- package/es6/pdf-viewer-canvas/state/store.js +52 -0
- package/es6/pdf-viewer-canvas/state/viewer.d.ts +91 -0
- package/es6/pdf-viewer-canvas/state/viewer.js +175 -0
- package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.d.ts +28 -0
- package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.js +452 -0
- package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.d.ts +9 -0
- package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.js +25 -0
- package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.d.ts +10 -0
- package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.js +149 -0
- package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.d.ts +48 -0
- package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.js +308 -0
- package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.d.ts +19 -0
- package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.js +289 -0
- package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.d.ts +31 -0
- package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.js +106 -0
- package/es6/pdf-viewer-canvas/view-layers/canvasShapes.d.ts +11 -0
- package/es6/pdf-viewer-canvas/view-layers/canvasShapes.js +149 -0
- package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.d.ts +3 -0
- package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.js +10 -0
- package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.d.ts +52 -0
- package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.js +377 -0
- package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.d.ts +47 -0
- package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.js +102 -0
- package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.d.ts +14 -0
- package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.js +36 -0
- package/es6/pdf-viewing/PdfViewing.d.ts +4865 -0
- package/es6/pdf-viewing/PdfViewing.js +9611 -0
- package/es6/pdf-web-viewer/PdfWebViewer.d.ts +372 -0
- package/es6/pdf-web-viewer/PdfWebViewer.js +1386 -0
- package/es6/pdf-web-viewer/UserSettings.d.ts +8 -0
- package/es6/pdf-web-viewer/UserSettings.js +40 -0
- package/es6/pdf-web-viewer/WebViewerOptions.d.ts +387 -0
- package/es6/pdf-web-viewer/WebViewerOptions.js +582 -0
- package/es6/pdf-web-viewer/state/index.d.ts +80 -0
- package/es6/pdf-web-viewer/state/index.js +98 -0
- package/es6/pdf-web-viewer/state/layout.d.ts +24 -0
- package/es6/pdf-web-viewer/state/layout.js +21 -0
- package/es6/pdf-web-viewer/state/mobile.d.ts +16 -0
- package/es6/pdf-web-viewer/state/mobile.js +11 -0
- package/es6/pdf-web-viewer/state/navigationPanel.d.ts +61 -0
- package/es6/pdf-web-viewer/state/navigationPanel.js +84 -0
- package/es6/pdf-web-viewer/state/passwordForm.d.ts +18 -0
- package/es6/pdf-web-viewer/state/passwordForm.js +21 -0
- package/es6/pdf-web-viewer/state/pdfDocument.d.ts +31 -0
- package/es6/pdf-web-viewer/state/pdfDocument.js +41 -0
- package/es6/pdf-web-viewer/state/search.d.ts +29 -0
- package/es6/pdf-web-viewer/state/search.js +23 -0
- package/es6/pdf-web-viewer/views/App.d.ts +4 -0
- package/es6/pdf-web-viewer/views/App.js +19 -0
- package/es6/pdf-web-viewer/views/CustomButtons.d.ts +9 -0
- package/es6/pdf-web-viewer/views/CustomButtons.js +18 -0
- package/es6/pdf-web-viewer/views/DropZone.d.ts +9 -0
- package/es6/pdf-web-viewer/views/DropZone.js +53 -0
- package/es6/pdf-web-viewer/views/Layout.d.ts +4 -0
- package/es6/pdf-web-viewer/views/Layout.js +22 -0
- package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.js +21 -0
- package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.js +35 -0
- package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.js +22 -0
- package/es6/pdf-web-viewer/views/appbar/AppBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/AppBar.js +26 -0
- package/es6/pdf-web-viewer/views/appbar/DocumentBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/DocumentBar.js +36 -0
- package/es6/pdf-web-viewer/views/appbar/Menu.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/Menu.js +80 -0
- package/es6/pdf-web-viewer/views/appbar/NavigationBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/NavigationBar.js +74 -0
- package/es6/pdf-web-viewer/views/appbar/SearchBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/SearchBar.js +83 -0
- package/es6/pdf-web-viewer/views/appbar/SearchOptions.d.ts +10 -0
- package/es6/pdf-web-viewer/views/appbar/SearchOptions.js +55 -0
- package/es6/pdf-web-viewer/views/appbar/ViewBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/ViewBar.js +52 -0
- package/es6/pdf-web-viewer/views/appbar/ZoomBar.d.ts +4 -0
- package/es6/pdf-web-viewer/views/appbar/ZoomBar.js +18 -0
- package/es6/pdf-web-viewer/views/modal/ApplicationError.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/ApplicationError.js +25 -0
- package/es6/pdf-web-viewer/views/modal/LoadApplication.d.ts +3 -0
- package/es6/pdf-web-viewer/views/modal/LoadApplication.js +6 -0
- package/es6/pdf-web-viewer/views/modal/LoadFile.d.ts +3 -0
- package/es6/pdf-web-viewer/views/modal/LoadFile.js +10 -0
- package/es6/pdf-web-viewer/views/modal/Modal.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/Modal.js +39 -0
- package/es6/pdf-web-viewer/views/modal/OpenFile.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/OpenFile.js +30 -0
- package/es6/pdf-web-viewer/views/modal/OpenFileError.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/OpenFileError.js +13 -0
- package/es6/pdf-web-viewer/views/modal/PasswordForm.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/PasswordForm.js +54 -0
- package/es6/pdf-web-viewer/views/modal/SaveFile.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/SaveFile.js +10 -0
- package/es6/pdf-web-viewer/views/modal/UnsavedChanges.d.ts +4 -0
- package/es6/pdf-web-viewer/views/modal/UnsavedChanges.js +32 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationList.d.ts +8 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationList.js +26 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.d.ts +8 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.js +158 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.d.ts +4 -0
- package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.js +11 -0
- package/es6/pdf-web-viewer/views/navigation/NavigationPanel.d.ts +4 -0
- package/es6/pdf-web-viewer/views/navigation/NavigationPanel.js +50 -0
- package/es6/pdf-web-viewer/views/navigation/OutlineList.d.ts +12 -0
- package/es6/pdf-web-viewer/views/navigation/OutlineList.js +19 -0
- package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.d.ts +4 -0
- package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.js +10 -0
- package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.d.ts +16 -0
- package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.js +32 -0
- package/package.json +24 -0
- package/pdfwebviewer/PdfViewing.data +0 -0
- package/pdfwebviewer/PdfViewing_Main.js +1 -0
- package/pdfwebviewer/PdfViewing_Main.wasm +0 -0
- package/pdfwebviewer/PdfViewing_Worker.js +1 -0
- package/pdfwebviewer/PdfViewing_Worker.wasm +0 -0
- package/pdfwebviewer/pdf-web-viewer.css +2407 -0
- package/pdfwebviewer/pdf-web-viewer.development.js +25955 -0
- package/pdfwebviewer/pdf-web-viewer.min.js +1 -0
- package/pdfwebviewer/translations.de.json +151 -0
- package/pdfwebviewer/translations.en.json +151 -0
- package/pdfwebviewer/translations.fr.json +151 -0
- package/pdfwebviewer/translations.it.json +151 -0
- package/scss/common/_breakpoints.scss +44 -0
- package/scss/common/_buttons.scss +42 -0
- package/scss/common/_colorpicker.scss +89 -0
- package/scss/common/_common.scss +21 -0
- package/scss/common/_contextbar.scss +44 -0
- package/scss/common/_dropdown.scss +176 -0
- package/scss/common/_icon.scss +9 -0
- package/scss/common/_index.scss +19 -0
- package/scss/common/_loader.scss +30 -0
- package/scss/common/_rangeslider.scss +24 -0
- package/scss/common/_scrollbars.scss +64 -0
- package/scss/common/_stroke-style-picker.scss +64 -0
- package/scss/common/_stroke-width-picker.scss +23 -0
- package/scss/common/_toolbar.scss +117 -0
- package/scss/common/_tooltip.scss +39 -0
- package/scss/modules/_eraser.scss +28 -0
- package/scss/modules/_forms.scss +56 -0
- package/scss/modules/_highlightannotation.scss +12 -0
- package/scss/modules/_index.scss +5 -0
- package/scss/modules/_inkannotation.scss +41 -0
- package/scss/modules/_stampannotation.scss +19 -0
- package/scss/pdf-viewer-canvas/_annotationborder.scss +107 -0
- package/scss/pdf-viewer-canvas/_busy-loader.scss +53 -0
- package/scss/pdf-viewer-canvas/_freetexteditor.scss +28 -0
- package/scss/pdf-viewer-canvas/_index.scss +7 -0
- package/scss/pdf-viewer-canvas/_layout.scss +52 -0
- package/scss/pdf-viewer-canvas/_popup.scss +217 -0
- package/scss/pdf-viewer-canvas/_printservice.scss +171 -0
- package/scss/pdf-viewer-canvas/_textselection.scss +17 -0
- package/scss/pdf-web-viewer/_annotationbar.scss +47 -0
- package/scss/pdf-web-viewer/_index.scss +8 -0
- package/scss/pdf-web-viewer/_layout.scss +63 -0
- package/scss/pdf-web-viewer/_modal.scss +186 -0
- package/scss/pdf-web-viewer/_navigationpanel.scss +398 -0
- package/scss/pdf-web-viewer/_searchbar.scss +47 -0
- package/scss/pdf-web-viewer/_toolbar.scss +134 -0
- package/scss/pdf-web-viewer/_viewer.scss +54 -0
- package/scss/pdf-web-viewer.scss +1 -0
- package/scss/themes/default/_light.scss +32 -0
- package/scss/themes/default/_mixins.scss +129 -0
- package/scss/themes/default/_theme.scss +161 -0
- package/scss/themes/pdf-web-viewer.scss +1 -0
- package/umd/pdf-web-viewer.development.js +25955 -0
- package/umd/pdf-web-viewer.development.js.map +1 -0
- package/umd/pdf-web-viewer.min.js +1 -0
- package/wasm/PdfViewing.data +0 -0
- package/wasm/PdfViewing_Main.js +1 -0
- package/wasm/PdfViewing_Main.wasm +0 -0
- package/wasm/PdfViewing_Worker.js +1 -0
- package/wasm/PdfViewing_Worker.wasm +0 -0
- package/wasm/translations.de.json +151 -0
- package/wasm/translations.en.json +151 -0
- package/wasm/translations.fr.json +151 -0
- package/wasm/translations.it.json +151 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
/** internal */
|
|
2
|
+
export class CanvasEvents {
|
|
3
|
+
constructor(element) {
|
|
4
|
+
this.eventListeners = new Map();
|
|
5
|
+
this.trackEvents = true;
|
|
6
|
+
this.startPosX = 0;
|
|
7
|
+
this.startPosY = 0;
|
|
8
|
+
this.multiTouch = false;
|
|
9
|
+
this.pinch = false;
|
|
10
|
+
this.dragging = false;
|
|
11
|
+
this.lastTouchPosX = 0;
|
|
12
|
+
this.lastTouchPosY = 0;
|
|
13
|
+
this.lastPinchDiv = 0;
|
|
14
|
+
this.lastPinchPosX = 0;
|
|
15
|
+
this.lastPinchPosY = 0;
|
|
16
|
+
this.lastTouchX1 = 0;
|
|
17
|
+
this.lastTouchY1 = 0;
|
|
18
|
+
this.lastTouchX2 = 0;
|
|
19
|
+
this.lastTouchY2 = 0;
|
|
20
|
+
this.clickTimer = null;
|
|
21
|
+
this.clickDuration = 250;
|
|
22
|
+
this.dblClickTimer = null;
|
|
23
|
+
this.dblClickDuration = 250;
|
|
24
|
+
this.longPressTimer = null;
|
|
25
|
+
this.longPressDuration = 750;
|
|
26
|
+
this.onMouseDown = this.onMouseDown.bind(this);
|
|
27
|
+
this.onTouchStart = this.onTouchStart.bind(this);
|
|
28
|
+
this.onStart = this.onStart.bind(this);
|
|
29
|
+
this.onMouseMove = this.onMouseMove.bind(this);
|
|
30
|
+
this.onTouchMove = this.onTouchMove.bind(this);
|
|
31
|
+
this.onMove = this.onMove.bind(this);
|
|
32
|
+
this.onMouseUp = this.onMouseUp.bind(this);
|
|
33
|
+
this.onTouchEnd = this.onTouchEnd.bind(this);
|
|
34
|
+
this.onEnd = this.onEnd.bind(this);
|
|
35
|
+
this.suspend = this.suspend.bind(this);
|
|
36
|
+
this.resume = this.resume.bind(this);
|
|
37
|
+
this.element = element;
|
|
38
|
+
this.element.addEventListener('mousedown', this.onMouseDown, {
|
|
39
|
+
passive: true,
|
|
40
|
+
});
|
|
41
|
+
this.element.addEventListener('mousemove', this.onMouseMove, {
|
|
42
|
+
passive: true,
|
|
43
|
+
});
|
|
44
|
+
this.element.addEventListener('touchstart', this.onTouchStart, {
|
|
45
|
+
passive: false,
|
|
46
|
+
});
|
|
47
|
+
window.addEventListener('pdfwebviewer.DragMoveHandlerStart', () => {
|
|
48
|
+
this.suspend();
|
|
49
|
+
}, { passive: true });
|
|
50
|
+
window.addEventListener('pdfwebviewer.DragMoveHandlerEnd', () => {
|
|
51
|
+
this.resume();
|
|
52
|
+
}, { passive: true });
|
|
53
|
+
}
|
|
54
|
+
addEventListener(type, listener) {
|
|
55
|
+
if (this.eventListeners.has(type)) {
|
|
56
|
+
;
|
|
57
|
+
this.eventListeners.get(type).push(listener);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.eventListeners.set(type, [listener]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
removeEventListener(type, listener) {
|
|
64
|
+
if (this.eventListeners.has(type)) {
|
|
65
|
+
let listeners = this.eventListeners.get(type);
|
|
66
|
+
listeners = listeners.filter((listenerInArray) => listenerInArray !== listener);
|
|
67
|
+
if (listeners.length !== 0) {
|
|
68
|
+
this.eventListeners.set(type, listeners);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.eventListeners.delete(type);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
suspend() {
|
|
76
|
+
this.trackEvents = false;
|
|
77
|
+
this.element.removeEventListener('mousemove', this.onMouseMove);
|
|
78
|
+
window.removeEventListener('touchmove', this.onTouchMove);
|
|
79
|
+
}
|
|
80
|
+
resume() {
|
|
81
|
+
if (!this.trackEvents) {
|
|
82
|
+
this.trackEvents = true;
|
|
83
|
+
this.element.addEventListener('mousemove', this.onMouseMove, {
|
|
84
|
+
passive: true,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
dispatchEvent(type, args) {
|
|
89
|
+
if (this.eventListeners.has(type)) {
|
|
90
|
+
const listeners = this.eventListeners.get(type);
|
|
91
|
+
listeners.forEach((listener) => listener(args));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
clearClickTimer() {
|
|
95
|
+
if (this.clickTimer !== null) {
|
|
96
|
+
window.clearTimeout(this.clickTimer);
|
|
97
|
+
this.clickTimer = null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
clearLongPressTimer() {
|
|
101
|
+
if (this.longPressTimer !== null) {
|
|
102
|
+
window.clearTimeout(this.longPressTimer);
|
|
103
|
+
this.longPressTimer = null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
clearDblClickTimer() {
|
|
107
|
+
if (this.dblClickTimer !== null) {
|
|
108
|
+
window.clearTimeout(this.dblClickTimer);
|
|
109
|
+
this.dblClickTimer = null;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
mouseToCanvasPointerEvent(e) {
|
|
113
|
+
return {
|
|
114
|
+
clientX: e.clientX,
|
|
115
|
+
clientY: e.clientY,
|
|
116
|
+
movementX: e.movementX,
|
|
117
|
+
movementY: e.movementY,
|
|
118
|
+
buttons: e.buttons,
|
|
119
|
+
type: 'mouse',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
touchToCanvasPointerEvent(e) {
|
|
123
|
+
const event = {
|
|
124
|
+
clientX: e.touches[0].clientX,
|
|
125
|
+
clientY: e.touches[0].clientY,
|
|
126
|
+
movementX: e.touches[0].clientX - this.lastTouchPosX,
|
|
127
|
+
movementY: e.touches[0].clientY - this.lastTouchPosY,
|
|
128
|
+
buttons: e.touches.length === 1 ? 1 : 4,
|
|
129
|
+
type: 'touch',
|
|
130
|
+
};
|
|
131
|
+
this.lastTouchPosX = e.touches[0].clientX;
|
|
132
|
+
this.lastTouchPosY = e.touches[0].clientY;
|
|
133
|
+
return event;
|
|
134
|
+
}
|
|
135
|
+
getPinchPos(e) {
|
|
136
|
+
const x1 = e.touches[0].clientX;
|
|
137
|
+
const y1 = e.touches[0].clientY;
|
|
138
|
+
const x2 = e.touches[1].clientX;
|
|
139
|
+
const y2 = e.touches[1].clientY;
|
|
140
|
+
const vx = Math.abs(x1 - x2);
|
|
141
|
+
const vy = Math.abs(y1 - y2);
|
|
142
|
+
const distance = Math.sqrt(vx * vx + vy * vy);
|
|
143
|
+
const clientX = Math.min(x1, x2) + vx;
|
|
144
|
+
const clientY = Math.min(y1, y2) + vy;
|
|
145
|
+
return {
|
|
146
|
+
clientX,
|
|
147
|
+
clientY,
|
|
148
|
+
distance,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
touchToCanvasPointerPinchEvent(e) {
|
|
152
|
+
const { clientX, clientY, distance } = this.getPinchPos(e);
|
|
153
|
+
const event = {
|
|
154
|
+
clientX,
|
|
155
|
+
clientY,
|
|
156
|
+
movementX: clientX - this.lastPinchPosX,
|
|
157
|
+
movementY: clientY - this.lastPinchPosY,
|
|
158
|
+
distance,
|
|
159
|
+
movementDistance: distance - this.lastPinchDiv,
|
|
160
|
+
buttons: 1,
|
|
161
|
+
type: 'touch',
|
|
162
|
+
};
|
|
163
|
+
this.lastPinchPosX = event.clientX;
|
|
164
|
+
this.lastPinchPosY = event.clientY;
|
|
165
|
+
this.lastPinchDiv = distance;
|
|
166
|
+
return event;
|
|
167
|
+
}
|
|
168
|
+
onMouseDown(e) {
|
|
169
|
+
if (this.trackEvents) {
|
|
170
|
+
const event = this.mouseToCanvasPointerEvent(e);
|
|
171
|
+
this.onStart(event);
|
|
172
|
+
window.addEventListener('mouseup', this.onMouseUp, { passive: true });
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
onTouchStart(e) {
|
|
176
|
+
e.preventDefault();
|
|
177
|
+
// e.stopPropagation()
|
|
178
|
+
this.pinch = false;
|
|
179
|
+
if (this.trackEvents) {
|
|
180
|
+
if (e.touches.length === 0) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
else if (e.touches.length === 1) {
|
|
184
|
+
this.lastTouchPosX = e.touches[0].clientX;
|
|
185
|
+
this.lastTouchPosY = e.touches[0].clientY;
|
|
186
|
+
const event = this.touchToCanvasPointerEvent(e);
|
|
187
|
+
this.onStart(event);
|
|
188
|
+
window.addEventListener('touchmove', this.onTouchMove, {
|
|
189
|
+
passive: false,
|
|
190
|
+
});
|
|
191
|
+
window.addEventListener('touchend', this.onTouchEnd, { passive: false });
|
|
192
|
+
}
|
|
193
|
+
else if (e.touches.length === 2) {
|
|
194
|
+
this.clearClickTimer();
|
|
195
|
+
this.clearDblClickTimer();
|
|
196
|
+
this.clearLongPressTimer();
|
|
197
|
+
this.multiTouch = true;
|
|
198
|
+
const { clientX, clientY, distance } = this.getPinchPos(e);
|
|
199
|
+
this.lastPinchDiv = distance;
|
|
200
|
+
this.lastPinchPosX = clientX;
|
|
201
|
+
this.lastPinchPosY = clientY;
|
|
202
|
+
this.lastTouchX1 = e.touches[0].clientX;
|
|
203
|
+
this.lastTouchY1 = e.touches[0].clientY;
|
|
204
|
+
this.lastTouchX2 = e.touches[1].clientX;
|
|
205
|
+
this.lastTouchY2 = e.touches[1].clientY;
|
|
206
|
+
window.addEventListener('touchmove', this.onTouchMove, {
|
|
207
|
+
passive: false,
|
|
208
|
+
});
|
|
209
|
+
window.addEventListener('touchend', this.onTouchEnd, { passive: false });
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
onStart(e) {
|
|
214
|
+
this.startPosX = e.clientX;
|
|
215
|
+
this.startPosY = e.clientY;
|
|
216
|
+
this.dragging = false;
|
|
217
|
+
if (!this.dblClickTimer) {
|
|
218
|
+
this.clickTimer = window.setTimeout(() => {
|
|
219
|
+
this.clickTimer = null;
|
|
220
|
+
}, this.clickDuration);
|
|
221
|
+
}
|
|
222
|
+
this.longPressTimer = window.setTimeout(() => {
|
|
223
|
+
this.longPressTimer = null;
|
|
224
|
+
this.dispatchEvent('pointerlongpress', e);
|
|
225
|
+
}, this.longPressDuration);
|
|
226
|
+
this.dispatchEvent('pointerdown', e);
|
|
227
|
+
}
|
|
228
|
+
onMouseMove(e) {
|
|
229
|
+
const event = this.mouseToCanvasPointerEvent(e);
|
|
230
|
+
this.onMove(event);
|
|
231
|
+
}
|
|
232
|
+
onTouchMove(e) {
|
|
233
|
+
e.preventDefault();
|
|
234
|
+
e.stopPropagation();
|
|
235
|
+
if (!e.touches) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
if (e.touches.length === 1 && !this.multiTouch) {
|
|
239
|
+
const event = this.touchToCanvasPointerEvent(e);
|
|
240
|
+
this.onMove(event);
|
|
241
|
+
}
|
|
242
|
+
else if (e.touches.length === 2) {
|
|
243
|
+
const event = this.touchToCanvasPointerPinchEvent(e);
|
|
244
|
+
const x1 = e.touches[0].clientX;
|
|
245
|
+
const y1 = e.touches[0].clientY;
|
|
246
|
+
const x2 = e.touches[1].clientX;
|
|
247
|
+
const y2 = e.touches[1].clientY;
|
|
248
|
+
const dX1 = x1 - this.lastTouchX1;
|
|
249
|
+
const dY1 = y1 - this.lastTouchY1;
|
|
250
|
+
const dX2 = x2 - this.lastTouchX2;
|
|
251
|
+
const dY2 = y2 - this.lastTouchY2;
|
|
252
|
+
const sX1 = Math.sign(dX1);
|
|
253
|
+
const sY1 = Math.sign(dY1);
|
|
254
|
+
const sX2 = Math.sign(dX2);
|
|
255
|
+
const sY2 = Math.sign(dY2);
|
|
256
|
+
if ((sX1 === sX2 && sY1 === sY2) ||
|
|
257
|
+
((sX1 === sX2 || dX1 === 0 || dX2 === 0) && (sY1 === sY2 || dY1 === 0 || dY2 === 0)) ||
|
|
258
|
+
Math.max(Math.abs(event.movementX), Math.abs(event.movementY)) >
|
|
259
|
+
Math.abs(event.movementDistance)) {
|
|
260
|
+
event.buttons = 4;
|
|
261
|
+
this.onMove(event);
|
|
262
|
+
this.pinch = false;
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
this.dispatchEvent('pinch', event);
|
|
266
|
+
this.pinch = true;
|
|
267
|
+
}
|
|
268
|
+
this.lastTouchX1 = e.touches[0].clientX;
|
|
269
|
+
this.lastTouchY1 = e.touches[0].clientY;
|
|
270
|
+
this.lastTouchX2 = e.touches[1].clientX;
|
|
271
|
+
this.lastTouchY2 = e.touches[1].clientY;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
onMove(e) {
|
|
275
|
+
this.dispatchEvent('pointermove', e);
|
|
276
|
+
if (this.clickTimer || this.longPressTimer) {
|
|
277
|
+
if (Math.abs(this.startPosX - e.clientX) > 5 || Math.abs(this.startPosY - e.clientY) > 5) {
|
|
278
|
+
this.clearLongPressTimer();
|
|
279
|
+
this.clearClickTimer();
|
|
280
|
+
this.dispatchEvent('pointerstartdrag', e);
|
|
281
|
+
this.dragging = true;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
else if (e.buttons > 0 && !this.dragging) {
|
|
285
|
+
this.dispatchEvent('pointerstartdrag', e);
|
|
286
|
+
this.dragging = true;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
onMouseUp(e) {
|
|
290
|
+
const event = this.mouseToCanvasPointerEvent(e);
|
|
291
|
+
this.onEnd(event);
|
|
292
|
+
window.removeEventListener('mouseup', this.onMouseUp);
|
|
293
|
+
}
|
|
294
|
+
onTouchEnd(e) {
|
|
295
|
+
// e.preventDefault()
|
|
296
|
+
// e.stopPropagation()
|
|
297
|
+
if (e.touches.length === 0) {
|
|
298
|
+
this.multiTouch = false;
|
|
299
|
+
const event = {
|
|
300
|
+
clientX: this.lastTouchPosX,
|
|
301
|
+
clientY: this.lastTouchPosY,
|
|
302
|
+
movementX: 0,
|
|
303
|
+
movementY: 0,
|
|
304
|
+
buttons: 0,
|
|
305
|
+
type: 'touch',
|
|
306
|
+
};
|
|
307
|
+
this.onEnd(event);
|
|
308
|
+
window.removeEventListener('touchmove', this.onTouchMove);
|
|
309
|
+
window.removeEventListener('touchend', this.onTouchEnd);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
onEnd(e) {
|
|
313
|
+
this.dispatchEvent('pointerup', e);
|
|
314
|
+
if (this.dblClickTimer !== null) {
|
|
315
|
+
this.clearDblClickTimer();
|
|
316
|
+
this.dispatchEvent('pointerdblclick', e);
|
|
317
|
+
}
|
|
318
|
+
else if (this.clickTimer !== null) {
|
|
319
|
+
this.dispatchEvent('pointerclick', {
|
|
320
|
+
clientX: this.startPosX,
|
|
321
|
+
clientY: this.startPosY,
|
|
322
|
+
movementX: e.movementX,
|
|
323
|
+
movementY: e.movementY,
|
|
324
|
+
buttons: e.buttons,
|
|
325
|
+
type: e.type,
|
|
326
|
+
});
|
|
327
|
+
this.dblClickTimer = window.setTimeout(() => {
|
|
328
|
+
this.dblClickTimer = null;
|
|
329
|
+
}, this.dblClickDuration);
|
|
330
|
+
}
|
|
331
|
+
if (this.dragging) {
|
|
332
|
+
this.dispatchEvent('pointerenddrag', e);
|
|
333
|
+
}
|
|
334
|
+
this.lastTouchX1 = 0;
|
|
335
|
+
this.lastTouchY1 = 0;
|
|
336
|
+
this.lastTouchX2 = 0;
|
|
337
|
+
this.lastTouchY2 = 0;
|
|
338
|
+
this.lastTouchPosX = 0;
|
|
339
|
+
this.lastTouchPosY = 0;
|
|
340
|
+
this.lastPinchPosX = 0;
|
|
341
|
+
this.lastPinchPosY = 0;
|
|
342
|
+
this.clearClickTimer();
|
|
343
|
+
this.clearLongPressTimer();
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { PdfFitMode, PdfPageLayoutMode, Point, Annotation, PdfDestination, DeletedItem, PdfItem, PdfItemsOnPage, ViewOptions, InputFile, InputUri, RenderOptions, SaveOptions, RotationDirection } from '../pdf-viewer-api';
|
|
2
|
+
import { WebViewerOptions } from './../pdf-web-viewer/WebViewerOptions';
|
|
3
|
+
import { CanvasModule } from '../modules/CanvasModule';
|
|
4
|
+
import { SearchState } from './state/search';
|
|
5
|
+
export interface PdfViewerCanvasEventMap {
|
|
6
|
+
firstVisiblePage: number;
|
|
7
|
+
lastVisiblePage: number;
|
|
8
|
+
pageNumber: number;
|
|
9
|
+
zoom: number;
|
|
10
|
+
rotation: number;
|
|
11
|
+
fitMode: PdfFitMode;
|
|
12
|
+
pageLayoutMode: PdfPageLayoutMode;
|
|
13
|
+
busyState: boolean;
|
|
14
|
+
appLoaded: boolean;
|
|
15
|
+
pageChanged: number;
|
|
16
|
+
error: Error;
|
|
17
|
+
itemSelected: PdfItem;
|
|
18
|
+
itemDeselected: PdfItem;
|
|
19
|
+
itemCreated: PdfItem;
|
|
20
|
+
itemUpdated: PdfItem;
|
|
21
|
+
itemDeleted: DeletedItem;
|
|
22
|
+
moduleActivated: string;
|
|
23
|
+
moduleDeactivated: string;
|
|
24
|
+
textSelected: string;
|
|
25
|
+
}
|
|
26
|
+
export type PdfViewerCanvasEventListener = <K extends keyof PdfViewerCanvasEventMap>(e: PdfViewerCanvasEventMap[K]) => void;
|
|
27
|
+
export type PdfViewerCanvasEventTypes = keyof PdfViewerCanvasEventMap;
|
|
28
|
+
export declare class PdfViewerCanvas {
|
|
29
|
+
viewLayersElement: HTMLElement;
|
|
30
|
+
get licenseFeatures(): {
|
|
31
|
+
annotate: boolean;
|
|
32
|
+
fillFormFields: boolean;
|
|
33
|
+
pageRotation: boolean;
|
|
34
|
+
};
|
|
35
|
+
private element;
|
|
36
|
+
private toolbarElement;
|
|
37
|
+
private options;
|
|
38
|
+
private viewLayers;
|
|
39
|
+
private modules;
|
|
40
|
+
private pdfViewerApi;
|
|
41
|
+
private eventListeners;
|
|
42
|
+
private resizeObserver;
|
|
43
|
+
private canvasEvents;
|
|
44
|
+
private documentLoaded;
|
|
45
|
+
private renderLoopRunning;
|
|
46
|
+
private store;
|
|
47
|
+
private annotTimer;
|
|
48
|
+
private searchIterator;
|
|
49
|
+
constructor(containerElement: HTMLElement | null, license: string, options: WebViewerOptions);
|
|
50
|
+
open(pdfFile: InputFile | InputUri, fdfFiles?: (InputFile | InputUri)[] | null, password?: string | null, viewOptions?: ViewOptions | null, renderOptions?: RenderOptions | null): Promise<unknown>;
|
|
51
|
+
save(saveOptions?: SaveOptions): Promise<Blob>;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Deprecated in Version 3.10. Use Open method instead.
|
|
54
|
+
*/
|
|
55
|
+
openFDF(pdfBuffer: Uint8Array, fdfBuffer: Uint8Array, password?: string): Promise<unknown>;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Deprecated in Version 3.10. Use Open method instead.
|
|
58
|
+
*/
|
|
59
|
+
openUri(pdfUri: string, password?: string, pdfAuthorization?: string): Promise<unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Deprecated in Version 3.10. Use Open method instead.
|
|
62
|
+
*/
|
|
63
|
+
openFDFUri(pdfUri: string, fdfUri: string, password?: string, pdfAuthorization?: string, fdfAuthorization?: string): Promise<unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Deprecated in Version 3.10. Use Open method instead.
|
|
66
|
+
*/
|
|
67
|
+
openBlob(blob: Blob, password?: string): Promise<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Deprecated in Version 3.10. Use Open method instead.
|
|
70
|
+
*/
|
|
71
|
+
openFDFBlob(pdfBlob: Blob, fdfBlob: Blob, password?: string): Promise<unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Deprecated in Version 3.10. Use save method instead.
|
|
74
|
+
*/
|
|
75
|
+
saveFile(asFdf: boolean): Promise<unknown>;
|
|
76
|
+
close(): any;
|
|
77
|
+
destroy(): void;
|
|
78
|
+
hasChanges(): any;
|
|
79
|
+
getProductVersion(): string;
|
|
80
|
+
getZoom(): number;
|
|
81
|
+
setZoom(zoom: number, location?: Point): void;
|
|
82
|
+
zoomIn(location?: Point): void;
|
|
83
|
+
zoomOut(location?: Point): void;
|
|
84
|
+
getPageCount(): number;
|
|
85
|
+
getPageNumber(): number;
|
|
86
|
+
rotatePage(pageNumber: number, direction: RotationDirection): any;
|
|
87
|
+
setPageNumber(page: number): void;
|
|
88
|
+
scrollDown(distance?: number): void;
|
|
89
|
+
scrollUp(distance?: number): void;
|
|
90
|
+
scrollLeft(distance?: number): void;
|
|
91
|
+
scrollRight(distance?: number): void;
|
|
92
|
+
scrollMove(distanceVertical?: number, distanceHorizontal?: number): void;
|
|
93
|
+
nextPage(): void;
|
|
94
|
+
previousPage(): void;
|
|
95
|
+
getFitMode(): PdfFitMode;
|
|
96
|
+
setFitMode(fitMode: number): void;
|
|
97
|
+
getPageLayoutMode(): PdfPageLayoutMode;
|
|
98
|
+
setPageLayoutMode(pageLayoutMode: number): void;
|
|
99
|
+
getRotation(): number;
|
|
100
|
+
setRotation(rotation: number): void;
|
|
101
|
+
renderPage(pageNumber: number, width: number, height: number): Promise<import("../pdf-viewer-api").PageImage>;
|
|
102
|
+
getDocumentOutline(): Promise<any>;
|
|
103
|
+
goTo(pdfDestination: PdfDestination): void;
|
|
104
|
+
updateCanvasSearchState(state: SearchState): void;
|
|
105
|
+
private doSearch;
|
|
106
|
+
startSearch(searchString: string, startPage: number, caseSensitive: boolean, wrapSearch: boolean, useRegex: boolean): void;
|
|
107
|
+
nextSearchMatch(): void;
|
|
108
|
+
previousSearchMatch(): Promise<void> | undefined;
|
|
109
|
+
endSearch(): void;
|
|
110
|
+
resetViewerMode(): void;
|
|
111
|
+
getAnnotationsFromPage(page: number): Promise<PdfItemsOnPage>;
|
|
112
|
+
goToAnnotation(annotation: Annotation, action?: 'select' | 'edit' | 'popup' | 'history'): void;
|
|
113
|
+
print(): void;
|
|
114
|
+
getModules(): CanvasModule[];
|
|
115
|
+
activateModule(moduleName: string, args: any): void;
|
|
116
|
+
deactivateModule(moduleName: string): void;
|
|
117
|
+
getSelectedText(): string | null | undefined;
|
|
118
|
+
addEventListener<K extends keyof PdfViewerCanvasEventMap>(type: K, listener: (e: PdfViewerCanvasEventMap[K]) => void): void;
|
|
119
|
+
removeEventListener<K extends keyof PdfViewerCanvasEventMap>(type: K, listener: (e: PdfViewerCanvasEventMap[K]) => void): void;
|
|
120
|
+
suspendCanvasEvents(): void;
|
|
121
|
+
resumeCanvasEvents(): void;
|
|
122
|
+
private dispatchEvent;
|
|
123
|
+
private getOutlines;
|
|
124
|
+
private openRoutine;
|
|
125
|
+
private onDocumentOpened;
|
|
126
|
+
private onDocumentClosed;
|
|
127
|
+
private startRenderLoop;
|
|
128
|
+
private stopRenderLoop;
|
|
129
|
+
private registerPdfStamps;
|
|
130
|
+
private registerModules;
|
|
131
|
+
private unRegisterModules;
|
|
132
|
+
private updateViewLayerContext;
|
|
133
|
+
private onMouseWheel;
|
|
134
|
+
private transformPointer;
|
|
135
|
+
private onCanvasPointerClick;
|
|
136
|
+
private onCanvasPointerDblClick;
|
|
137
|
+
private onCanvasPointerLongPress;
|
|
138
|
+
private onCanvasPointerStartDrag;
|
|
139
|
+
private onCanvasPointerEndDrag;
|
|
140
|
+
private onCanvasPointerPinch;
|
|
141
|
+
private onCanvasPointerDown;
|
|
142
|
+
private onCanvasPointerUp;
|
|
143
|
+
private onCanvasPointerMove;
|
|
144
|
+
private onKeyboardShortcuts;
|
|
145
|
+
private onResize;
|
|
146
|
+
private onHtmlDocumentSelectionChanged;
|
|
147
|
+
private updateCanvasSize;
|
|
148
|
+
private onCanvasInvalidated;
|
|
149
|
+
private onFirstVisiblePageChanged;
|
|
150
|
+
private onPageNumberChanged;
|
|
151
|
+
private onTextSelected;
|
|
152
|
+
/**
|
|
153
|
+
* This function works with a timer. This avoids mass loading of annotation when scrolling
|
|
154
|
+
* through a large document. It only loads the annotations once the viewport is stable (visible
|
|
155
|
+
* pages didn't change for 100ms). If there is an active timer that will be cancelled.
|
|
156
|
+
* @param begin first page to get annotations from
|
|
157
|
+
* @param end last page to get annotations from
|
|
158
|
+
*/
|
|
159
|
+
private maybeGetAnnotations;
|
|
160
|
+
private getAnnotations;
|
|
161
|
+
private onLastVisiblePageChanged;
|
|
162
|
+
private onZoomChanged;
|
|
163
|
+
private onFitModeChanged;
|
|
164
|
+
private onPageLayoutModeChanged;
|
|
165
|
+
private onBusyStateChanged;
|
|
166
|
+
private onRotationChanged;
|
|
167
|
+
private onItemCreated;
|
|
168
|
+
private onItemUpdated;
|
|
169
|
+
private onItemDeleted;
|
|
170
|
+
private onPageChanged;
|
|
171
|
+
private onApiError;
|
|
172
|
+
private beforeUnloadCallback;
|
|
173
|
+
private getNextZoomOutLevel;
|
|
174
|
+
private getNextZoomInLevel;
|
|
175
|
+
}
|