@vue-pdf-viewer/viewer 3.0.0-alpha.0 → 3.0.0-alpha.3

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 (206) hide show
  1. package/dist/{annotation-circle-tIpRci60.js → annotation-circle-COOiYsJg.js} +2 -2
  2. package/dist/{annotation-freetext-zmKZ4GuW.js → annotation-freetext-dvsFpAZu.js} +2 -2
  3. package/dist/{annotation-highlight-CBhenBLo.js → annotation-highlight-DfO5AU26.js} +2 -2
  4. package/dist/{annotation-ink-Cr5tjD8f.js → annotation-ink-Dq1T0COO.js} +2 -2
  5. package/dist/{annotation-line-CBubP1QZ.js → annotation-line-mbXXKVam.js} +2 -2
  6. package/dist/{annotation-link-DI9mj24Y.js → annotation-link-DHPTdWez.js} +2 -2
  7. package/dist/{annotation-signature-DQVfU7hJ.js → annotation-signature-4ci2KImE.js} +2 -2
  8. package/dist/{annotation-square-_rIuUCHT.js → annotation-square-SQ7oqcEq.js} +2 -2
  9. package/dist/{annotation-squiggly-DfLrUnSa.js → annotation-squiggly-B7fWFNAK.js} +2 -2
  10. package/dist/{annotation-stamp-B5gaCO0X.js → annotation-stamp-BkEskP5J.js} +2 -2
  11. package/dist/{annotation-strikeout-Cn_VHn_N.js → annotation-strikeout-C-bSOcHc.js} +2 -2
  12. package/dist/{annotation-text-pKHfDK_Q.js → annotation-text-BgsMjKeI.js} +2 -2
  13. package/dist/{annotation-underline-BDgmfJQk.js → annotation-underline-Be5qs13j.js} +2 -2
  14. package/dist/{arrow-up-DhoV0HvK.js → arrow-up-vWNs2knA.js} +2 -2
  15. package/dist/{check-BRo7Q5UG.js → check-BkaH7nrH.js} +2 -2
  16. package/dist/{chevron-down-BEs3P7KI.js → chevron-down-BSFTOkiu.js} +2 -2
  17. package/dist/{clear-DP391aEz.js → clear-CasZmBPr.js} +2 -2
  18. package/dist/{close-CnbAWKuA.js → close-BgsD04zx.js} +2 -2
  19. package/dist/{comment-panel-BkFw3FUB.js → comment-panel-B-sIKcBp.js} +2 -2
  20. package/dist/{download-C45QpUvK.js → download-DCHGUHXx.js} +2 -2
  21. package/dist/{drag-icon-CpENKa0y.js → drag-icon-D-z1P6O_.js} +2 -2
  22. package/dist/{drag-icon-dark-B0sqKXav.js → drag-icon-dark-DXDxQjnW.js} +2 -2
  23. package/dist/{ellipsis-vertical-X1VRRfZe.js → ellipsis-vertical-Cjbi7utY.js} +2 -2
  24. package/dist/{empty-comment-dark-DdPeDeR5.js → empty-comment-dark-CrZRt0Hl.js} +2 -2
  25. package/dist/{empty-comment-light-Dgc1r5xv.js → empty-comment-light-BVPUX2pA.js} +2 -2
  26. package/dist/{file-C2gjRcLU.js → file-BD05gONj.js} +2 -2
  27. package/dist/{first-page-32lvRrjG.js → first-page-DihCXIQm.js} +2 -2
  28. package/dist/{fullscreen-Cuegwls4.js → fullscreen-BmHQQPIs.js} +2 -2
  29. package/dist/{hand-BvbzlDGf.js → hand-B1v6mSWQ.js} +2 -2
  30. package/dist/index.js +9012 -8646
  31. package/dist/index.umd.cjs +18 -18
  32. package/dist/{info-2-wEcru0.js → info-DXpOTVKn.js} +2 -2
  33. package/dist/{last-page-DDJIJ2gp.js → last-page-DIN17z_8.js} +2 -2
  34. package/dist/{magnifier-shuB09Te.js → magnifier-Dep29X1B.js} +2 -2
  35. package/dist/{moon-Cf7pmsnw.js → moon-Dw-MII-V.js} +2 -2
  36. package/dist/{page-view-dual-f5-I0-4D.js → page-view-dual-DCLg-YkG.js} +2 -2
  37. package/dist/{page-view-single-DTduusoS.js → page-view-single-CWOhdavX.js} +2 -2
  38. package/dist/{pointer-CdvbhXLR.js → pointer-jfdFDx4z.js} +2 -2
  39. package/dist/{printer-ERNx1Q88.js → printer-B8qbXO9F.js} +2 -2
  40. package/dist/{rotate-counter-clockwise-CEN3P8nT.js → rotate-counter-clockwise-DFl9ijSR.js} +2 -2
  41. package/dist/{scrolling-horizontal-CdariRpO.js → scrolling-horizontal-JO2P2O-8.js} +2 -2
  42. package/dist/{scrolling-page-wFZlGv_K.js → scrolling-page-y5Rrmrnm.js} +2 -2
  43. package/dist/{scrolling-vertical-B1Doxmyt.js → scrolling-vertical-D9MCCss9.js} +2 -2
  44. package/dist/{scrolling-wrapped-BBipRQ-N.js → scrolling-wrapped-CYbEHLH6.js} +2 -2
  45. package/dist/{sun-C0fX-A5U.js → sun-BhyBd5LA.js} +2 -2
  46. package/dist/{thumbnail-HzftUNEp.js → thumbnail-BMmN_jSl.js} +2 -2
  47. package/dist/{trash-BTydaFkw.js → trash-Deie-RCt.js} +2 -2
  48. package/dist/{zoom-in-CPqqALGr.js → zoom-in-qogh-J7e.js} +2 -2
  49. package/dist/{zoom-out-BpilF8O_.js → zoom-out-BFzERV6_.js} +2 -2
  50. package/package.json +16 -11
  51. package/dist/types/assets/pdf-annotations/index.d.ts +0 -2
  52. package/dist/types/components/AppButton.vue.d.ts +0 -18
  53. package/dist/types/components/AppFormControl.vue.d.ts +0 -30
  54. package/dist/types/components/AppIcon.vue.d.ts +0 -15
  55. package/dist/types/components/AppInput.vue.d.ts +0 -12
  56. package/dist/types/components/AppLoader.vue.d.ts +0 -19
  57. package/dist/types/components/AppPopover.vue.d.ts +0 -93
  58. package/dist/types/components/AppTooltip.vue.d.ts +0 -34
  59. package/dist/types/components/DragFileMask.vue.d.ts +0 -55
  60. package/dist/types/components/HighlightColorButton.vue.d.ts +0 -15
  61. package/dist/types/components/HighlightColorPicker.vue.d.ts +0 -2
  62. package/dist/types/components/LayerAnnotation.vue.d.ts +0 -47
  63. package/dist/types/components/LayerAnnotationEditor.vue.d.ts +0 -26
  64. package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +0 -37
  65. package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +0 -26
  66. package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +0 -28
  67. package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +0 -28
  68. package/dist/types/components/LayerCanvas.vue.d.ts +0 -25
  69. package/dist/types/components/LayerText.vue.d.ts +0 -30
  70. package/dist/types/components/LayerTextHighlight.vue.d.ts +0 -20
  71. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +0 -19
  72. package/dist/types/components/LayerXFA.vue.d.ts +0 -23
  73. package/dist/types/components/ModalPassword.vue.d.ts +0 -19
  74. package/dist/types/components/ModalPdfProperties.vue.d.ts +0 -18
  75. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +0 -20
  76. package/dist/types/components/Signatures.vue.d.ts +0 -2
  77. package/dist/types/components/SwitchAppearance.vue.d.ts +0 -23
  78. package/dist/types/components/ToolCommentPanel.vue.d.ts +0 -31
  79. package/dist/types/components/ToolDownload.vue.d.ts +0 -21
  80. package/dist/types/components/ToolFullscreen.vue.d.ts +0 -22
  81. package/dist/types/components/ToolMenuOthers.vue.d.ts +0 -88
  82. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +0 -21
  83. package/dist/types/components/ToolOpenFile.vue.d.ts +0 -21
  84. package/dist/types/components/ToolOpenFileInput.vue.d.ts +0 -11
  85. package/dist/types/components/ToolPagination.vue.d.ts +0 -68
  86. package/dist/types/components/ToolPrint.vue.d.ts +0 -35
  87. package/dist/types/components/ToolSearch.vue.d.ts +0 -73
  88. package/dist/types/components/ToolThumbnail.vue.d.ts +0 -43
  89. package/dist/types/components/ToolZoom.vue.d.ts +0 -55
  90. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +0 -25
  91. package/dist/types/components/VPdfComments.vue.d.ts +0 -28
  92. package/dist/types/components/VPdfCommentsDate.vue.d.ts +0 -15
  93. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +0 -16
  94. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +0 -16
  95. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +0 -16
  96. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +0 -15
  97. package/dist/types/components/VPdfCommentsText.vue.d.ts +0 -2
  98. package/dist/types/components/VPdfPage.vue.d.ts +0 -44
  99. package/dist/types/components/VPdfSplitter.vue.d.ts +0 -2
  100. package/dist/types/components/VPdfThumbnail.vue.d.ts +0 -26
  101. package/dist/types/components/VPdfThumbnails.vue.d.ts +0 -22
  102. package/dist/types/components/VPdfViewer.vue.d.ts +0 -602
  103. package/dist/types/components/index.d.ts +0 -4
  104. package/dist/types/components/ui/button/Button.vue.d.ts +0 -52
  105. package/dist/types/components/ui/button/index.d.ts +0 -7
  106. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +0 -35
  107. package/dist/types/components/ui/checkbox/index.d.ts +0 -1
  108. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +0 -30
  109. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -28
  110. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -28
  111. package/dist/types/components/ui/collapsible/index.d.ts +0 -3
  112. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +0 -28
  113. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +0 -28
  114. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +0 -35
  115. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +0 -35
  116. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +0 -34
  117. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +0 -34
  118. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +0 -35
  119. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +0 -28
  120. package/dist/types/components/ui/dialog/index.d.ts +0 -8
  121. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -28
  122. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -35
  123. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -52
  124. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -28
  125. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -41
  126. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -38
  127. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -28
  128. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -38
  129. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -17
  130. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -34
  131. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -28
  132. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -35
  133. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -35
  134. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -28
  135. package/dist/types/components/ui/dropdown-menu/index.d.ts +0 -15
  136. package/dist/types/components/ui/input/Input.vue.d.ts +0 -16
  137. package/dist/types/components/ui/input/index.d.ts +0 -7
  138. package/dist/types/components/ui/popover/Popover.vue.d.ts +0 -28
  139. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +0 -64
  140. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +0 -28
  141. package/dist/types/components/ui/popover/index.d.ts +0 -3
  142. package/dist/types/components/ui/progress/Progress.vue.d.ts +0 -28
  143. package/dist/types/components/ui/progress/index.d.ts +0 -1
  144. package/dist/types/components/ui/toast/Toast.vue.d.ts +0 -28
  145. package/dist/types/components/ui/toast/ToastAction.vue.d.ts +0 -35
  146. package/dist/types/components/ui/toast/ToastClose.vue.d.ts +0 -17
  147. package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +0 -35
  148. package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +0 -28
  149. package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +0 -35
  150. package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +0 -17
  151. package/dist/types/components/ui/toast/Toaster.vue.d.ts +0 -2
  152. package/dist/types/components/ui/toast/index.d.ts +0 -21
  153. package/dist/types/components/ui/toast/use-toast.d.ts +0 -272
  154. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +0 -28
  155. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +0 -52
  156. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -28
  157. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -28
  158. package/dist/types/components/ui/tooltip/index.d.ts +0 -4
  159. package/dist/types/components/utils/annotations.d.ts +0 -5
  160. package/dist/types/components/utils/destination.d.ts +0 -7
  161. package/dist/types/components/utils/helpers.d.ts +0 -2
  162. package/dist/types/components/utils/link_service.d.ts +0 -71
  163. package/dist/types/components/utils/sanitizeExternalURL.d.ts +0 -1
  164. package/dist/types/composables/useAnnotationDrag.d.ts +0 -72
  165. package/dist/types/composables/useAnnotationHighlight.d.ts +0 -389
  166. package/dist/types/composables/useAnnotationStamp.d.ts +0 -493
  167. package/dist/types/composables/useAnnotationStorage.d.ts +0 -72
  168. package/dist/types/composables/useDownload.d.ts +0 -13
  169. package/dist/types/composables/useHighlight.d.ts +0 -11
  170. package/dist/types/composables/useLicense.d.ts +0 -22
  171. package/dist/types/composables/usePdf.d.ts +0 -28
  172. package/dist/types/composables/usePdfComments.d.ts +0 -5
  173. package/dist/types/composables/usePdfPagesSizes.d.ts +0 -8
  174. package/dist/types/composables/usePdfProperties.d.ts +0 -10
  175. package/dist/types/composables/usePinch.d.ts +0 -3
  176. package/dist/types/composables/usePlugins.d.ts +0 -252
  177. package/dist/types/composables/usePrintControl.d.ts +0 -22
  178. package/dist/types/composables/usePrintProcess.d.ts +0 -8
  179. package/dist/types/composables/useRenderQueue.d.ts +0 -13
  180. package/dist/types/composables/useRequestAnimationFrame.d.ts +0 -1
  181. package/dist/types/composables/useRotation.d.ts +0 -7
  182. package/dist/types/composables/useScale.d.ts +0 -21
  183. package/dist/types/composables/useSearch.d.ts +0 -5
  184. package/dist/types/composables/useTextLayers.d.ts +0 -5
  185. package/dist/types/composables/useVirtualPages.d.ts +0 -32
  186. package/dist/types/composables/useVisibilities.d.ts +0 -9
  187. package/dist/types/const.d.ts +0 -130
  188. package/dist/types/index.d.ts +0 -8
  189. package/dist/types/utils/annotation-command.d.ts +0 -18
  190. package/dist/types/utils/annotation-display.d.ts +0 -24
  191. package/dist/types/utils/annotation-highlight.d.ts +0 -69
  192. package/dist/types/utils/annotation-image.d.ts +0 -111
  193. package/dist/types/utils/annotation-pdf.d.ts +0 -35
  194. package/dist/types/utils/appConsole.d.ts +0 -24
  195. package/dist/types/utils/characters.d.ts +0 -16
  196. package/dist/types/utils/color.d.ts +0 -4
  197. package/dist/types/utils/convertPDFDate.d.ts +0 -1
  198. package/dist/types/utils/enumerators.d.ts +0 -80
  199. package/dist/types/utils/highlight.d.ts +0 -8
  200. package/dist/types/utils/promiseWithResolvers.d.ts +0 -7
  201. package/dist/types/utils/searchHighlight.d.ts +0 -10
  202. package/dist/types/utils/smoothScroll.d.ts +0 -2
  203. package/dist/types/utils/types.d.ts +0 -715
  204. package/dist/types/utils/uiViewer.d.ts +0 -4
  205. package/dist/types/utils/validators.d.ts +0 -26
  206. package/dist/types/utils.d.ts +0 -20
