@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.
Files changed (367) hide show
  1. package/LICENSE.md +446 -0
  2. package/README.md +145 -0
  3. package/css/pdf-web-viewer.css +2407 -0
  4. package/doc/PdfWebViewer.pdf +0 -0
  5. package/es6/common/Checkbox.d.ts +9 -0
  6. package/es6/common/Checkbox.js +8 -0
  7. package/es6/common/Color.d.ts +23 -0
  8. package/es6/common/Color.js +118 -0
  9. package/es6/common/ColorPicker.d.ts +15 -0
  10. package/es6/common/ColorPicker.js +46 -0
  11. package/es6/common/Contextbar.d.ts +6 -0
  12. package/es6/common/Contextbar.js +19 -0
  13. package/es6/common/DragMoveHandler.d.ts +51 -0
  14. package/es6/common/DragMoveHandler.js +175 -0
  15. package/es6/common/Dropdown.d.ts +36 -0
  16. package/es6/common/Dropdown.js +76 -0
  17. package/es6/common/DropdownMenu.d.ts +9 -0
  18. package/es6/common/DropdownMenu.js +10 -0
  19. package/es6/common/DropdownSeparator.d.ts +3 -0
  20. package/es6/common/DropdownSeparator.js +6 -0
  21. package/es6/common/Icon.d.ts +13 -0
  22. package/es6/common/Icon.js +8 -0
  23. package/es6/common/Loader.d.ts +3 -0
  24. package/es6/common/Loader.js +6 -0
  25. package/es6/common/RangeSlider.d.ts +17 -0
  26. package/es6/common/RangeSlider.js +42 -0
  27. package/es6/common/StrokeStylePicker.d.ts +11 -0
  28. package/es6/common/StrokeStylePicker.js +20 -0
  29. package/es6/common/StrokeWidthPicker.d.ts +11 -0
  30. package/es6/common/StrokeWidthPicker.js +20 -0
  31. package/es6/common/Toolbar.d.ts +10 -0
  32. package/es6/common/Toolbar.js +6 -0
  33. package/es6/common/ToolbarButton.d.ts +14 -0
  34. package/es6/common/ToolbarButton.js +21 -0
  35. package/es6/common/ToolbarFileButton.d.ts +15 -0
  36. package/es6/common/ToolbarFileButton.js +27 -0
  37. package/es6/common/ToolbarItemGroup.d.ts +8 -0
  38. package/es6/common/ToolbarItemGroup.js +12 -0
  39. package/es6/common/ToolbarSeparator.d.ts +3 -0
  40. package/es6/common/ToolbarSeparator.js +6 -0
  41. package/es6/common/Tools.d.ts +10 -0
  42. package/es6/common/Tools.js +89 -0
  43. package/es6/common/TooltipManager.d.ts +12 -0
  44. package/es6/common/TooltipManager.js +54 -0
  45. package/es6/common/TranslationManager.d.ts +11 -0
  46. package/es6/common/TranslationManager.js +61 -0
  47. package/es6/common/classNames.d.ts +2 -0
  48. package/es6/common/classNames.js +18 -0
  49. package/es6/common/formatDate.d.ts +1 -0
  50. package/es6/common/formatDate.js +1 -0
  51. package/es6/common/icons.d.ts +13 -0
  52. package/es6/common/icons.js +412 -0
  53. package/es6/common/utils.d.ts +2 -0
  54. package/es6/common/utils.js +19 -0
  55. package/es6/custom/history.d.ts +2 -0
  56. package/es6/custom/history.js +59 -0
  57. package/es6/index.d.ts +5 -0
  58. package/es6/index.js +5 -0
  59. package/es6/lib/hyperapp/index.d.ts +108 -0
  60. package/es6/lib/hyperapp/index.js +327 -0
  61. package/es6/modules/CanvasLayer.d.ts +32 -0
  62. package/es6/modules/CanvasLayer.js +83 -0
  63. package/es6/modules/CanvasModule.d.ts +59 -0
  64. package/es6/modules/CanvasModule.js +98 -0
  65. package/es6/modules/eraser/EraserLayer.d.ts +13 -0
  66. package/es6/modules/eraser/EraserLayer.js +141 -0
  67. package/es6/modules/eraser/EraserModule.d.ts +19 -0
  68. package/es6/modules/eraser/EraserModule.js +34 -0
  69. package/es6/modules/eraser/EraserToolbar.d.ts +10 -0
  70. package/es6/modules/eraser/EraserToolbar.js +30 -0
  71. package/es6/modules/form-fields/CheckBoxWidget.d.ts +9 -0
  72. package/es6/modules/form-fields/CheckBoxWidget.js +45 -0
  73. package/es6/modules/form-fields/ComboBoxWidget.d.ts +22 -0
  74. package/es6/modules/form-fields/ComboBoxWidget.js +152 -0
  75. package/es6/modules/form-fields/EditFormFieldLayer.d.ts +17 -0
  76. package/es6/modules/form-fields/EditFormFieldLayer.js +238 -0
  77. package/es6/modules/form-fields/FormFieldModule.d.ts +15 -0
  78. package/es6/modules/form-fields/FormFieldModule.js +27 -0
  79. package/es6/modules/form-fields/ListBoxWidget.d.ts +9 -0
  80. package/es6/modules/form-fields/ListBoxWidget.js +73 -0
  81. package/es6/modules/form-fields/RadioButtonWidget.d.ts +9 -0
  82. package/es6/modules/form-fields/RadioButtonWidget.js +45 -0
  83. package/es6/modules/form-fields/SelectListWidget.d.ts +9 -0
  84. package/es6/modules/form-fields/SelectListWidget.js +45 -0
  85. package/es6/modules/form-fields/TextBoxWidget.d.ts +9 -0
  86. package/es6/modules/form-fields/TextBoxWidget.js +53 -0
  87. package/es6/modules/form-fields/WidgetBase.d.ts +23 -0
  88. package/es6/modules/form-fields/WidgetBase.js +29 -0
  89. package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.d.ts +19 -0
  90. package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.js +181 -0
  91. package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.d.ts +21 -0
  92. package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.js +37 -0
  93. package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.d.ts +20 -0
  94. package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.js +211 -0
  95. package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.d.ts +50 -0
  96. package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.js +118 -0
  97. package/es6/modules/freetext-annotation/FreetextAnnotationModule.d.ts +28 -0
  98. package/es6/modules/freetext-annotation/FreetextAnnotationModule.js +58 -0
  99. package/es6/modules/freetext-annotation/RichTextEditor.d.ts +31 -0
  100. package/es6/modules/freetext-annotation/RichTextEditor.js +223 -0
  101. package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.d.ts +31 -0
  102. package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.js +289 -0
  103. package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.d.ts +20 -0
  104. package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.js +52 -0
  105. package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.d.ts +15 -0
  106. package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.js +104 -0
  107. package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.d.ts +15 -0
  108. package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.js +28 -0
  109. package/es6/modules/highlight-annotation/HighlightAnnotationModule.d.ts +27 -0
  110. package/es6/modules/highlight-annotation/HighlightAnnotationModule.js +54 -0
  111. package/es6/modules/image-annotations/ImageAnnotationModule.d.ts +23 -0
  112. package/es6/modules/image-annotations/ImageAnnotationModule.js +169 -0
  113. package/es6/modules/index.d.ts +13 -0
  114. package/es6/modules/index.js +13 -0
  115. package/es6/modules/ink-annotation/AddInkAnnotationLayer.d.ts +40 -0
  116. package/es6/modules/ink-annotation/AddInkAnnotationLayer.js +503 -0
  117. package/es6/modules/ink-annotation/AddInkAnnotationToolbar.d.ts +30 -0
  118. package/es6/modules/ink-annotation/AddInkAnnotationToolbar.js +53 -0
  119. package/es6/modules/ink-annotation/EditInkAnnotationLayer.d.ts +20 -0
  120. package/es6/modules/ink-annotation/EditInkAnnotationLayer.js +137 -0
  121. package/es6/modules/ink-annotation/EditInkAnnotationToolbar.d.ts +25 -0
  122. package/es6/modules/ink-annotation/EditInkAnnotationToolbar.js +47 -0
  123. package/es6/modules/ink-annotation/InkAnnotationModule.d.ts +27 -0
  124. package/es6/modules/ink-annotation/InkAnnotationModule.js +50 -0
  125. package/es6/modules/popup/Popup.d.ts +64 -0
  126. package/es6/modules/popup/Popup.js +360 -0
  127. package/es6/modules/popup/PopupLayer.d.ts +31 -0
  128. package/es6/modules/popup/PopupLayer.js +509 -0
  129. package/es6/modules/popup/PopupModule.d.ts +16 -0
  130. package/es6/modules/popup/PopupModule.js +25 -0
  131. package/es6/modules/print-service/PrintServiceDialog.d.ts +30 -0
  132. package/es6/modules/print-service/PrintServiceDialog.js +134 -0
  133. package/es6/modules/print-service/PrintServiceLayer.d.ts +24 -0
  134. package/es6/modules/print-service/PrintServiceLayer.js +310 -0
  135. package/es6/modules/print-service/PrintServiceModule.d.ts +18 -0
  136. package/es6/modules/print-service/PrintServiceModule.js +30 -0
  137. package/es6/modules/shape-annotations/AddShapeAnnotationLayer.d.ts +24 -0
  138. package/es6/modules/shape-annotations/AddShapeAnnotationLayer.js +210 -0
  139. package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.d.ts +26 -0
  140. package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.js +69 -0
  141. package/es6/modules/shape-annotations/EditShapeAnnotationLayer.d.ts +19 -0
  142. package/es6/modules/shape-annotations/EditShapeAnnotationLayer.js +148 -0
  143. package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.d.ts +24 -0
  144. package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.js +57 -0
  145. package/es6/modules/shape-annotations/ShapeAnnotationModule.d.ts +28 -0
  146. package/es6/modules/shape-annotations/ShapeAnnotationModule.js +50 -0
  147. package/es6/modules/stamp-annotation/AddStampAnnotationLayer.d.ts +19 -0
  148. package/es6/modules/stamp-annotation/AddStampAnnotationLayer.js +257 -0
  149. package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.d.ts +17 -0
  150. package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.js +68 -0
  151. package/es6/modules/stamp-annotation/StampAnnotationModule.d.ts +20 -0
  152. package/es6/modules/stamp-annotation/StampAnnotationModule.js +35 -0
  153. package/es6/modules/text-annotation/AddTextAnnotationLayer.d.ts +14 -0
  154. package/es6/modules/text-annotation/AddTextAnnotationLayer.js +132 -0
  155. package/es6/modules/text-annotation/AddTextAnnotationToolbar.d.ts +15 -0
  156. package/es6/modules/text-annotation/AddTextAnnotationToolbar.js +27 -0
  157. package/es6/modules/text-annotation/TextAnnotationModule.d.ts +19 -0
  158. package/es6/modules/text-annotation/TextAnnotationModule.js +34 -0
  159. package/es6/pdf-viewer-api/ImageContainer.d.ts +10 -0
  160. package/es6/pdf-viewer-api/ImageContainer.js +43 -0
  161. package/es6/pdf-viewer-api/PdfViewerApi.d.ts +463 -0
  162. package/es6/pdf-viewer-api/PdfViewerApi.js +732 -0
  163. package/es6/pdf-viewer-api/PdfViewingWrapper.d.ts +178 -0
  164. package/es6/pdf-viewer-api/PdfViewingWrapper.js +2037 -0
  165. package/es6/pdf-viewer-api/annotationDefaultBehaviors.d.ts +3 -0
  166. package/es6/pdf-viewer-api/annotationDefaultBehaviors.js +30 -0
  167. package/es6/pdf-viewer-api/enums.d.ts +100 -0
  168. package/es6/pdf-viewer-api/enums.js +113 -0
  169. package/es6/pdf-viewer-api/index.d.ts +3 -0
  170. package/es6/pdf-viewer-api/index.js +3 -0
  171. package/es6/pdf-viewer-api/types.d.ts +284 -0
  172. package/es6/pdf-viewer-api/types.js +6 -0
  173. package/es6/pdf-viewer-canvas/CanvasEvents.d.ts +76 -0
  174. package/es6/pdf-viewer-canvas/CanvasEvents.js +345 -0
  175. package/es6/pdf-viewer-canvas/PdfViewerCanvas.d.ts +175 -0
  176. package/es6/pdf-viewer-canvas/PdfViewerCanvas.js +1226 -0
  177. package/es6/pdf-viewer-canvas/state/annotations.d.ts +36 -0
  178. package/es6/pdf-viewer-canvas/state/annotations.js +157 -0
  179. package/es6/pdf-viewer-canvas/state/appState.d.ts +10 -0
  180. package/es6/pdf-viewer-canvas/state/appState.js +60 -0
  181. package/es6/pdf-viewer-canvas/state/canvas.d.ts +31 -0
  182. package/es6/pdf-viewer-canvas/state/canvas.js +41 -0
  183. package/es6/pdf-viewer-canvas/state/document.d.ts +50 -0
  184. package/es6/pdf-viewer-canvas/state/document.js +99 -0
  185. package/es6/pdf-viewer-canvas/state/pointer.d.ts +31 -0
  186. package/es6/pdf-viewer-canvas/state/pointer.js +31 -0
  187. package/es6/pdf-viewer-canvas/state/scroll.d.ts +22 -0
  188. package/es6/pdf-viewer-canvas/state/scroll.js +25 -0
  189. package/es6/pdf-viewer-canvas/state/search.d.ts +36 -0
  190. package/es6/pdf-viewer-canvas/state/search.js +27 -0
  191. package/es6/pdf-viewer-canvas/state/store.d.ts +39 -0
  192. package/es6/pdf-viewer-canvas/state/store.js +52 -0
  193. package/es6/pdf-viewer-canvas/state/viewer.d.ts +91 -0
  194. package/es6/pdf-viewer-canvas/state/viewer.js +175 -0
  195. package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.d.ts +28 -0
  196. package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.js +452 -0
  197. package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.d.ts +9 -0
  198. package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.js +25 -0
  199. package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.d.ts +10 -0
  200. package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.js +149 -0
  201. package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.d.ts +48 -0
  202. package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.js +308 -0
  203. package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.d.ts +19 -0
  204. package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.js +289 -0
  205. package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.d.ts +31 -0
  206. package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.js +106 -0
  207. package/es6/pdf-viewer-canvas/view-layers/canvasShapes.d.ts +11 -0
  208. package/es6/pdf-viewer-canvas/view-layers/canvasShapes.js +149 -0
  209. package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.d.ts +3 -0
  210. package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.js +10 -0
  211. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.d.ts +52 -0
  212. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.js +377 -0
  213. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.d.ts +47 -0
  214. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.js +102 -0
  215. package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.d.ts +14 -0
  216. package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.js +36 -0
  217. package/es6/pdf-viewing/PdfViewing.d.ts +4865 -0
  218. package/es6/pdf-viewing/PdfViewing.js +9611 -0
  219. package/es6/pdf-web-viewer/PdfWebViewer.d.ts +372 -0
  220. package/es6/pdf-web-viewer/PdfWebViewer.js +1386 -0
  221. package/es6/pdf-web-viewer/UserSettings.d.ts +8 -0
  222. package/es6/pdf-web-viewer/UserSettings.js +40 -0
  223. package/es6/pdf-web-viewer/WebViewerOptions.d.ts +387 -0
  224. package/es6/pdf-web-viewer/WebViewerOptions.js +582 -0
  225. package/es6/pdf-web-viewer/state/index.d.ts +80 -0
  226. package/es6/pdf-web-viewer/state/index.js +98 -0
  227. package/es6/pdf-web-viewer/state/layout.d.ts +24 -0
  228. package/es6/pdf-web-viewer/state/layout.js +21 -0
  229. package/es6/pdf-web-viewer/state/mobile.d.ts +16 -0
  230. package/es6/pdf-web-viewer/state/mobile.js +11 -0
  231. package/es6/pdf-web-viewer/state/navigationPanel.d.ts +61 -0
  232. package/es6/pdf-web-viewer/state/navigationPanel.js +84 -0
  233. package/es6/pdf-web-viewer/state/passwordForm.d.ts +18 -0
  234. package/es6/pdf-web-viewer/state/passwordForm.js +21 -0
  235. package/es6/pdf-web-viewer/state/pdfDocument.d.ts +31 -0
  236. package/es6/pdf-web-viewer/state/pdfDocument.js +41 -0
  237. package/es6/pdf-web-viewer/state/search.d.ts +29 -0
  238. package/es6/pdf-web-viewer/state/search.js +23 -0
  239. package/es6/pdf-web-viewer/views/App.d.ts +4 -0
  240. package/es6/pdf-web-viewer/views/App.js +19 -0
  241. package/es6/pdf-web-viewer/views/CustomButtons.d.ts +9 -0
  242. package/es6/pdf-web-viewer/views/CustomButtons.js +18 -0
  243. package/es6/pdf-web-viewer/views/DropZone.d.ts +9 -0
  244. package/es6/pdf-web-viewer/views/DropZone.js +53 -0
  245. package/es6/pdf-web-viewer/views/Layout.d.ts +4 -0
  246. package/es6/pdf-web-viewer/views/Layout.js +22 -0
  247. package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.d.ts +4 -0
  248. package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.js +21 -0
  249. package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.d.ts +4 -0
  250. package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.js +35 -0
  251. package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.d.ts +4 -0
  252. package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.js +22 -0
  253. package/es6/pdf-web-viewer/views/appbar/AppBar.d.ts +4 -0
  254. package/es6/pdf-web-viewer/views/appbar/AppBar.js +26 -0
  255. package/es6/pdf-web-viewer/views/appbar/DocumentBar.d.ts +4 -0
  256. package/es6/pdf-web-viewer/views/appbar/DocumentBar.js +36 -0
  257. package/es6/pdf-web-viewer/views/appbar/Menu.d.ts +4 -0
  258. package/es6/pdf-web-viewer/views/appbar/Menu.js +80 -0
  259. package/es6/pdf-web-viewer/views/appbar/NavigationBar.d.ts +4 -0
  260. package/es6/pdf-web-viewer/views/appbar/NavigationBar.js +74 -0
  261. package/es6/pdf-web-viewer/views/appbar/SearchBar.d.ts +4 -0
  262. package/es6/pdf-web-viewer/views/appbar/SearchBar.js +83 -0
  263. package/es6/pdf-web-viewer/views/appbar/SearchOptions.d.ts +10 -0
  264. package/es6/pdf-web-viewer/views/appbar/SearchOptions.js +55 -0
  265. package/es6/pdf-web-viewer/views/appbar/ViewBar.d.ts +4 -0
  266. package/es6/pdf-web-viewer/views/appbar/ViewBar.js +52 -0
  267. package/es6/pdf-web-viewer/views/appbar/ZoomBar.d.ts +4 -0
  268. package/es6/pdf-web-viewer/views/appbar/ZoomBar.js +18 -0
  269. package/es6/pdf-web-viewer/views/modal/ApplicationError.d.ts +4 -0
  270. package/es6/pdf-web-viewer/views/modal/ApplicationError.js +25 -0
  271. package/es6/pdf-web-viewer/views/modal/LoadApplication.d.ts +3 -0
  272. package/es6/pdf-web-viewer/views/modal/LoadApplication.js +6 -0
  273. package/es6/pdf-web-viewer/views/modal/LoadFile.d.ts +3 -0
  274. package/es6/pdf-web-viewer/views/modal/LoadFile.js +10 -0
  275. package/es6/pdf-web-viewer/views/modal/Modal.d.ts +4 -0
  276. package/es6/pdf-web-viewer/views/modal/Modal.js +39 -0
  277. package/es6/pdf-web-viewer/views/modal/OpenFile.d.ts +4 -0
  278. package/es6/pdf-web-viewer/views/modal/OpenFile.js +30 -0
  279. package/es6/pdf-web-viewer/views/modal/OpenFileError.d.ts +4 -0
  280. package/es6/pdf-web-viewer/views/modal/OpenFileError.js +13 -0
  281. package/es6/pdf-web-viewer/views/modal/PasswordForm.d.ts +4 -0
  282. package/es6/pdf-web-viewer/views/modal/PasswordForm.js +54 -0
  283. package/es6/pdf-web-viewer/views/modal/SaveFile.d.ts +4 -0
  284. package/es6/pdf-web-viewer/views/modal/SaveFile.js +10 -0
  285. package/es6/pdf-web-viewer/views/modal/UnsavedChanges.d.ts +4 -0
  286. package/es6/pdf-web-viewer/views/modal/UnsavedChanges.js +32 -0
  287. package/es6/pdf-web-viewer/views/navigation/AnnotationList.d.ts +8 -0
  288. package/es6/pdf-web-viewer/views/navigation/AnnotationList.js +26 -0
  289. package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.d.ts +8 -0
  290. package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.js +158 -0
  291. package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.d.ts +4 -0
  292. package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.js +11 -0
  293. package/es6/pdf-web-viewer/views/navigation/NavigationPanel.d.ts +4 -0
  294. package/es6/pdf-web-viewer/views/navigation/NavigationPanel.js +50 -0
  295. package/es6/pdf-web-viewer/views/navigation/OutlineList.d.ts +12 -0
  296. package/es6/pdf-web-viewer/views/navigation/OutlineList.js +19 -0
  297. package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.d.ts +4 -0
  298. package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.js +10 -0
  299. package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.d.ts +16 -0
  300. package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.js +32 -0
  301. package/package.json +24 -0
  302. package/pdfwebviewer/PdfViewing.data +0 -0
  303. package/pdfwebviewer/PdfViewing_Main.js +1 -0
  304. package/pdfwebviewer/PdfViewing_Main.wasm +0 -0
  305. package/pdfwebviewer/PdfViewing_Worker.js +1 -0
  306. package/pdfwebviewer/PdfViewing_Worker.wasm +0 -0
  307. package/pdfwebviewer/pdf-web-viewer.css +2407 -0
  308. package/pdfwebviewer/pdf-web-viewer.development.js +25955 -0
  309. package/pdfwebviewer/pdf-web-viewer.min.js +1 -0
  310. package/pdfwebviewer/translations.de.json +151 -0
  311. package/pdfwebviewer/translations.en.json +151 -0
  312. package/pdfwebviewer/translations.fr.json +151 -0
  313. package/pdfwebviewer/translations.it.json +151 -0
  314. package/scss/common/_breakpoints.scss +44 -0
  315. package/scss/common/_buttons.scss +42 -0
  316. package/scss/common/_colorpicker.scss +89 -0
  317. package/scss/common/_common.scss +21 -0
  318. package/scss/common/_contextbar.scss +44 -0
  319. package/scss/common/_dropdown.scss +176 -0
  320. package/scss/common/_icon.scss +9 -0
  321. package/scss/common/_index.scss +19 -0
  322. package/scss/common/_loader.scss +30 -0
  323. package/scss/common/_rangeslider.scss +24 -0
  324. package/scss/common/_scrollbars.scss +64 -0
  325. package/scss/common/_stroke-style-picker.scss +64 -0
  326. package/scss/common/_stroke-width-picker.scss +23 -0
  327. package/scss/common/_toolbar.scss +117 -0
  328. package/scss/common/_tooltip.scss +39 -0
  329. package/scss/modules/_eraser.scss +28 -0
  330. package/scss/modules/_forms.scss +56 -0
  331. package/scss/modules/_highlightannotation.scss +12 -0
  332. package/scss/modules/_index.scss +5 -0
  333. package/scss/modules/_inkannotation.scss +41 -0
  334. package/scss/modules/_stampannotation.scss +19 -0
  335. package/scss/pdf-viewer-canvas/_annotationborder.scss +107 -0
  336. package/scss/pdf-viewer-canvas/_busy-loader.scss +53 -0
  337. package/scss/pdf-viewer-canvas/_freetexteditor.scss +28 -0
  338. package/scss/pdf-viewer-canvas/_index.scss +7 -0
  339. package/scss/pdf-viewer-canvas/_layout.scss +52 -0
  340. package/scss/pdf-viewer-canvas/_popup.scss +217 -0
  341. package/scss/pdf-viewer-canvas/_printservice.scss +171 -0
  342. package/scss/pdf-viewer-canvas/_textselection.scss +17 -0
  343. package/scss/pdf-web-viewer/_annotationbar.scss +47 -0
  344. package/scss/pdf-web-viewer/_index.scss +8 -0
  345. package/scss/pdf-web-viewer/_layout.scss +63 -0
  346. package/scss/pdf-web-viewer/_modal.scss +186 -0
  347. package/scss/pdf-web-viewer/_navigationpanel.scss +398 -0
  348. package/scss/pdf-web-viewer/_searchbar.scss +47 -0
  349. package/scss/pdf-web-viewer/_toolbar.scss +134 -0
  350. package/scss/pdf-web-viewer/_viewer.scss +54 -0
  351. package/scss/pdf-web-viewer.scss +1 -0
  352. package/scss/themes/default/_light.scss +32 -0
  353. package/scss/themes/default/_mixins.scss +129 -0
  354. package/scss/themes/default/_theme.scss +161 -0
  355. package/scss/themes/pdf-web-viewer.scss +1 -0
  356. package/umd/pdf-web-viewer.development.js +25955 -0
  357. package/umd/pdf-web-viewer.development.js.map +1 -0
  358. package/umd/pdf-web-viewer.min.js +1 -0
  359. package/wasm/PdfViewing.data +0 -0
  360. package/wasm/PdfViewing_Main.js +1 -0
  361. package/wasm/PdfViewing_Main.wasm +0 -0
  362. package/wasm/PdfViewing_Worker.js +1 -0
  363. package/wasm/PdfViewing_Worker.wasm +0 -0
  364. package/wasm/translations.de.json +151 -0
  365. package/wasm/translations.en.json +151 -0
  366. package/wasm/translations.fr.json +151 -0
  367. package/wasm/translations.it.json +151 -0
