@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,398 @@
1
+ .pwv-NavigationPanel {
2
+ display: flex;
3
+ align-items: stretch;
4
+ justify-content: stretch;
5
+ .pwv-WebViewer--md & {
6
+ width: 0;
7
+ padding-left: 2px;
8
+ }
9
+ .pwv-WebViewer--lg & {
10
+ width: 0;
11
+ padding-left: 2px;
12
+ }
13
+ .pwv-WebViewer--sm & {
14
+ display: none;
15
+ border-top: solid 1px $viewer__BackgroundColor;
16
+ }
17
+
18
+ transition: width 0.5s;
19
+ &--open {
20
+ transition: width 0.5s;
21
+ .pwv-WebViewer--md & {
22
+ width: 260px;
23
+ }
24
+ .pwv-WebViewer--lg & {
25
+ width: 320px;
26
+ }
27
+ .pwv-WebViewer--sm & {
28
+ display: flex;
29
+ height: 280px;
30
+ min-height: 50%;
31
+ max-height: 50vh;
32
+ .pwv-Toolbar {
33
+ min-height: auto;
34
+ }
35
+ }
36
+ }
37
+ &__Box {
38
+ flex: 1;
39
+ display: flex;
40
+ flex-direction: column;
41
+
42
+ .pwv-WebViewer--md & {
43
+ width: 260px;
44
+ }
45
+ .pwv-WebViewer--lg & {
46
+ width: 320px;
47
+ }
48
+ }
49
+ &__Content {
50
+ margin-top: 2px;
51
+ background-color: $toolbarItem__BackgroundColor;
52
+ display: flex;
53
+ position: relative;
54
+ flex: 1;
55
+ overflow: auto;
56
+
57
+ .pwv-WebViewer--md & {
58
+ width: 260px;
59
+ }
60
+ .pwv-WebViewer--lg & {
61
+ width: 320px;
62
+ }
63
+ > div {
64
+ position: absolute;
65
+ top: 0;
66
+ left: 0;
67
+ right: 0;
68
+ bottom: 0;
69
+ }
70
+ .pwv-WebViewer--sm & {
71
+ margin-top: 0;
72
+ }
73
+ }
74
+
75
+ &__NoItems {
76
+ text-align: center;
77
+ margin-top: 2rem;
78
+ font-size: 1rem;
79
+ color: var(--pwv-text-muted-color);
80
+ }
81
+ }
82
+
83
+ @keyframes rotate {
84
+ from {
85
+ transform: rotate(0);
86
+ }
87
+ to {
88
+ transform: rotate(360deg);
89
+ }
90
+ }
91
+
92
+ .pwv-ItemLoader {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ width: 100%;
97
+ height: 100%;
98
+ margin: auto;
99
+ &:before {
100
+ content: ' ';
101
+ width: 18px;
102
+ height: 18px;
103
+ border: 2px solid $loader-color-1;
104
+ border-top-color: $loader-color-2;
105
+ border-radius: 50%;
106
+ animation: rotate 0.9s infinite linear;
107
+ }
108
+ }
109
+ @keyframes pageRotationFadeInDelay {
110
+ 0%,
111
+ 75% {
112
+ opacity: 0;
113
+ }
114
+ 100% {
115
+ opacity: 1;
116
+ }
117
+ }
118
+
119
+ .pwv-thumbnail-navigation {
120
+ ul {
121
+ list-style: none;
122
+ margin: 18px 0 30px 0;
123
+ padding: 0;
124
+ }
125
+ li {
126
+ display: flex;
127
+ flex-direction: column;
128
+ justify-content: flex-end;
129
+ align-items: center;
130
+ height: 260px;
131
+ position: relative;
132
+ .pwv-page-nr {
133
+ color: var(--pwv-text-color);
134
+ font-weight: 400;
135
+ display: flex;
136
+ flex-direction: column;
137
+ justify-content: center;
138
+ align-items: center;
139
+ padding: 0.75rem;
140
+ }
141
+ .pwv-page-placeholder {
142
+ height: 200px;
143
+ width: 145px;
144
+ background-color: #ffffff;
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ }
149
+ .pwv-page-placeholder,
150
+ img {
151
+ max-width: 200px;
152
+ max-height: 200px;
153
+ box-sizing: content-box;
154
+ box-shadow: var(--pwv-drop-shadow-1);
155
+ transition: box-shadow 0.25s;
156
+
157
+ .pwv-WebViewer--sm &,
158
+ .pwv-WebViewer--md & {
159
+ max-width: 180px;
160
+ max-height: 180px;
161
+ }
162
+
163
+ cursor: pointer;
164
+ &:hover {
165
+ transition: box-shadow 0.25s;
166
+ box-shadow: var(--pwv-drop-shadow-2);
167
+ }
168
+ }
169
+ &.pwv-selected {
170
+ .pwv-page-placeholder,
171
+ img {
172
+ border: 2px solid $toolbarItem__SelectedTextColor;
173
+ }
174
+ }
175
+ .pwv-page-rotation {
176
+ position: absolute;
177
+ bottom: 2rem;
178
+ opacity: 0;
179
+ transition: opacity 0.25s;
180
+ background-color: $toolbarItem__BackgroundColor;
181
+ box-shadow: var(--pwv-drop-shadow-2);
182
+
183
+ // border: 2px solid $toolbar__TextColor;
184
+ button {
185
+ background-color: transparent;
186
+ border: none;
187
+ outline: none;
188
+ color: $toolbarItem__TextColor;
189
+ height: 40px;
190
+ min-height: 40px;
191
+ &:hover {
192
+ color: $toolbarItem__HoverTextColor;
193
+ }
194
+ svg {
195
+ height: $toolbarItem__IconSize;
196
+ }
197
+ }
198
+ }
199
+ &:hover .pwv-page-rotation {
200
+ animation: pageRotationFadeInDelay 0.5s ease-in;
201
+ opacity: 1;
202
+ }
203
+ }
204
+ &-img-container {
205
+ display: flex;
206
+ flex-direction: column;
207
+ justify-content: center;
208
+ align-items: center;
209
+ height: 200px;
210
+ }
211
+ }
212
+
213
+ .pwv-outline-navigation {
214
+ font-size: 1rem;
215
+ font-weight: 400;
216
+
217
+ padding: 1rem;
218
+ .pwv-WebViewer--sm &,
219
+ .pwv-WebViewer--md & {
220
+ font-size: 0.9rem;
221
+ }
222
+ ul {
223
+ list-style: none;
224
+ margin: 0;
225
+ padding: 0;
226
+ ul {
227
+ padding-left: 14px;
228
+ }
229
+ }
230
+ li {
231
+ margin: 0;
232
+ padding: 0;
233
+ > div {
234
+ display: flex;
235
+ padding: 8px 2px;
236
+ }
237
+ }
238
+ }
239
+
240
+ .pwv-outline-tree-indent,
241
+ .pwv-outline-tree-btn-expand,
242
+ .pwv-outline-tree-btn-collapse {
243
+ display: block;
244
+ flex-shrink: 0;
245
+ text-align: center;
246
+ height: 16px;
247
+ width: 18px;
248
+ box-sizing: border-box;
249
+ padding: 0;
250
+ margin: 0 2px 0 0;
251
+ border: none;
252
+ }
253
+ .pwv-outline-tree-btn-expand,
254
+ .pwv-outline-tree-btn-collapse {
255
+ cursor: pointer;
256
+ .pwv-icon {
257
+ height: 12px;
258
+ svg {
259
+ height: 12px;
260
+ }
261
+ }
262
+ }
263
+ .pwv-outline-tree-btn-collapse {
264
+ .pwv-icon {
265
+ svg {
266
+ fill: $toolbarItem__SelectedTextColor;
267
+ }
268
+ }
269
+ }
270
+ .pwv-outline-tree-lnk {
271
+ display: block;
272
+ cursor: pointer;
273
+ transition: 0.15s;
274
+ &:hover {
275
+ transition: 0.15s;
276
+ color: $toolbarItem__SelectedTextColor;
277
+ }
278
+ }
279
+
280
+ .pwv-annotation-navigation {
281
+ padding: 1rem;
282
+ margin: 0;
283
+ ul {
284
+ list-style: none;
285
+ padding: 0;
286
+ margin: 0 0 24px 0;
287
+ }
288
+ h4 {
289
+ margin: 12px 0 8px 4px;
290
+ }
291
+ }
292
+
293
+ .pwv-annotation-navigation-item {
294
+ position: relative;
295
+ margin: 10px 0;
296
+ padding: 6px 0 6px 0;
297
+ background-color: #ffffff;
298
+ border: solid 2px transparent;
299
+ transition: box-shadow 0.3s;
300
+ cursor: pointer;
301
+ box-shadow: var(--pwv-drop-shadow-1);
302
+ &.pwv-selected {
303
+ border: solid 2px $toolbarItem__SelectedTextColor;
304
+ }
305
+ &.pwv-deleted {
306
+ opacity: 0.5;
307
+ }
308
+ &:hover {
309
+ transition: box-shadow 0.3s;
310
+ box-shadow: var(--pwv-drop-shadow-2);
311
+ }
312
+ > div {
313
+ margin: 8px 10px;
314
+ }
315
+ > div:first-child {
316
+ display: flex;
317
+ align-items: center;
318
+ .pwv-icon {
319
+ height: 18px;
320
+ width: 24px;
321
+ margin-right: 4px;
322
+ svg {
323
+ height: 18px;
324
+ }
325
+ }
326
+ }
327
+
328
+ time {
329
+ font-style: italic;
330
+ font-size: 0.9rem;
331
+ display: inline-block;
332
+ }
333
+ .pwv-author {
334
+ font-style: italic;
335
+ font-size: 0.9rem;
336
+ font-weight: 500;
337
+ display: inline-block;
338
+ margin-right: 4px;
339
+ &:after {
340
+ content: ',';
341
+ }
342
+ }
343
+ p,
344
+ h5 {
345
+ padding: 0;
346
+ margin: 0 0 4px 0;
347
+ font-size: 16px;
348
+ }
349
+ .pwv-icon {
350
+ height: 18px;
351
+ svg {
352
+ height: 18px;
353
+ }
354
+ &.pwv-locked-icon {
355
+ position: absolute;
356
+ bottom: 4px;
357
+ right: 4px;
358
+ svg {
359
+ fill: $toolbar__TextMutedColor;
360
+ }
361
+ }
362
+ }
363
+ .pwv-ms-custom-history-list {
364
+ border-top: solid 1px $toolbar__TextColor;
365
+ ul {
366
+ list-style: none;
367
+ margin: 0;
368
+ padding: 0;
369
+ }
370
+ li {
371
+ margin: 12px 0;
372
+ > div:first-child {
373
+ display: flex;
374
+ color: $toolbar__TextMutedColor;
375
+ }
376
+ .pwv-icon {
377
+ height: 13px;
378
+ width: 17px;
379
+ margin-right: 6px;
380
+ svg {
381
+ width: 17px;
382
+ height: 13px;
383
+ }
384
+ }
385
+ }
386
+ }
387
+ .pwv-ms-custom-history-content {
388
+ margin-left: 23px;
389
+ }
390
+ }
391
+
392
+ .pwv-overflow-ellipsis {
393
+ padding-bottom: 5px;
394
+ display: block;
395
+ overflow: hidden;
396
+ white-space: nowrap;
397
+ text-overflow: ellipsis;
398
+ }
@@ -0,0 +1,47 @@
1
+ .pwv-searchbar-input {
2
+ padding: 0 10px;
3
+ input {
4
+ padding: 0 5px;
5
+ border: none;
6
+ min-width: 250px;
7
+ height: 32px;
8
+ line-height: 32px;
9
+ .pwv-WebViewer--sm & {
10
+ min-width: 150px;
11
+ width: 150px;
12
+ }
13
+ }
14
+ }
15
+
16
+ .pwv-searchoptions {
17
+ .pwv-checkbox-btn {
18
+ border: none;
19
+ background-color: transparent;
20
+ display: flex;
21
+ align-items: center;
22
+ box-sizing: border-box;
23
+ flex-wrap: nowrap;
24
+ width: 100%;
25
+ height: $dropdownItem__Height;
26
+ font-size: 1em;
27
+ padding: 4px;
28
+ white-space: nowrap;
29
+ .pwv-icon {
30
+ display: block;
31
+ height: 18px;
32
+ margin-right: 6px;
33
+ svg {
34
+ height: 18px;
35
+ fill: $toolbarItem__SelectedTextColor;
36
+ }
37
+ }
38
+ }
39
+ .pwv-DropdownPanel {
40
+ min-width: 150px;
41
+ padding: 8px;
42
+ z-index: 5;
43
+ li {
44
+ padding: 4px;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,134 @@
1
+ @use 'sass:math';
2
+
3
+ .pwv-AppBar {
4
+ .pwv-Toolbar {
5
+ margin-bottom: 2px;
6
+ }
7
+ }
8
+
9
+ .pwv-DocumentBar {
10
+ margin-right: auto;
11
+ }
12
+
13
+ .pwv-NavigationBar {
14
+ .pwv-WebViewer--sm & {
15
+ .pwv-ToolbarButton {
16
+ min-width: math.div($toolbarItem__MinWidth, 2);
17
+ }
18
+ }
19
+ }
20
+
21
+ .pwv-ZoomBar {
22
+ .pwv-WebViewer--sm & {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ .pwv-ViewBar {
28
+ .pwv-WebViewer--sm & {
29
+ display: none;
30
+ }
31
+ }
32
+
33
+ .pwv-AddonsBar {
34
+ margin-left: auto;
35
+ }
36
+
37
+ .pwv-SearchBar {
38
+ justify-content: flex-end;
39
+ .pwv-WebViewer--md &,
40
+ .pwv-WebViewer--sm & {
41
+ margin-top: -($toolbarItem__height + 2px);
42
+ }
43
+ }
44
+
45
+ .pwv-AnnotationMenu {
46
+ .pwv-DropdownPanel {
47
+ right: 0;
48
+ }
49
+ }
50
+
51
+ .pwv-search-toolbar-result-index {
52
+ padding: 0 10px;
53
+ min-width: 100px;
54
+ text-align: center;
55
+ }
56
+
57
+ .pwv-navigation-toolbar-pageinput {
58
+ box-sizing: border-box;
59
+ padding-left: 0;
60
+ padding-right: 0;
61
+ justify-content: space-between;
62
+
63
+ input {
64
+ width: 2.2rem;
65
+ text-align: right;
66
+ background-color: transparent;
67
+ color: $toolbarItem__SelectedTextColor;
68
+ padding-left: 0;
69
+ padding-right: 0.2rem;
70
+ &:hover,
71
+ &:focus {
72
+ background-color: #ffffff;
73
+ }
74
+ }
75
+ > span {
76
+ display: block;
77
+ padding: 3px;
78
+ }
79
+ > label {
80
+ display: block;
81
+ min-width: 2.2rem;
82
+ padding-left: 0.2rem;
83
+ }
84
+ // .pwv-WebViewer--sm & {
85
+ // font-size: 0.8rem;
86
+ // height: math.div($toolbarItem__height, 1.5);
87
+ // input {
88
+ // height: 20px;
89
+ // }
90
+ // }
91
+ }
92
+
93
+ .pwv-Dropdown-zoom {
94
+ width: 84px;
95
+ > button {
96
+ justify-content: flex-end;
97
+ }
98
+
99
+ &.pwv-Dropdown {
100
+ .pwv-Dropdown-text {
101
+ padding: 0 4px 0 4px;
102
+ }
103
+ }
104
+ }
105
+
106
+ .pwv-page-layout-mode {
107
+ .pwv-DropdownPanel {
108
+ left: auto;
109
+ right: 0;
110
+ }
111
+ }
112
+
113
+ .pwv-page-layout-mode-item {
114
+ display: flex;
115
+ align-items: center;
116
+ }
117
+
118
+ .pwv-page-layout-mode-icon {
119
+ display: block;
120
+ height: $toolbarItem__IconSize;
121
+ svg {
122
+ height: $toolbarItem__IconSize;
123
+ }
124
+ }
125
+
126
+ .pwv-WebViewer {
127
+ &.pwv-WebViewer--sm {
128
+ .pwv-canvas-toolbar {
129
+ .pwv-Toolbar {
130
+ margin-top: -($toolbarItem__height + 2px);
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,54 @@
1
+ #outerContainer {
2
+ width: 100%;
3
+ height: 100%;
4
+ position: relative;
5
+ }
6
+
7
+ #printContainer {
8
+ display: none;
9
+ }
10
+
11
+ @media print {
12
+ /* General rules for printing. */
13
+ body {
14
+ height: 200px;
15
+ }
16
+ .page {
17
+ float: left;
18
+ display: none;
19
+ border: 200px;
20
+ box-shadow: none;
21
+ background-clip: content-box;
22
+ background-color: rgb(255, 255, 255);
23
+ }
24
+ .page[data-loaded] {
25
+ display: block;
26
+ }
27
+ /* Rules for browsers that support PDF.js printing */
28
+ body[data-pdfwebviewerprinting] #outerContainer {
29
+ display: none;
30
+ }
31
+
32
+ body[data-pdfwebviewerprinting] #printContainer {
33
+ display: block;
34
+ }
35
+ #printContainer {
36
+ height: auto;
37
+ }
38
+ /* wrapper around (scaled) print canvas elements */
39
+ #printContainer > div {
40
+ position: relative;
41
+ top: 0;
42
+ left: 0;
43
+ width: 1px;
44
+ height: 1px;
45
+ overflow: visible;
46
+ page-break-after: always;
47
+ page-break-inside: avoid;
48
+ }
49
+ #printContainer canvas,
50
+ #printContainer img {
51
+ direction: ltr;
52
+ display: block;
53
+ }
54
+ }
@@ -0,0 +1 @@
1
+ @import './themes/default/light';
@@ -0,0 +1,32 @@
1
+ /***********************
2
+ * colors
3
+ ***********************/
4
+
5
+ .pwv-WebViewer {
6
+ --pwv-text-color: #282724;
7
+ --pwv-text-muted-color: #b5b4b0;
8
+ --pwv-text-contrast-color: #ffffff;
9
+
10
+ --pwv-selection-color: #006395;
11
+
12
+ --pwv-ui-color-100: #f8f7f7;
13
+ --pwv-ui-color-200: #f0f0ef;
14
+ --pwv-ui-color-300: #dad9d8;
15
+ --pwv-ui-color-400: #b5b4b0;
16
+ --pwv-ui-color-500: #676765;
17
+ --pwv-ui-color-600: #282724;
18
+ --pwv-ui-color-700: #000000;
19
+
20
+ --pwv-brand-color-100: #ecf6fe;
21
+ --pwv-brand-color-200: #d8edfd;
22
+ --pwv-brand-color-300: #b6ddfb;
23
+ --pwv-brand-color-400: #80c8ff;
24
+ --pwv-brand-color-500: #0d8ff2;
25
+ --pwv-brand-color-600: #0b81da;
26
+ --pwv-brand-color-700: #0f558a;
27
+
28
+ --pwv-drop-shadow-1: 0 0 4px rgba(0, 0, 0, 0.1);
29
+ --pwv-drop-shadow-2: 0 0 8px rgba(0, 0, 0, 0.2);
30
+ --pwv-drop-shadow-3: 0 3px 8px rgba(0, 0, 0, 0.3);
31
+ }
32
+ @import './theme';