@@ -1,10 +0,0 @@
1
- import type { PDFDocumentProxy } from 'pdfjs-dist';
2
- import { Ref, ShallowRef } from 'vue';
3
- import type { PdfProperties, PDFSrc } from '@/utils/types';
4
- type CMapSource = {
5
- url: string;
6
- cMapPacked: boolean;
7
- cMapUrl: string;
8
- };
9
- declare const usePdfProperties: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, source: Ref<PDFSrc | CMapSource>, filename: Ref<string | undefined>) => Ref<PdfProperties | undefined, PdfProperties | undefined>;
10
- export default usePdfProperties;
@@ -1,3 +0,0 @@
1
- import { Ref } from 'vue';
2
- declare const usePinch: (container: Ref<HTMLDivElement | undefined>, currentScale: Ref<number | undefined>) => void;
3
- export default usePinch;
@@ -1,252 +0,0 @@
1
- import { ComputedRef } from 'vue';
2
- import type { Reactive } from 'vue';
3
- import type { Localization, PluginItem, Plugin } from '@vue-pdf-viewer/shared';
4
- declare const usePlugins: (plugins?: Reactive<Plugin[]>, viewerLocalization?: ComputedRef<Localization>) => {
5
- currentInstance: import("vue").ComponentInternalInstance | null;
6
- sidebarItems: import("vue").Ref<{
7
- id: string;
8
- component: {
9
- new (...args: any[]): any;
10
- __isFragment?: undefined;
11
- __isTeleport?: undefined;
12
- __isSuspense?: undefined;
13
- } | import("vue").FunctionalComponent<any, {}, any, {}> | {
14
- [x: string]: any;
15
- setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
16
- attrs: {
17
- [x: string]: unknown;
18
- };
19
- slots: Readonly<{
20
- [name: string]: import("vue").Slot<any> | undefined;
21
- }>;
22
- emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
23
- expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed | undefined) => void;
24
- }) => any) | undefined;
25
- name?: string | undefined;
26
- template?: string | object | undefined;
27
- render?: Function | undefined;
28
- components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>> | undefined;
29
- directives?: Record<string, import("vue").Directive<any, any, string, string>> | undefined;
30
- inheritAttrs?: boolean | undefined;
31
- emits?: any;
32
- slots?: {} | undefined;
33
- expose?: string[] | undefined;
34
- serverPrefetch?: (() => void | Promise<any>) | undefined;
35
- compilerOptions?: {
36
- isCustomElement?: ((tag: string) => boolean) | undefined;
37
- whitespace?: "preserve" | "condense" | undefined;
38
- comments?: boolean | undefined;
39
- delimiters?: [string, string] | undefined;
40
- } | undefined;
41
- call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
42
- __isFragment?: undefined;
43
- __isTeleport?: undefined;
44
- __isSuspense?: undefined;
45
- __defaults?: {} | undefined;
46
- compatConfig?: {
47
- GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
48
- GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
49
- GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
50
- GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
51
- GLOBAL_SET?: boolean | "suppress-warning" | undefined;
52
- GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
53
- GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
54
- GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
55
- CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
56
- CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
57
- CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
58
- CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
59
- CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
60
- CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
61
- CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
62
- INSTANCE_SET?: boolean | "suppress-warning" | undefined;
63
- INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
64
- INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
65
- INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
66
- INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
67
- INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
68
- INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
69
- INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
70
- INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
71
- OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
72
- OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
73
- OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
74
- OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
75
- WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
76
- PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
77
- V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
78
- CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
79
- ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
80
- ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
81
- TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
82
- TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
83
- COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
84
- COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
85
- COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
86
- RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
87
- FILTERS?: boolean | "suppress-warning" | undefined;
88
- PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
89
- MODE?: 3 | 2 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any> | null) => 3 | 2) | undefined;
90
- } | undefined;
91
- data?: ((this: any, vm: any) => any) | undefined;
92
- computed?: import("vue").ComputedOptions | undefined;
93
- methods?: import("vue").MethodOptions | undefined;
94
- watch?: {
95
- [x: string]: (string | import("vue").WatchCallback<any, any> | ({
96
- handler: string | import("vue").WatchCallback<any, any>;
97
- } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
98
- handler: string | import("vue").WatchCallback<any, any>;
99
- } & import("vue").WatchOptions<boolean>))[];
100
- } | undefined;
101
- provide?: import("vue").ComponentProvideOptions | undefined;
102
- inject?: {} | string[] | undefined;
103
- filters?: Record<string, Function> | undefined;
104
- mixins?: any[] | undefined;
105
- extends?: any;
106
- beforeCreate?: (() => any) | undefined;
107
- created?: (() => any) | undefined;
108
- beforeMount?: (() => any) | undefined;
109
- mounted?: (() => any) | undefined;
110
- beforeUpdate?: (() => any) | undefined;
111
- updated?: (() => any) | undefined;
112
- activated?: (() => any) | undefined;
113
- deactivated?: (() => any) | undefined;
114
- beforeDestroy?: (() => any) | undefined;
115
- beforeUnmount?: (() => any) | undefined;
116
- destroyed?: (() => any) | undefined;
117
- unmounted?: (() => any) | undefined;
118
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
119
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
120
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | undefined;
121
- delimiters?: [string, string] | undefined;
122
- __differentiator?: string | number | symbol | undefined;
123
- __isBuiltIn?: boolean | undefined;
124
- __file?: string | undefined;
125
- __name?: string | undefined;
126
- };
127
- toolbarDirection: import("@vue-pdf-viewer/shared").ToolbarDirection;
128
- }[], PluginItem[] | {
129
- id: string;
130
- component: {
131
- new (...args: any[]): any;
132
- __isFragment?: undefined;
133
- __isTeleport?: undefined;
134
- __isSuspense?: undefined;
135
- } | import("vue").FunctionalComponent<any, {}, any, {}> | {
136
- [x: string]: any;
137
- setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
138
- attrs: {
139
- [x: string]: unknown;
140
- };
141
- slots: Readonly<{
142
- [name: string]: import("vue").Slot<any> | undefined;
143
- }>;
144
- emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
145
- expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed | undefined) => void;
146
- }) => any) | undefined;
147
- name?: string | undefined;
148
- template?: string | object | undefined;
149
- render?: Function | undefined;
150
- components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>> | undefined;
151
- directives?: Record<string, import("vue").Directive<any, any, string, string>> | undefined;
152
- inheritAttrs?: boolean | undefined;
153
- emits?: any;
154
- slots?: {} | undefined;
155
- expose?: string[] | undefined;
156
- serverPrefetch?: (() => void | Promise<any>) | undefined;
157
- compilerOptions?: {
158
- isCustomElement?: ((tag: string) => boolean) | undefined;
159
- whitespace?: "preserve" | "condense" | undefined;
160
- comments?: boolean | undefined;
161
- delimiters?: [string, string] | undefined;
162
- } | undefined;
163
- call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
164
- __isFragment?: undefined;
165
- __isTeleport?: undefined;
166
- __isSuspense?: undefined;
167
- __defaults?: {} | undefined;
168
- compatConfig?: {
169
- GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
170
- GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
171
- GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
172
- GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
173
- GLOBAL_SET?: boolean | "suppress-warning" | undefined;
174
- GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
175
- GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
176
- GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
177
- CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
178
- CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
179
- CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
180
- CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
181
- CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
182
- CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
183
- CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
184
- INSTANCE_SET?: boolean | "suppress-warning" | undefined;
185
- INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
186
- INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
187
- INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
188
- INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
189
- INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
190
- INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
191
- INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
192
- INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
193
- OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
194
- OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
195
- OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
196
- OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
197
- WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
198
- PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
199
- V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
200
- CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
201
- ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
202
- ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
203
- TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
204
- TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
205
- COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
206
- COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
207
- COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
208
- RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
209
- FILTERS?: boolean | "suppress-warning" | undefined;
210
- PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
211
- MODE?: 3 | 2 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any> | null) => 3 | 2) | undefined;
212
- } | undefined;
213
- data?: ((this: any, vm: any) => any) | undefined;
214
- computed?: import("vue").ComputedOptions | undefined;
215
- methods?: import("vue").MethodOptions | undefined;
216
- watch?: {
217
- [x: string]: (string | import("vue").WatchCallback<any, any> | ({
218
- handler: string | import("vue").WatchCallback<any, any>;
219
- } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
220
- handler: string | import("vue").WatchCallback<any, any>;
221
- } & import("vue").WatchOptions<boolean>))[];
222
- } | undefined;
223
- provide?: import("vue").ComponentProvideOptions | undefined;
224
- inject?: {} | string[] | undefined;
225
- filters?: Record<string, Function> | undefined;
226
- mixins?: any[] | undefined;
227
- extends?: any;
228
- beforeCreate?: (() => any) | undefined;
229
- created?: (() => any) | undefined;
230
- beforeMount?: (() => any) | undefined;
231
- mounted?: (() => any) | undefined;
232
- beforeUpdate?: (() => any) | undefined;
233
- updated?: (() => any) | undefined;
234
- activated?: (() => any) | undefined;
235
- deactivated?: (() => any) | undefined;
236
- beforeDestroy?: (() => any) | undefined;
237
- beforeUnmount?: (() => any) | undefined;
238
- destroyed?: (() => any) | undefined;
239
- unmounted?: (() => any) | undefined;
240
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
241
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
242
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | undefined;
243
- delimiters?: [string, string] | undefined;
244
- __differentiator?: string | number | symbol | undefined;
245
- __isBuiltIn?: boolean | undefined;
246
- __file?: string | undefined;
247
- __name?: string | undefined;
248
- };
249
- toolbarDirection: import("@vue-pdf-viewer/shared").ToolbarDirection;
250
- }[]>;
251
- };
252
- export default usePlugins;
@@ -1,22 +0,0 @@
1
- import { type Ref } from 'vue';
2
- import type { CanvasLoadedCallback, PreparePrintProgress, ViewerPdfPage } from '@/utils/types';
3
- import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
4
- declare const usePrintControl: (pdfDocument: Ref<PDFDocumentProxy | undefined>, pages: Ref<ViewerPdfPage[]>, afterCanvasLoaded?: Ref<Record<number, CanvasLoadedCallback> | undefined>) => {
5
- print: (showProgress?: boolean) => Promise<void>;
6
- printControl: {
7
- print: (options?: {
8
- visibleDefaultProgress: boolean;
9
- } | undefined) => void;
10
- cancel: () => void;
11
- onProgress?: ((progress: PreparePrintProgress) => void) | undefined;
12
- onError?: ((error: Error) => void) | undefined;
13
- onComplete?: (() => void) | undefined;
14
- };
15
- visiblePrintProcess: Ref<boolean, boolean>;
16
- cancelPrint: Ref<boolean, boolean>;
17
- onPrintCancel: () => void;
18
- onPrintLoading: () => void;
19
- changePercent: (value: number) => void;
20
- printProgressPercentage: Ref<number, number>;
21
- };
22
- export default usePrintControl;
@@ -1,8 +0,0 @@
1
- export declare const usePrintProcess: () => {
2
- isCancel: import("vue").Ref<boolean, boolean>;
3
- percent: import("vue").Ref<number, number>;
4
- showPrintProcess: import("vue").Ref<boolean, boolean>;
5
- onCancel: () => void;
6
- onLoading: () => void;
7
- changePercent: (value: number) => void;
8
- };
@@ -1,13 +0,0 @@
1
- import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
2
- import { MaybeRef } from 'vue';
3
- export interface UseRenderQueueReturn {
4
- getHighestPriorityPage: () => number;
5
- isInRange: (pageIndex: number) => boolean;
6
- markNotRendered: () => void;
7
- markRendered: (pageIndex: number) => void;
8
- markRendering: (pageIndex: number) => void;
9
- setOutOfRange: (pageIndex: number) => void;
10
- setRange: (startIndex: number, endIndex: number) => void;
11
- setVisibility: (pageIndex: number, visibility: number) => void;
12
- }
13
- export declare const useRenderQueue: (doc: MaybeRef<PDFDocumentProxy | undefined>) => UseRenderQueueReturn;
@@ -1 +0,0 @@
1
- export declare const useRequestAnimationFrame: <T extends unknown[]>(callback: (...args: T) => void, recurring?: boolean) => (...args: T) => void;
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { RotateEvent } from '..';
3
- declare const useRotation: (currentRotation: Ref<number>, rotateCallback?: ((event: RotateEvent) => void) | undefined) => {
4
- onRotateClockwise: () => void;
5
- onRotateCounterclockwise: () => void;
6
- };
7
- export default useRotation;
@@ -1,21 +0,0 @@
1
- import { MaybeRef, Ref, ShallowRef, UnwrapRef } from 'vue';
2
- import type { UseScaleCallback, ViewerPdfPage } from '@/utils/types';
3
- import { ViewMode, ZoomLevel } from '@/utils/enumerators';
4
- import type { PDFDocumentProxy } from 'pdfjs-dist';
5
- interface UseScaleProps {
6
- pdfDocument: ShallowRef<PDFDocumentProxy | undefined>;
7
- pagesContainerRef: ShallowRef<HTMLDivElement | undefined>;
8
- viewMode: Ref<ViewMode>;
9
- initialScale: MaybeRef<number | ZoomLevel>;
10
- focusedPage: MaybeRef<ViewerPdfPage | undefined>;
11
- leftToolbar?: Ref<boolean>;
12
- }
13
- declare const useScale: (props: UnwrapRef<UseScaleProps>, scaleCallback?: ((event: UseScaleCallback) => void) | undefined) => {
14
- currentScale: Ref<number, number>;
15
- zoom: (scale: number | ZoomLevel) => void;
16
- zoomControl: {
17
- scale: number;
18
- zoom: (scale: number | ZoomLevel) => void;
19
- };
20
- };
21
- export default useScale;
@@ -1,5 +0,0 @@
1
- import { ShallowRef } from 'vue';
2
- import type { PDFDocumentProxy } from 'pdfjs-dist';
3
- import type { SearchControlValue, HighlightOptions } from '@/utils/types';
4
- declare const useSearch: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, initialSearch?: string, options?: ShallowRef<HighlightOptions>) => SearchControlValue;
5
- export default useSearch;
@@ -1,5 +0,0 @@
1
- export declare const useTextLayers: () => {
2
- addTextLayer: (textLayer: HTMLElement) => void;
3
- removeTextLayer: (textLayer: HTMLElement) => void;
4
- getTextLayers: () => import("vue").Reactive<Set<HTMLElement>>;
5
- };
@@ -1,32 +0,0 @@
1
- import { ComputedRef, CSSProperties, Ref, StyleValue, UnwrapRef } from 'vue';
2
- import type { ViewerPdfPage, VirtualRange, ElementRect } from '@/utils/types';
3
- import { ScrollMode, ViewMode } from '@/utils/enumerators';
4
- interface UseVirtualListItem<T> {
5
- data: T;
6
- index: number;
7
- }
8
- export interface UseVirtualListReturn {
9
- list: Ref<UseVirtualListItem<ViewerPdfPage>[]>;
10
- scrollTo: (index: number, rect?: ElementRect) => void;
11
- pageGroups: ComputedRef<Array<UseVirtualListItem<ViewerPdfPage>[]> | undefined>;
12
- containerProps: {
13
- ref: Ref<HTMLElement | null>;
14
- onScroll: () => void;
15
- style: StyleValue;
16
- };
17
- wrapperProps: ComputedRef<{
18
- style: CSSProperties;
19
- }>;
20
- range: Ref<VirtualRange>;
21
- pagesPerRow: Ref<number>;
22
- }
23
- interface UseVirtualPagesProps {
24
- pages: Ref<ViewerPdfPage[]>;
25
- viewerRef: Ref<HTMLElement | undefined>;
26
- scrollMode: Ref<ScrollMode>;
27
- viewMode: Ref<ViewMode>;
28
- isRtl: boolean;
29
- smoothScroll: Ref<boolean>;
30
- }
31
- declare function useVirtualPages(props: UnwrapRef<UseVirtualPagesProps>): UseVirtualListReturn;
32
- export default useVirtualPages;
@@ -1,9 +0,0 @@
1
- import { type Ref } from 'vue';
2
- import { VirtualRange, VisibilityInfo } from '@/utils/types';
3
- declare function useVisibilities(totalPages: Ref<number>): {
4
- resetVisibility: (preserveRange?: VirtualRange) => void;
5
- updateVisibility: (info: VisibilityInfo) => void;
6
- currentPage: Ref<number, number>;
7
- calculateCurrentPage: (range?: VirtualRange) => number;
8
- };
9
- export default useVisibilities;
@@ -1,130 +0,0 @@
1
- import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
2
- import type { PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
3
- import { type InjectionKey, type Slot, type Ref, type ComponentPublicInstance, type ShallowRef, type Reactive, type ComputedRef } from 'vue';
4
- import type { HighlightMatchPosition, HighlightOptions, NormalizedKeyword, Offset, PdfProperties, ToolbarOptions, ViewerPdfPage, ViewerState, Comment } from './utils/types';
5
- import { AnnotationType, LicenseProduct } from './utils/enumerators';
6
- import { LicenseType, ScrollMode, ViewMode, ZoomLevel } from './components';
7
- import { AnnotationHighlightColors } from '@vue-pdf-viewer/shared';
8
- import { AnnotationImageManager } from './utils/annotation-image';
9
- export declare const CSS_CLASSES: {
10
- SELECTING: string;
11
- END_OF_CONTENT: string;
12
- };
13
- export declare const DEFAULT_TOOLBAR_OPTIONS: ToolbarOptions;
14
- export declare const DEFAULT_PROPS: {
15
- workerUrl: undefined;
16
- initialPage: number;
17
- initialScale: ZoomLevel;
18
- initialScrollMode: ScrollMode;
19
- initialViewMode: ViewMode;
20
- initialRotation: number;
21
- initialThumbnailsVisible: boolean;
22
- initialSearch: undefined;
23
- textLayer: boolean;
24
- characterMap: undefined;
25
- toolbarOptions: ToolbarOptions;
26
- localization: Record<string, import("@vue-pdf-viewer/shared").Localization>;
27
- afterCanvasLoaded: undefined;
28
- };
29
- export declare const DEFAULT_OFFSET: Offset;
30
- export declare const PERCENTAGE = 100;
31
- export declare const MIN_ZOOM_SCALE = 0.25;
32
- export declare const MAX_ZOOM_SCALE = 10;
33
- export declare const SCROLL_BAR_WIDTH = 20;
34
- export declare const PAGE_PADDING = 1;
35
- export declare const PAGE_OFFSET = 0;
36
- export declare const LAST_PAGE_OFFSET = 4;
37
- export declare const SEARCH_MAX_HEIGHT = 97;
38
- export declare const FILE_INPUT: InjectionKey<Ref<ComponentPublicInstance<import("vue").DefineComponent<{}, {
39
- triggerClick: () => void;
40
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
- change: (file: string) => void;
42
- } & {
43
- filenameChange: (file: string) => void;
44
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
45
- onChange?: ((file: string) => any) | undefined;
46
- onFilenameChange?: ((file: string) => any) | undefined;
47
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | undefined, ComponentPublicInstance<import("vue").DefineComponent<{}, {
48
- triggerClick: () => void;
49
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
- change: (file: string) => void;
51
- } & {
52
- filenameChange: (file: string) => void;
53
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
54
- onChange?: ((file: string) => any) | undefined;
55
- onFilenameChange?: ((file: string) => any) | undefined;
56
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | undefined>>;
57
- export declare const EMPTY_KEYWORD_REGEXP: NormalizedKeyword;
58
- export declare const CURRENT_MATCH_CSS_CLASS = "vpv-highlight__text-current";
59
- export declare const LATEST_MATCH_POSITION: InjectionKey<Ref<HighlightMatchPosition | undefined, HighlightMatchPosition | undefined>>;
60
- export declare const GET_PAGE: InjectionKey<(doc: PDFDocumentProxy, pageIndex: number) => Promise<PDFPageProxy>>;
61
- export declare const RESTRICTED_CUSTOM: InjectionKey<Ref<boolean, boolean>>;
62
- export declare const VIEWER_STATE: InjectionKey<{
63
- pdfDocument: PDFDocumentProxy | undefined;
64
- pagesContainerRef: HTMLElement | undefined;
65
- pageIndex: number;
66
- viewMode: ViewMode;
67
- scrollMode: ScrollMode;
68
- scale: number;
69
- rotation: number;
70
- isEditing: boolean;
71
- updateViewerState: (state: Partial<ViewerState>) => void;
72
- }>;
73
- export declare const VIEWER_PAGES_PER_ROW: InjectionKey<Ref<number, number>>;
74
- export declare const TOOLBAR_OPTIONS: InjectionKey<Ref<ToolbarOptions | undefined, ToolbarOptions | undefined>>;
75
- export declare const TOTAL_TOOL_OTHERS_MENU: InjectionKey<Ref<number, number>>;
76
- export declare const IS_DARK: InjectionKey<Ref<boolean, boolean>>;
77
- export declare const IS_MOBILE_VIEW: InjectionKey<Ref<boolean, boolean>>;
78
- export declare const CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | undefined, HTMLDivElement | undefined>>;
79
- export declare const PAGES_CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | undefined, HTMLDivElement | undefined>>;
80
- export declare const ACTUAL_PDF_PAGES: InjectionKey<ShallowRef<ViewerPdfPage[], ViewerPdfPage[]>>;
81
- export declare const FOCUSED_PAGE_NUMBER: InjectionKey<Ref<number, number>>;
82
- export declare const ROTATION_DEGREE: InjectionKey<Ref<number, number>>;
83
- export declare const TOTAL_PAGE: InjectionKey<Ref<number, number>>;
84
- export declare const INITIAL_TEXT_LAYER: InjectionKey<boolean>;
85
- export declare const DOWNLOAD_FILE: InjectionKey<() => Promise<void>>;
86
- export declare const LICENSE: InjectionKey<{
87
- invalidatedMessage?: string | undefined;
88
- isValidating: boolean;
89
- isValidated: boolean;
90
- isValidKey: boolean;
91
- type: LicenseType;
92
- product: LicenseProduct;
93
- }>;
94
- export declare const LICENSE_KEY: InjectionKey<ComputedRef<string | null | undefined>>;
95
- export declare const HIGHLIGHT_OPTIONS: InjectionKey<ShallowRef<HighlightOptions, HighlightOptions>>;
96
- export declare const PDF_PROPERTIES: InjectionKey<Ref<PdfProperties | undefined, PdfProperties | undefined>>;
97
- export declare const SLOT_LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
98
- export declare const SLOT_ICON_OPEN_FILE: InjectionKey<Slot<any> | undefined>;
99
- export declare const SLOT_ICON_DOWNLOAD: InjectionKey<Slot<any> | undefined>;
100
- export declare const SLOT_ICON_PRINT: InjectionKey<Slot<any> | undefined>;
101
- export declare const SLOT_ICON_FULLSCREEN: InjectionKey<Slot<any> | undefined>;
102
- export declare const SYMBOL_ANNOTATION_KEYS: {
103
- ANNOTATION_IMAGE_MANAGER: InjectionKey<AnnotationImageManager>;
104
- ENABLE_ANNOTATION_EDITOR: InjectionKey<Ref<boolean, boolean>>;
105
- ACTIVE_ANNOTATION: InjectionKey<Ref<AnnotationType | null, AnnotationType | null>>;
106
- HIGHLIGHT_COLOR: InjectionKey<Ref<string | null, string | null>>;
107
- HIGHLIGHT_COLORS: InjectionKey<Ref<AnnotationHighlightColors, AnnotationHighlightColors>>;
108
- ENABLE_ANNOTATION_IMAGE_EDITOR: InjectionKey<Ref<boolean, boolean>>;
109
- };
110
- export declare const FUNC_GO_TO_PAGE: InjectionKey<(page: number) => void>;
111
- export declare const LICENSE_DEFAULT: {
112
- isValidated: boolean;
113
- isValidating: boolean;
114
- isValidKey: boolean;
115
- licenseKey: null;
116
- type: LicenseType;
117
- product: LicenseProduct;
118
- };
119
- export declare const PDF_COMMENTS: InjectionKey<{
120
- comments: Map<number, Comment[]>;
121
- repliedCommentPages: import("./components").PdfCommentPage[];
122
- }>;
123
- export declare const ANNOTATION_CANVAS_MAP: InjectionKey<Reactive<Map<string, HTMLCanvasElement>>>;
124
- export declare const DEFAULT_VIEWER_STATE: Reactive<ViewerState>;
125
- export declare const SUPPORTED_IMAGE_MIME_TYPES: readonly ["image/apng", "image/avif", "image/bmp", "image/gif", "image/jpeg", "image/png", "image/svg+xml", "image/webp", "image/x-icon"];
126
- export declare const PIXELS_PER_INCH: {
127
- CSS: number;
128
- PDF: number;
129
- PDF_TO_CSS_UNITS: number;
130
- };
@@ -1,8 +0,0 @@
1
- import type { Plugin } from 'vue';
2
- import { Locales } from '@vue-pdf-viewer/shared';
3
- export declare const VPdfViewerPlugin: Plugin;
4
- export { Locales };
5
- export * from './components';
6
- export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult } from './utils/types';
7
- export type { Localization } from '@vue-pdf-viewer/shared';
8
- export default VPdfViewerPlugin;
@@ -1,18 +0,0 @@
1
- /**
2
- * Command Manager for Undo/Redo functionality
3
- */
4
- export declare class CommandManager {
5
- #private;
6
- constructor(maxSize?: number);
7
- add({ cmd, undo, post, mustExec }: {
8
- cmd: () => void;
9
- undo: () => void;
10
- post?: () => void;
11
- mustExec?: boolean;
12
- }): void;
13
- undo(): void;
14
- redo(): void;
15
- hasSomethingToUndo(): boolean;
16
- hasSomethingToRedo(): boolean;
17
- clear(): void;
18
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Scale factors for the canvas, necessary with HiDPI displays.
3
- */
4
- export declare class OutputScale {
5
- sx: number;
6
- sy: number;
7
- constructor();
8
- /**
9
- * @type {boolean} Returns `true` when scaling is required, `false` otherwise.
10
- */
11
- get scaled(): boolean;
12
- /**
13
- * @type {boolean} Returns `true` when scaling is symmetric,
14
- * `false` otherwise.
15
- */
16
- get symmetric(): boolean;
17
- /**
18
- * @returns {boolean} Returns `true` if scaling was limited,
19
- * `false` otherwise.
20
- */
21
- limitCanvas(width: number, height: number, maxPixels: number, maxDim: number, capAreaFactor?: number): boolean;
22
- static get pixelRatio(): number;
23
- static capPixels(maxPixels: number, capAreaFactor: number): number;
24
- }