@@ -0,0 +1,8 @@
1
+ export declare class UserSettings {
2
+ private toolSettings;
3
+ private localStorageAccessible;
4
+ constructor();
5
+ private save;
6
+ getItem<T>(key: string, defaultValue: T): T;
7
+ setItem(key: string, value: string | number): void;
8
+ }
@@ -0,0 +1,40 @@
1
+ export class UserSettings {
2
+ constructor() {
3
+ this.localStorageAccessible = false;
4
+ let settingsStr = null;
5
+ try {
6
+ settingsStr = localStorage.getItem('PDFToolsAG.ViewerSettings');
7
+ this.localStorageAccessible = true;
8
+ }
9
+ catch (err) {
10
+ console.warn('local storage not accessible');
11
+ }
12
+ try {
13
+ this.toolSettings = settingsStr ? JSON.parse(settingsStr) : {};
14
+ }
15
+ catch (_a) {
16
+ this.toolSettings = {};
17
+ }
18
+ this.save = this.save.bind(this);
19
+ this.getItem = this.getItem.bind(this);
20
+ this.setItem = this.setItem.bind(this);
21
+ }
22
+ save() {
23
+ if (this.localStorageAccessible) {
24
+ const settings = JSON.stringify(this.toolSettings);
25
+ localStorage.setItem('PDFToolsAG.ViewerSettings', settings);
26
+ }
27
+ }
28
+ getItem(key, defaultValue) {
29
+ if (this.localStorageAccessible && this.toolSettings.hasOwnProperty(key)) {
30
+ return this.toolSettings[key];
31
+ }
32
+ return defaultValue;
33
+ }
34
+ setItem(key, value) {
35
+ if (this.localStorageAccessible) {
36
+ this.toolSettings[key] = value;
37
+ this.save();
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,387 @@
1
+ import { UserSettings } from './UserSettings';
2
+ import { CanvasModuleClass } from '../modules/CanvasModule';
3
+ import { PdfPageLayoutMode, StampAnnotationColor, AnnotationPermissionCallback } from '../pdf-viewer-api';
4
+ export interface PdfWebViewerOptionsInterface {
5
+ [key: string]: any;
6
+ viewer?: {
7
+ [key: string]: any;
8
+ general?: Partial<GeneralOptionsInterface>;
9
+ sidebar?: Partial<SidebarOptionsInterface>;
10
+ permissions?: Partial<PermissionOptions>;
11
+ callbacks?: Partial<Callbacks>;
12
+ customButtons?: Partial<{
13
+ annotationbar: CustomButton[];
14
+ documentbar: CustomButton[];
15
+ informationbar: CustomButton[];
16
+ }>;
17
+ };
18
+ annotation?: Partial<AnnotationOptionsInterface>;
19
+ forms: Partial<FormsOptionsInterface>;
20
+ modules?: CanvasModuleClass[];
21
+ }
22
+ export interface CustomButton {
23
+ icon: string;
24
+ text: string;
25
+ onClick: () => void;
26
+ }
27
+ export interface WebViewerOptionsInterface {
28
+ [key: string]: any;
29
+ viewer: ViewerOptionsInterface;
30
+ annotation: AnnotationOptionsInterface;
31
+ forms: FormsOptionsInterface;
32
+ modules: CanvasModuleClass[];
33
+ shortcuts: KeyboardShortcutsOptionsInterface;
34
+ }
35
+ export interface ViewerOptionsInterface {
36
+ [key: string]: any;
37
+ general: GeneralOptionsInterface;
38
+ sidebar: SidebarOptionsInterface;
39
+ permissions: PermissionOptions;
40
+ callbacks: Callbacks;
41
+ customButtons?: Partial<{
42
+ annotationbar: CustomButton[];
43
+ documentbar: CustomButton[];
44
+ informationbar: CustomButton[];
45
+ }>;
46
+ }
47
+ export interface KeyboardShortcutBinding {
48
+ key: string;
49
+ altKey?: boolean;
50
+ ctrlKey?: boolean;
51
+ shiftKey?: boolean;
52
+ superKey?: boolean;
53
+ }
54
+ export interface KeyboardShortcutsOptionsInterface {
55
+ [key: string]: KeyboardShortcutBinding;
56
+ zoomIn: KeyboardShortcutBinding;
57
+ zoomOut: KeyboardShortcutBinding;
58
+ nextPage: KeyboardShortcutBinding;
59
+ previousPage: KeyboardShortcutBinding;
60
+ firstPage: KeyboardShortcutBinding;
61
+ lastPage: KeyboardShortcutBinding;
62
+ scrollUp: KeyboardShortcutBinding;
63
+ scrollDown: KeyboardShortcutBinding;
64
+ scrollLeft: KeyboardShortcutBinding;
65
+ scrollRight: KeyboardShortcutBinding;
66
+ releaseSelection: KeyboardShortcutBinding;
67
+ copy: KeyboardShortcutBinding;
68
+ copyMac: KeyboardShortcutBinding;
69
+ print: KeyboardShortcutBinding;
70
+ cancelPrint: KeyboardShortcutBinding;
71
+ resetZoom: KeyboardShortcutBinding;
72
+ fitToPage: KeyboardShortcutBinding;
73
+ fitToWidth: KeyboardShortcutBinding;
74
+ rotateView: KeyboardShortcutBinding;
75
+ save: KeyboardShortcutBinding;
76
+ search: KeyboardShortcutBinding;
77
+ searchNext: KeyboardShortcutBinding;
78
+ searchPrevious: KeyboardShortcutBinding;
79
+ closeSearch: KeyboardShortcutBinding;
80
+ toggleSidePane: KeyboardShortcutBinding;
81
+ showAnnotations: KeyboardShortcutBinding;
82
+ showOutline: KeyboardShortcutBinding;
83
+ showThumbnails: KeyboardShortcutBinding;
84
+ cancelEditAnnotation: KeyboardShortcutBinding;
85
+ }
86
+ export interface Callbacks {
87
+ onOpenFileButtonClicked?(): void;
88
+ onSaveFileButtonClicked?(): void;
89
+ onCloseFileButtonClicked?(): void;
90
+ }
91
+ export interface FormsOptionsInterface {
92
+ enabled: boolean;
93
+ }
94
+ export interface PermissionOptions {
95
+ allowFileDrop: boolean;
96
+ allowSaveFile: boolean;
97
+ allowOpenFile: boolean;
98
+ allowCloseFile: boolean;
99
+ allowRotatePages: boolean;
100
+ allowRotateView: boolean;
101
+ allowCopyText: boolean;
102
+ allowLockAnnotations: boolean;
103
+ allowEditLockedAnnotations: boolean;
104
+ allowPrinting?: boolean;
105
+ allowExternalLinks?: boolean;
106
+ enablePageLayoutMode: boolean;
107
+ enableSearch: boolean;
108
+ }
109
+ export interface SidebarOptionsInterface {
110
+ thumbnailNavigation: boolean;
111
+ outlineNavigation: boolean;
112
+ annotationNavigation: boolean | {
113
+ textMarkup: {
114
+ preview: 'none' | 'short';
115
+ };
116
+ };
117
+ selectedNavigation?: 'thumbnail' | 'outline' | 'annotation';
118
+ }
119
+ type AnnotationBarPositions = 'top' | 'left' | 'right' | 'bottom';
120
+ export interface GeneralOptionsInterface {
121
+ [key: string]: any;
122
+ user: string;
123
+ language: string;
124
+ annotationBarPosition: AnnotationBarPositions;
125
+ promptOnUnsavedChange: boolean;
126
+ searchMatchColor: string;
127
+ textSelectionColor: string;
128
+ rectangularTextSelection: 'automatic' | 'none';
129
+ pageLayoutModes: PdfPageLayoutMode[];
130
+ defaultZoomLevels: number[];
131
+ pageShadow?: CanvasShadowStyles;
132
+ currentPageShadow?: CanvasShadowStyles;
133
+ tooltips?: 'none' | 'title' | 'css';
134
+ viewOnly?: boolean;
135
+ disableMainToolbar?: boolean;
136
+ disableAnnotationToolbar?: boolean;
137
+ hidePasswordFormCancelButton?: boolean;
138
+ }
139
+ export interface PdfStampsFile {
140
+ pdfStampFileName: string;
141
+ data: string;
142
+ }
143
+ export interface AnnotationOptionsInterface {
144
+ [key: string]: any;
145
+ pdfStampFiles?: PdfStampsFile[];
146
+ stamps: (TextStampSetting | ImageStampSetting | PdfStampSetting)[];
147
+ colors: AnnotationColorOptionsInterface;
148
+ fonts: AnnotationFontOptionsInterface;
149
+ highlightOpacity: number;
150
+ strokeWidths: number[];
151
+ defaultBorderWidth: number;
152
+ defaultStampWidth: number;
153
+ eraserRadius: number;
154
+ selectedStamp: number;
155
+ freetextBorderWidth?: number;
156
+ hideAnnotationSubject?: boolean;
157
+ trackHistory?: boolean;
158
+ hideOnDelete?: boolean;
159
+ onlyAuthorCanEdit?: boolean;
160
+ annotationPermissionCallback?: AnnotationPermissionCallback;
161
+ }
162
+ export interface AnnotationColorOptionsInterface {
163
+ [key: string]: any;
164
+ highlightColors: string[];
165
+ foregroundColors: string[];
166
+ backgroundColors: string[];
167
+ defaultHighlightColor: string;
168
+ defaultForegroundColor: string;
169
+ defaultBackgroundColor: string;
170
+ defaultHighlightAnnotationColor?: string;
171
+ defaultFreetextBackgroundColor?: string;
172
+ freetextBackgroundColor?: string;
173
+ defaultInkColor?: string;
174
+ defaultStickyNoteColor?: string;
175
+ }
176
+ export interface AnnotationFontOptionsInterface {
177
+ [key: string]: any;
178
+ fontFamilies: string[];
179
+ fontSizes: number[];
180
+ defaultFontFamily: keyof Fonts;
181
+ defaultFontSize: number;
182
+ defaultFreetextFontFamily?: keyof Fonts;
183
+ defaultFreetextFontSize?: number;
184
+ }
185
+ interface Fonts {
186
+ Helvetica: string;
187
+ Times: string;
188
+ Courier: string;
189
+ Symbol: string;
190
+ ZapfDingbats: string;
191
+ }
192
+ export interface TextStampSetting {
193
+ translation_key?: string;
194
+ text?: string;
195
+ thumbnail?: string;
196
+ color: StampAnnotationColor;
197
+ title?: string;
198
+ }
199
+ export interface ImageStampSetting {
200
+ image: string;
201
+ thumbnail?: string;
202
+ name?: string;
203
+ title?: string;
204
+ }
205
+ export interface PdfStampSetting {
206
+ pdfStampFileName: string;
207
+ name: string;
208
+ pageNumber: number;
209
+ thumbnail?: string;
210
+ aspectRatio?: number;
211
+ title?: string;
212
+ }
213
+ export declare const defaultAnnotationColorOptions: AnnotationColorOptionsInterface;
214
+ export declare const defaultAnnotationFontOptions: AnnotationFontOptionsInterface;
215
+ export declare const defaultAnnotationStamps: {
216
+ translation_key: string;
217
+ color: StampAnnotationColor;
218
+ }[];
219
+ export declare const defaultAnnotationOptions: AnnotationOptionsInterface;
220
+ export declare const defaultGeneralOptions: GeneralOptionsInterface;
221
+ export declare const defaultKeyboardShortcuts: KeyboardShortcutsOptionsInterface;
222
+ export declare const defaultSidebarOptions: SidebarOptionsInterface;
223
+ export declare const defaultFormsOptions: FormsOptionsInterface;
224
+ export declare const defaultPermissions: PermissionOptions;
225
+ export declare const defaultViewerOptions: ViewerOptionsInterface;
226
+ export declare const defaultViewerModules: CanvasModuleClass[];
227
+ export declare const defaultWebViewerOptions: WebViewerOptionsInterface;
228
+ export interface OptionsToVerifyInterface {
229
+ [key: string]: string;
230
+ defaultHighlightAnnotationColor: string;
231
+ defaultFreetextBgColor: string;
232
+ defaultFreetextFontColor: string;
233
+ defaultFreetextFontFamily: string;
234
+ defaultFreetextFontSize: string;
235
+ defaultInkColor: string;
236
+ defaultStickyNoteColor: string;
237
+ defaultBackgroundColor: string;
238
+ defaultForegroundColor: string;
239
+ defaultHighlightColor: string;
240
+ defaultFontSize: string;
241
+ }
242
+ export declare const OptionsToVerify: OptionsToVerifyInterface;
243
+ export interface ColorPaletteInterface {
244
+ [key: string]: string;
245
+ highlightColors: string;
246
+ backgroundColors: string;
247
+ foregroundColors: string;
248
+ }
249
+ export declare const ColorPaletteMap: ColorPaletteInterface;
250
+ declare abstract class StorageClass {
251
+ private internalStorage;
252
+ constructor();
253
+ get storage(): UserSettings;
254
+ }
255
+ export declare class GeneralOptions extends StorageClass {
256
+ private options;
257
+ constructor(_options?: Partial<GeneralOptionsInterface>);
258
+ get user(): string;
259
+ get language(): string;
260
+ get annotationBarPosition(): AnnotationBarPositions;
261
+ set annotationBarPosition(position: AnnotationBarPositions);
262
+ get promptOnUnsavedChange(): boolean;
263
+ get textSelectionColor(): string;
264
+ get rectangularTextSelection(): "none" | "automatic";
265
+ get searchMatchColor(): string;
266
+ get pageLayoutModes(): PdfPageLayoutMode[];
267
+ get defaultZoomLevels(): number[];
268
+ get pageShadow(): CanvasShadowStyles | undefined;
269
+ get currentPageShadow(): CanvasShadowStyles | undefined;
270
+ get viewOnly(): boolean | undefined;
271
+ get tooltips(): "title" | "none" | "css" | undefined;
272
+ get disableMainToolbar(): boolean | undefined;
273
+ get disableAnnotationToolbar(): boolean | undefined;
274
+ get hidePasswordFormCancelButton(): boolean | undefined;
275
+ }
276
+ export declare class SidebarOptions {
277
+ private options;
278
+ constructor(_options?: Partial<SidebarOptionsInterface>);
279
+ get thumbnailNavigation(): boolean;
280
+ get outlineNavigation(): boolean;
281
+ get annotationNavigation(): boolean | {
282
+ textMarkup: {
283
+ preview: "none" | "short";
284
+ };
285
+ };
286
+ }
287
+ export declare class FormsOptions {
288
+ private options;
289
+ constructor(_options?: Partial<FormsOptionsInterface>);
290
+ get enabled(): boolean;
291
+ }
292
+ export declare class ViewerOptions {
293
+ private options;
294
+ private generalOptions;
295
+ constructor(_options?: Partial<ViewerOptionsInterface>);
296
+ get general(): GeneralOptionsInterface;
297
+ get sidebar(): SidebarOptionsInterface;
298
+ get permissions(): PermissionOptions;
299
+ get callbacks(): Callbacks;
300
+ get customButtons(): Partial<{
301
+ annotationbar: CustomButton[];
302
+ documentbar: CustomButton[];
303
+ informationbar: CustomButton[];
304
+ }> | undefined;
305
+ }
306
+ export declare class AnnotationColorOptions extends StorageClass {
307
+ private options;
308
+ constructor(_options?: Partial<AnnotationColorOptionsInterface>);
309
+ get highlightColors(): string[];
310
+ get foregroundColors(): string[];
311
+ get backgroundColors(): string[];
312
+ get defaultHighlightColor(): string;
313
+ get defaultForegroundColor(): string;
314
+ get defaultBackgroundColor(): string;
315
+ get highlightAnnotationColor(): string;
316
+ set highlightAnnotationColor(color: string);
317
+ get stickyNoteColor(): string;
318
+ set stickyNoteColor(color: string);
319
+ get freetextBackgroundColor(): string;
320
+ set freetextBackgroundColor(color: string);
321
+ set freetextFontColor(color: string);
322
+ get freetextFontColor(): string;
323
+ get inkColor(): string;
324
+ set inkColor(color: string);
325
+ get inkOpacity(): number;
326
+ set inkOpacity(opacity: number);
327
+ set shapeColor(color: string);
328
+ get shapeColor(): string;
329
+ set shapeFillColor(color: string);
330
+ get shapeFillColor(): string;
331
+ }
332
+ export declare class AnnotationFontOptions extends StorageClass {
333
+ private options;
334
+ constructor(_options?: Partial<AnnotationFontOptionsInterface>);
335
+ get fontFamilies(): string[];
336
+ get fontSizes(): number[];
337
+ get defaultFontFamily(): keyof Fonts;
338
+ get defaultFontSize(): number;
339
+ get freetextFontSize(): number;
340
+ set freetextFontSize(size: number);
341
+ get freetextFontFamily(): string;
342
+ set freetextFontFamily(fontFamily: string);
343
+ }
344
+ export declare class AnnotationOptions extends StorageClass {
345
+ private options;
346
+ private colorOptions;
347
+ private fontOptions;
348
+ constructor(_options?: Partial<AnnotationOptionsInterface>);
349
+ get stamps(): (PdfStampSetting | TextStampSetting | ImageStampSetting)[];
350
+ get colors(): AnnotationColorOptionsInterface;
351
+ get fonts(): AnnotationFontOptionsInterface;
352
+ get highlightOpacity(): number;
353
+ get strokeWidths(): number[];
354
+ set shapeStrokeWidth(width: number);
355
+ get shapeStrokeWidth(): number;
356
+ set shapeStrokeStyle(style: number);
357
+ get shapeStrokeStyle(): number;
358
+ set inkWidth(width: number);
359
+ get inkWidth(): number;
360
+ set freetextBorderWidth(width: number);
361
+ get freetextBorderWidth(): number;
362
+ get defaultBorderWidth(): number;
363
+ get defaultStampWidth(): number;
364
+ get hideOnDelete(): boolean | undefined;
365
+ get trackHistory(): boolean | undefined;
366
+ get hideAnnotationSubject(): boolean | undefined;
367
+ get onlyAuthorCanEdit(): boolean | undefined;
368
+ get annotationPermissionCallback(): AnnotationPermissionCallback | undefined;
369
+ get selectedStamp(): number;
370
+ set selectedStamp(stampNumber: number);
371
+ set eraserRadius(width: number);
372
+ get eraserRadius(): number;
373
+ }
374
+ export declare class WebViewerOptions {
375
+ private options;
376
+ private annotationOptions;
377
+ private formsOptions;
378
+ private viewerOptions;
379
+ constructor(_options?: Partial<PdfWebViewerOptionsInterface>);
380
+ get viewer(): ViewerOptionsInterface;
381
+ get annotation(): AnnotationOptionsInterface;
382
+ get forms(): FormsOptionsInterface;
383
+ get modules(): CanvasModuleClass[];
384
+ set modules(modules: CanvasModuleClass[]);
385
+ get shortcuts(): KeyboardShortcutsOptionsInterface;
386
+ }
387
+ export {};