@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,3 @@
1
+ export declare const annotationDefaultBehaviors: {
2
+ [key: number]: boolean[];
3
+ };
@@ -0,0 +1,30 @@
1
+ import { PdfItemType } from './enums';
2
+ // prettier-ignore
3
+ export const annotationDefaultBehaviors = {
4
+ // select,edit, delete,move, rotate,resize,ratio, popup, link, text
5
+ [PdfItemType.TEXT]: [true, false, true, true, false, false, false, true, false, false],
6
+ [PdfItemType.LINK]: [false, false, false, true, false, false, false, false, true, false],
7
+ [PdfItemType.FREE_TEXT]: [true, false, true, true, true, true, true, false, false, false],
8
+ [PdfItemType.LINE]: [true, false, true, true, false, true, true, true, false, false],
9
+ [PdfItemType.SQUARE]: [true, false, true, true, false, true, true, true, false, false],
10
+ [PdfItemType.CIRCLE]: [true, false, true, true, false, true, true, true, false, false],
11
+ [PdfItemType.POLYGON]: [true, false, true, true, false, true, true, true, false, false],
12
+ [PdfItemType.POLY_LINE]: [true, false, true, true, false, true, true, true, false, false],
13
+ [PdfItemType.HIGHLIGHT]: [true, false, true, false, false, false, false, true, false, true],
14
+ [PdfItemType.UNDERLINE]: [true, false, true, false, false, false, false, true, false, true],
15
+ [PdfItemType.SQUIGGLY]: [true, false, true, false, false, false, false, true, false, true],
16
+ [PdfItemType.STRIKE_OUT]: [true, false, true, false, false, false, false, true, false, true],
17
+ [PdfItemType.STAMP]: [true, false, true, true, true, true, false, true, false, false],
18
+ [PdfItemType.CARET]: [true, false, true, false, false, false, false, true, false, false],
19
+ [PdfItemType.INK]: [true, false, true, true, false, true, true, true, false, false],
20
+ [PdfItemType.POPUP]: [false, false, false, false, false, false, false, false, false, false],
21
+ [PdfItemType.FILE_ATTACHMENT]: [false, false, false, false, false, false, false, false, false, false],
22
+ [PdfItemType.SOUND]: [false, false, false, false, false, false, false, false, false, false],
23
+ [PdfItemType.MOVIE]: [false, false, false, false, false, false, false, false, false, false],
24
+ [PdfItemType.WIDGET]: [true, false, false, false, false, false, false, false, false, false],
25
+ [PdfItemType.SCREEN]: [false, false, false, false, false, false, false, false, false, false],
26
+ [PdfItemType.PRINTER_MARK]: [false, false, false, false, false, false, false, false, false, false],
27
+ [PdfItemType.TRAP_NET]: [false, false, false, false, false, false, false, false, false, false],
28
+ [PdfItemType.WATERMARK]: [false, false, false, false, false, false, false, false, false, false],
29
+ [PdfItemType.THREED]: [false, false, false, false, false, false, false, false, false, false],
30
+ };
@@ -0,0 +1,100 @@
1
+ export declare enum PdfItemCategory {
2
+ ANNOTATION = 1,
3
+ TEXT_FRAGMENT = 2,
4
+ OUTLINE = 3,
5
+ DESTINATION = 4,
6
+ CONTENT_ELEMENT = 5
7
+ }
8
+ export declare enum AnnotationBorderStyle {
9
+ SOLID = 0,
10
+ DASHED = 1,
11
+ BEVELED = 2,
12
+ INSET = 3,
13
+ UNDERLINE = 4
14
+ }
15
+ export declare enum StampAnnotationColor {
16
+ GREEN = 0,
17
+ RED = 1,
18
+ BLUE = 2
19
+ }
20
+ export declare enum WidgetType {
21
+ CHECK_BOX = 1,
22
+ RADIO_BUTTON = 2,
23
+ TEXT_BOX = 3,
24
+ LIST_BOX = 4,
25
+ COMBO_BOX = 5
26
+ }
27
+ export declare enum PdfItemType {
28
+ UNKNOWN = 0,
29
+ TEXT = 1,
30
+ LINK = 2,
31
+ FREE_TEXT = 3,
32
+ LINE = 4,
33
+ SQUARE = 5,
34
+ CIRCLE = 6,
35
+ POLYGON = 7,
36
+ POLY_LINE = 8,
37
+ HIGHLIGHT = 9,
38
+ UNDERLINE = 10,
39
+ SQUIGGLY = 11,
40
+ STRIKE_OUT = 12,
41
+ STAMP = 13,
42
+ CARET = 14,
43
+ INK = 15,
44
+ POPUP = 16,
45
+ FILE_ATTACHMENT = 17,
46
+ SOUND = 18,
47
+ MOVIE = 19,
48
+ WIDGET = 20,
49
+ SCREEN = 21,
50
+ PRINTER_MARK = 22,
51
+ TRAP_NET = 23,
52
+ WATERMARK = 24,
53
+ THREED = 25
54
+ }
55
+ export declare enum PdfDestinationType {
56
+ FIT = 1,
57
+ FITH = 2,
58
+ FITV = 3,
59
+ FITR = 4,
60
+ FITB = 5,
61
+ FITBH = 6,
62
+ FITBV = 7,
63
+ XYZ = 8
64
+ }
65
+ export declare enum PdfFitMode {
66
+ NONE = 0,
67
+ FIT_WIDTH = 1,
68
+ FIT_PAGE = 2
69
+ }
70
+ export declare enum PdfPageLayoutMode {
71
+ SINGLE_PAGE = 0,
72
+ ONE_COLUMN = 1,
73
+ TWO_COLUMN_LEFT = 2,
74
+ TWO_COLUMN_RIGHT = 3,
75
+ TWO_PAGE_LEFT = 4,
76
+ TWO_PAGE_RIGHT = 5
77
+ }
78
+ export declare enum PdfActionType {
79
+ UNKNOWN = 0,
80
+ GO_TO = 1,
81
+ URI = 2
82
+ }
83
+ export declare enum StampType {
84
+ TEXT = 0,
85
+ IMAGE = 1
86
+ }
87
+ export declare enum SearchResultType {
88
+ OK = 0,
89
+ NO_RESULT = 1,
90
+ END = 2
91
+ }
92
+ export declare enum DocumentChange {
93
+ NONE = 0,
94
+ ANNOTATION = 1,
95
+ CONTENT = 2
96
+ }
97
+ export declare enum RotationDirection {
98
+ CLOCKWISE = 90,
99
+ COUNTERCLOCKWISE = 270
100
+ }
@@ -0,0 +1,113 @@
1
+ export var PdfItemCategory;
2
+ (function (PdfItemCategory) {
3
+ PdfItemCategory[PdfItemCategory["ANNOTATION"] = 1] = "ANNOTATION";
4
+ PdfItemCategory[PdfItemCategory["TEXT_FRAGMENT"] = 2] = "TEXT_FRAGMENT";
5
+ PdfItemCategory[PdfItemCategory["OUTLINE"] = 3] = "OUTLINE";
6
+ PdfItemCategory[PdfItemCategory["DESTINATION"] = 4] = "DESTINATION";
7
+ PdfItemCategory[PdfItemCategory["CONTENT_ELEMENT"] = 5] = "CONTENT_ELEMENT";
8
+ })(PdfItemCategory || (PdfItemCategory = {}));
9
+ export var AnnotationBorderStyle;
10
+ (function (AnnotationBorderStyle) {
11
+ AnnotationBorderStyle[AnnotationBorderStyle["SOLID"] = 0] = "SOLID";
12
+ AnnotationBorderStyle[AnnotationBorderStyle["DASHED"] = 1] = "DASHED";
13
+ AnnotationBorderStyle[AnnotationBorderStyle["BEVELED"] = 2] = "BEVELED";
14
+ AnnotationBorderStyle[AnnotationBorderStyle["INSET"] = 3] = "INSET";
15
+ AnnotationBorderStyle[AnnotationBorderStyle["UNDERLINE"] = 4] = "UNDERLINE";
16
+ })(AnnotationBorderStyle || (AnnotationBorderStyle = {}));
17
+ export var StampAnnotationColor;
18
+ (function (StampAnnotationColor) {
19
+ StampAnnotationColor[StampAnnotationColor["GREEN"] = 0] = "GREEN";
20
+ StampAnnotationColor[StampAnnotationColor["RED"] = 1] = "RED";
21
+ StampAnnotationColor[StampAnnotationColor["BLUE"] = 2] = "BLUE";
22
+ })(StampAnnotationColor || (StampAnnotationColor = {}));
23
+ export var WidgetType;
24
+ (function (WidgetType) {
25
+ WidgetType[WidgetType["CHECK_BOX"] = 1] = "CHECK_BOX";
26
+ WidgetType[WidgetType["RADIO_BUTTON"] = 2] = "RADIO_BUTTON";
27
+ WidgetType[WidgetType["TEXT_BOX"] = 3] = "TEXT_BOX";
28
+ WidgetType[WidgetType["LIST_BOX"] = 4] = "LIST_BOX";
29
+ WidgetType[WidgetType["COMBO_BOX"] = 5] = "COMBO_BOX";
30
+ })(WidgetType || (WidgetType = {}));
31
+ export var PdfItemType;
32
+ (function (PdfItemType) {
33
+ PdfItemType[PdfItemType["UNKNOWN"] = 0] = "UNKNOWN";
34
+ PdfItemType[PdfItemType["TEXT"] = 1] = "TEXT";
35
+ PdfItemType[PdfItemType["LINK"] = 2] = "LINK";
36
+ PdfItemType[PdfItemType["FREE_TEXT"] = 3] = "FREE_TEXT";
37
+ PdfItemType[PdfItemType["LINE"] = 4] = "LINE";
38
+ PdfItemType[PdfItemType["SQUARE"] = 5] = "SQUARE";
39
+ PdfItemType[PdfItemType["CIRCLE"] = 6] = "CIRCLE";
40
+ PdfItemType[PdfItemType["POLYGON"] = 7] = "POLYGON";
41
+ PdfItemType[PdfItemType["POLY_LINE"] = 8] = "POLY_LINE";
42
+ PdfItemType[PdfItemType["HIGHLIGHT"] = 9] = "HIGHLIGHT";
43
+ PdfItemType[PdfItemType["UNDERLINE"] = 10] = "UNDERLINE";
44
+ PdfItemType[PdfItemType["SQUIGGLY"] = 11] = "SQUIGGLY";
45
+ PdfItemType[PdfItemType["STRIKE_OUT"] = 12] = "STRIKE_OUT";
46
+ PdfItemType[PdfItemType["STAMP"] = 13] = "STAMP";
47
+ PdfItemType[PdfItemType["CARET"] = 14] = "CARET";
48
+ PdfItemType[PdfItemType["INK"] = 15] = "INK";
49
+ PdfItemType[PdfItemType["POPUP"] = 16] = "POPUP";
50
+ PdfItemType[PdfItemType["FILE_ATTACHMENT"] = 17] = "FILE_ATTACHMENT";
51
+ PdfItemType[PdfItemType["SOUND"] = 18] = "SOUND";
52
+ PdfItemType[PdfItemType["MOVIE"] = 19] = "MOVIE";
53
+ PdfItemType[PdfItemType["WIDGET"] = 20] = "WIDGET";
54
+ PdfItemType[PdfItemType["SCREEN"] = 21] = "SCREEN";
55
+ PdfItemType[PdfItemType["PRINTER_MARK"] = 22] = "PRINTER_MARK";
56
+ PdfItemType[PdfItemType["TRAP_NET"] = 23] = "TRAP_NET";
57
+ PdfItemType[PdfItemType["WATERMARK"] = 24] = "WATERMARK";
58
+ PdfItemType[PdfItemType["THREED"] = 25] = "THREED";
59
+ })(PdfItemType || (PdfItemType = {}));
60
+ export var PdfDestinationType;
61
+ (function (PdfDestinationType) {
62
+ PdfDestinationType[PdfDestinationType["FIT"] = 1] = "FIT";
63
+ PdfDestinationType[PdfDestinationType["FITH"] = 2] = "FITH";
64
+ PdfDestinationType[PdfDestinationType["FITV"] = 3] = "FITV";
65
+ PdfDestinationType[PdfDestinationType["FITR"] = 4] = "FITR";
66
+ PdfDestinationType[PdfDestinationType["FITB"] = 5] = "FITB";
67
+ PdfDestinationType[PdfDestinationType["FITBH"] = 6] = "FITBH";
68
+ PdfDestinationType[PdfDestinationType["FITBV"] = 7] = "FITBV";
69
+ PdfDestinationType[PdfDestinationType["XYZ"] = 8] = "XYZ";
70
+ })(PdfDestinationType || (PdfDestinationType = {}));
71
+ export var PdfFitMode;
72
+ (function (PdfFitMode) {
73
+ PdfFitMode[PdfFitMode["NONE"] = 0] = "NONE";
74
+ PdfFitMode[PdfFitMode["FIT_WIDTH"] = 1] = "FIT_WIDTH";
75
+ PdfFitMode[PdfFitMode["FIT_PAGE"] = 2] = "FIT_PAGE";
76
+ })(PdfFitMode || (PdfFitMode = {}));
77
+ export var PdfPageLayoutMode;
78
+ (function (PdfPageLayoutMode) {
79
+ PdfPageLayoutMode[PdfPageLayoutMode["SINGLE_PAGE"] = 0] = "SINGLE_PAGE";
80
+ PdfPageLayoutMode[PdfPageLayoutMode["ONE_COLUMN"] = 1] = "ONE_COLUMN";
81
+ PdfPageLayoutMode[PdfPageLayoutMode["TWO_COLUMN_LEFT"] = 2] = "TWO_COLUMN_LEFT";
82
+ PdfPageLayoutMode[PdfPageLayoutMode["TWO_COLUMN_RIGHT"] = 3] = "TWO_COLUMN_RIGHT";
83
+ PdfPageLayoutMode[PdfPageLayoutMode["TWO_PAGE_LEFT"] = 4] = "TWO_PAGE_LEFT";
84
+ PdfPageLayoutMode[PdfPageLayoutMode["TWO_PAGE_RIGHT"] = 5] = "TWO_PAGE_RIGHT";
85
+ })(PdfPageLayoutMode || (PdfPageLayoutMode = {}));
86
+ export var PdfActionType;
87
+ (function (PdfActionType) {
88
+ PdfActionType[PdfActionType["UNKNOWN"] = 0] = "UNKNOWN";
89
+ PdfActionType[PdfActionType["GO_TO"] = 1] = "GO_TO";
90
+ PdfActionType[PdfActionType["URI"] = 2] = "URI";
91
+ })(PdfActionType || (PdfActionType = {}));
92
+ export var StampType;
93
+ (function (StampType) {
94
+ StampType[StampType["TEXT"] = 0] = "TEXT";
95
+ StampType[StampType["IMAGE"] = 1] = "IMAGE";
96
+ })(StampType || (StampType = {}));
97
+ export var SearchResultType;
98
+ (function (SearchResultType) {
99
+ SearchResultType[SearchResultType["OK"] = 0] = "OK";
100
+ SearchResultType[SearchResultType["NO_RESULT"] = 1] = "NO_RESULT";
101
+ SearchResultType[SearchResultType["END"] = 2] = "END";
102
+ })(SearchResultType || (SearchResultType = {}));
103
+ export var DocumentChange;
104
+ (function (DocumentChange) {
105
+ DocumentChange[DocumentChange["NONE"] = 0] = "NONE";
106
+ DocumentChange[DocumentChange["ANNOTATION"] = 1] = "ANNOTATION";
107
+ DocumentChange[DocumentChange["CONTENT"] = 2] = "CONTENT";
108
+ })(DocumentChange || (DocumentChange = {}));
109
+ export var RotationDirection;
110
+ (function (RotationDirection) {
111
+ RotationDirection[RotationDirection["CLOCKWISE"] = 90] = "CLOCKWISE";
112
+ RotationDirection[RotationDirection["COUNTERCLOCKWISE"] = 270] = "COUNTERCLOCKWISE";
113
+ })(RotationDirection || (RotationDirection = {}));
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './enums';
3
+ export * from './PdfViewerApi';
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './enums';
3
+ export * from './PdfViewerApi';
@@ -0,0 +1,284 @@
1
+ import { PdfItemType, PdfItemCategory, AnnotationBorderStyle, StampAnnotationColor, PdfActionType, StampType, WidgetType, PdfPageLayoutMode, PdfFitMode } from './enums';
2
+ export interface PdfViewerApiOptions {
3
+ user?: string;
4
+ viewOnly?: boolean;
5
+ onlyAuthorCanEdit: boolean;
6
+ allowPopups: boolean;
7
+ annotationPermissionCallback?: AnnotationPermissionCallback;
8
+ }
9
+ export interface PdfDestination {
10
+ destinationType: number;
11
+ pageNumber: number;
12
+ left: number | null;
13
+ top: number | null;
14
+ zoom: number | null;
15
+ }
16
+ export interface PdfItemsOnPage {
17
+ page: number;
18
+ itemCategory: number;
19
+ items: PdfItem[];
20
+ }
21
+ export interface ScrollPosition {
22
+ x: number;
23
+ y: number;
24
+ }
25
+ export interface MaxScrollPosition {
26
+ x: number;
27
+ y: number;
28
+ }
29
+ export interface Point {
30
+ x: number;
31
+ y: number;
32
+ }
33
+ export interface PageImage {
34
+ page: number;
35
+ imageData: ImageData;
36
+ }
37
+ export interface PdfPageSize {
38
+ width: number;
39
+ height: number;
40
+ }
41
+ export interface PdfPoint {
42
+ pdfX: number;
43
+ pdfY: number;
44
+ page: number;
45
+ }
46
+ export interface PdfRect {
47
+ pdfX: number;
48
+ pdfY: number;
49
+ pdfW: number;
50
+ pdfH: number;
51
+ page: number;
52
+ }
53
+ export interface QuadrilateralOnPage {
54
+ pageNumber: number;
55
+ bottomLeft: Point;
56
+ bottomRight: Point;
57
+ topRight: Point;
58
+ topLeft: Point;
59
+ }
60
+ export interface TextSelection {
61
+ quadrilaterals: QuadrilateralOnPage[];
62
+ startPoint: PdfPoint;
63
+ endPoint: PdfPoint;
64
+ }
65
+ export interface ScreenPointToPdfPointResult {
66
+ pdfPoint: PdfPoint;
67
+ isOnPage: boolean;
68
+ }
69
+ export interface Rect {
70
+ x: number;
71
+ y: number;
72
+ w: number;
73
+ h: number;
74
+ }
75
+ export interface PdfItem {
76
+ id: number;
77
+ itemCategory: PdfItemCategory;
78
+ }
79
+ export interface PdfPositionalItem extends PdfItem {
80
+ pdfRect: PdfRect;
81
+ }
82
+ export interface TextFragment extends PdfPositionalItem {
83
+ pdfRect: PdfRect;
84
+ defaultRotation: 0;
85
+ glyphOffsets: number[];
86
+ text: string;
87
+ }
88
+ export interface AnnotationPopup extends Annotation {
89
+ isOpen: boolean;
90
+ }
91
+ export interface AnnotationBehaviors {
92
+ selectable: boolean;
93
+ editable: boolean;
94
+ deletable: boolean;
95
+ movable: boolean;
96
+ rotatable: boolean;
97
+ resizable: boolean;
98
+ aspectRatioChangeable: boolean;
99
+ canHavePopup: boolean;
100
+ link: boolean;
101
+ text: boolean;
102
+ }
103
+ export interface Annotation extends PdfPositionalItem {
104
+ itemType: PdfItemType;
105
+ modificationDate: Date | null;
106
+ creationDate: Date | null;
107
+ border: AnnotationBorder;
108
+ page: number;
109
+ content: string | null;
110
+ subject: string | null;
111
+ color: string | null;
112
+ author: string;
113
+ popup: AnnotationPopup;
114
+ identifier: string | null;
115
+ privateData: string | null;
116
+ sourceTag: string | null;
117
+ behaviors: AnnotationBehaviors;
118
+ setLock(isLocked: boolean): void;
119
+ isLocked(): boolean;
120
+ isHidden(): boolean;
121
+ setHidden(hidden: boolean): void;
122
+ isReadOnly(): boolean;
123
+ }
124
+ export interface LinkAnnotation extends PdfPositionalItem {
125
+ actionType: PdfActionType;
126
+ destination: PdfDestination | null;
127
+ uri: string | null;
128
+ }
129
+ export interface InkAnnotation extends Annotation {
130
+ inkList: {
131
+ x: number;
132
+ y: number;
133
+ }[][];
134
+ }
135
+ export interface StampAnnotation extends Annotation {
136
+ rotation: number;
137
+ }
138
+ export interface ShapeAnnotation extends Annotation {
139
+ fillColor: string;
140
+ }
141
+ export interface HighlightAnnotation extends Annotation {
142
+ markedText: string;
143
+ quadrilaterals: QuadrilateralOnPage[];
144
+ }
145
+ export interface FreetextAnnotation extends Annotation {
146
+ rotation: number;
147
+ fontSize: number;
148
+ fontName: string;
149
+ fontColor: string;
150
+ richText: string | null;
151
+ border: AnnotationBorder;
152
+ }
153
+ export interface WidgetAnnotation extends Annotation {
154
+ widgetType: WidgetType;
155
+ widget: any;
156
+ pdfDocument: any;
157
+ }
158
+ export interface StampInfoArgs {
159
+ stampType: StampType;
160
+ stampText: string | null;
161
+ name: string | null;
162
+ }
163
+ export interface StampInfo {
164
+ stampType: StampType;
165
+ name: string | null;
166
+ stampText: string | null;
167
+ aspectRatio: number;
168
+ }
169
+ export interface AnnotationBorder {
170
+ width: number;
171
+ style: AnnotationBorderStyle;
172
+ }
173
+ export interface ItemArgs {
174
+ category: PdfItemCategory;
175
+ }
176
+ export interface AnnotationArgs {
177
+ itemType: PdfItemType;
178
+ page: number;
179
+ pdfRect: PdfRect;
180
+ color: string | null;
181
+ author?: string;
182
+ content?: string;
183
+ subject?: string;
184
+ }
185
+ export interface InkAnnotationArgs extends AnnotationArgs {
186
+ border: AnnotationBorder;
187
+ inkList: number[][];
188
+ }
189
+ export interface FreeTextAnnotationArgs extends AnnotationArgs {
190
+ border: AnnotationBorder;
191
+ richtext: string | null;
192
+ fontName: string | null;
193
+ fontColor: string | null;
194
+ fontSize: number | null;
195
+ }
196
+ export interface TextStampAnnotationArgs extends AnnotationArgs {
197
+ stampColor?: StampAnnotationColor;
198
+ stampText: string;
199
+ stampName?: string | null;
200
+ }
201
+ export interface ImageStampAnnotationArgs extends AnnotationArgs {
202
+ imageId: number;
203
+ }
204
+ export interface HighlightAnnotationArgs extends AnnotationArgs {
205
+ quadrilaterals: QuadrilateralOnPage[];
206
+ }
207
+ export interface ShapeDrawingAnnotationArgs extends AnnotationArgs {
208
+ border?: AnnotationBorder;
209
+ fillColor: string | null;
210
+ }
211
+ export interface CircleAnnotationArgs extends ShapeDrawingAnnotationArgs {
212
+ }
213
+ export interface SquareAnnotationArgs extends ShapeDrawingAnnotationArgs {
214
+ }
215
+ export interface OutlineItem extends PdfItem {
216
+ destination: PdfDestination;
217
+ hasDescendants: boolean;
218
+ level: number;
219
+ title: string;
220
+ }
221
+ export interface DeletedItem {
222
+ id: number;
223
+ page: number;
224
+ categoryType: PdfItemCategory;
225
+ }
226
+ export interface BoundingBox {
227
+ left: number;
228
+ bottom: number;
229
+ right: number;
230
+ top: number;
231
+ }
232
+ export interface TransformMatrix {
233
+ a: number;
234
+ b: number;
235
+ c: number;
236
+ d: number;
237
+ e: number;
238
+ f: number;
239
+ }
240
+ export interface ContentElement extends PdfPositionalItem {
241
+ bbox: BoundingBox;
242
+ tm: TransformMatrix;
243
+ }
244
+ export interface InputDocument {
245
+ sourceTag?: string | null;
246
+ }
247
+ export interface HttpOptions {
248
+ headers?: {
249
+ [key: string]: string;
250
+ };
251
+ mode?: 'cors' | 'no-cors' | 'same-origin';
252
+ cache?: 'default' | 'no-cache' | 'reload' | 'force-cache' | 'only-if-cached';
253
+ credentials?: 'include' | 'same-origin' | 'omit';
254
+ redirect?: 'manual' | 'follow' | 'error';
255
+ referrerPolicy?: 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
256
+ }
257
+ export interface InputUri extends InputDocument {
258
+ uri: string;
259
+ httpOptions?: HttpOptions;
260
+ }
261
+ export interface InputFile extends InputDocument {
262
+ data: Blob | File | Uint8Array;
263
+ }
264
+ export interface ViewOptions {
265
+ initialFitMode?: PdfFitMode;
266
+ initialPageLayoutMode?: PdfPageLayoutMode;
267
+ initialPageNumber?: number;
268
+ initialZoom?: number;
269
+ }
270
+ export interface RenderOptions {
271
+ formFieldHighlightColor?: string;
272
+ formFieldRequiredHighlightColor?: string;
273
+ }
274
+ export declare enum FileType {
275
+ Pdf = 0,
276
+ Fdf = 1
277
+ }
278
+ export type AnnotationFilterCallback = (annotation: Annotation) => boolean;
279
+ export interface SaveOptions {
280
+ fileType?: FileType;
281
+ annotationFilter?: AnnotationFilterCallback;
282
+ password?: string;
283
+ }
284
+ export type AnnotationPermissionCallback = (annotation: Annotation, author?: string) => boolean;
@@ -0,0 +1,6 @@
1
+ export var FileType;
2
+ (function (FileType) {
3
+ FileType[FileType["Pdf"] = 0] = "Pdf";
4
+ FileType[FileType["Fdf"] = 1] = "Fdf";
5
+ // Xfdf, uncomment, once we support saving xfdf files
6
+ })(FileType || (FileType = {}));
@@ -0,0 +1,76 @@
1
+ export interface CanvasPointerEvent {
2
+ clientX: number;
3
+ clientY: number;
4
+ movementX: number;
5
+ movementY: number;
6
+ buttons: number;
7
+ type: 'mouse' | 'touch';
8
+ }
9
+ export interface CanvasPointerPinchEvent extends CanvasPointerEvent {
10
+ distance: number;
11
+ movementDistance: number;
12
+ }
13
+ /** internal */
14
+ export interface CanvasEventsEventMap {
15
+ pointerdown: CanvasPointerEvent;
16
+ pointermove: CanvasPointerEvent;
17
+ pointerstartdrag: CanvasPointerEvent;
18
+ pointerenddrag: CanvasPointerEvent;
19
+ pointerup: CanvasPointerEvent;
20
+ pointerclick: CanvasPointerEvent;
21
+ pointerdblclick: CanvasPointerEvent;
22
+ pointerlongpress: CanvasPointerEvent;
23
+ pinch: CanvasPointerPinchEvent;
24
+ }
25
+ /** internal */
26
+ export type CanvasEventsEventListener = <K extends keyof CanvasEventsEventMap>(e: CanvasEventsEventMap[K]) => void;
27
+ /** internal */
28
+ export type CanvasEventsEventTypes = keyof CanvasEventsEventMap;
29
+ /** internal */
30
+ export declare class CanvasEvents {
31
+ private eventListeners;
32
+ private element;
33
+ private trackEvents;
34
+ private startPosX;
35
+ private startPosY;
36
+ private multiTouch;
37
+ private pinch;
38
+ private dragging;
39
+ private lastTouchPosX;
40
+ private lastTouchPosY;
41
+ private lastPinchDiv;
42
+ private lastPinchPosX;
43
+ private lastPinchPosY;
44
+ private lastTouchX1;
45
+ private lastTouchY1;
46
+ private lastTouchX2;
47
+ private lastTouchY2;
48
+ private clickTimer;
49
+ private readonly clickDuration;
50
+ private dblClickTimer;
51
+ private readonly dblClickDuration;
52
+ private longPressTimer;
53
+ private readonly longPressDuration;
54
+ constructor(element: HTMLElement);
55
+ addEventListener<K extends keyof CanvasEventsEventMap>(type: K, listener: (e: CanvasEventsEventMap[K]) => void): void;
56
+ removeEventListener<K extends keyof CanvasEventsEventMap>(type: K, listener: (e: CanvasEventsEventMap[K]) => void): void;
57
+ suspend(): void;
58
+ resume(): void;
59
+ private dispatchEvent;
60
+ private clearClickTimer;
61
+ private clearLongPressTimer;
62
+ private clearDblClickTimer;
63
+ private mouseToCanvasPointerEvent;
64
+ private touchToCanvasPointerEvent;
65
+ private getPinchPos;
66
+ private touchToCanvasPointerPinchEvent;
67
+ private onMouseDown;
68
+ private onTouchStart;
69
+ private onStart;
70
+ private onMouseMove;
71
+ private onTouchMove;
72
+ private onMove;
73
+ private onMouseUp;
74
+ private onTouchEnd;
75
+ private onEnd;
76
+ }