@vue-pdf-viewer/viewer 3.0.0-alpha.4 → 3.0.0-alpha.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 (180) hide show
  1. package/dist/index.js +3948 -3924
  2. package/dist/index.umd.cjs +11 -11
  3. package/dist/types/assets/pdf-annotations/index.d.ts +2 -0
  4. package/dist/types/components/AppButton.vue.d.ts +18 -0
  5. package/dist/types/components/AppFormControl.vue.d.ts +30 -0
  6. package/dist/types/components/AppIcon.vue.d.ts +15 -0
  7. package/dist/types/components/AppInput.vue.d.ts +12 -0
  8. package/dist/types/components/AppLoader.vue.d.ts +19 -0
  9. package/dist/types/components/AppPopover.vue.d.ts +93 -0
  10. package/dist/types/components/AppTooltip.vue.d.ts +34 -0
  11. package/dist/types/components/ColorButton.vue.d.ts +15 -0
  12. package/dist/types/components/DragFileMask.vue.d.ts +55 -0
  13. package/dist/types/components/FreeTextPanel.vue.d.ts +16 -0
  14. package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +2 -0
  15. package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +2 -0
  16. package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +2 -0
  17. package/dist/types/components/FreeTextPanelTextStyle.vue.d.ts +2 -0
  18. package/dist/types/components/HighlightColorPicker.vue.d.ts +2 -0
  19. package/dist/types/components/LayerAnnotation.vue.d.ts +47 -0
  20. package/dist/types/components/LayerAnnotationEditor.vue.d.ts +26 -0
  21. package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +34 -0
  22. package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +20 -0
  23. package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +37 -0
  24. package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +26 -0
  25. package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +28 -0
  26. package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +28 -0
  27. package/dist/types/components/LayerCanvas.vue.d.ts +25 -0
  28. package/dist/types/components/LayerText.vue.d.ts +30 -0
  29. package/dist/types/components/LayerTextHighlight.vue.d.ts +20 -0
  30. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +19 -0
  31. package/dist/types/components/LayerXFA.vue.d.ts +23 -0
  32. package/dist/types/components/ModalPassword.vue.d.ts +19 -0
  33. package/dist/types/components/ModalPdfProperties.vue.d.ts +18 -0
  34. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +20 -0
  35. package/dist/types/components/Signatures.vue.d.ts +2 -0
  36. package/dist/types/components/SwitchAppearance.vue.d.ts +23 -0
  37. package/dist/types/components/ToolCommentPanel.vue.d.ts +31 -0
  38. package/dist/types/components/ToolDownload.vue.d.ts +21 -0
  39. package/dist/types/components/ToolFullscreen.vue.d.ts +22 -0
  40. package/dist/types/components/ToolMenuOthers.vue.d.ts +88 -0
  41. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +21 -0
  42. package/dist/types/components/ToolOpenFile.vue.d.ts +21 -0
  43. package/dist/types/components/ToolOpenFileInput.vue.d.ts +11 -0
  44. package/dist/types/components/ToolPagination.vue.d.ts +68 -0
  45. package/dist/types/components/ToolPrint.vue.d.ts +35 -0
  46. package/dist/types/components/ToolSearch.vue.d.ts +73 -0
  47. package/dist/types/components/ToolThumbnail.vue.d.ts +43 -0
  48. package/dist/types/components/ToolZoom.vue.d.ts +55 -0
  49. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +25 -0
  50. package/dist/types/components/VPdfComments.vue.d.ts +28 -0
  51. package/dist/types/components/VPdfCommentsDate.vue.d.ts +15 -0
  52. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +16 -0
  53. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +16 -0
  54. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +16 -0
  55. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +15 -0
  56. package/dist/types/components/VPdfCommentsText.vue.d.ts +2 -0
  57. package/dist/types/components/VPdfPage.vue.d.ts +44 -0
  58. package/dist/types/components/VPdfSplitter.vue.d.ts +2 -0
  59. package/dist/types/components/VPdfThumbnail.vue.d.ts +26 -0
  60. package/dist/types/components/VPdfThumbnails.vue.d.ts +22 -0
  61. package/dist/types/components/VPdfViewer.vue.d.ts +606 -0
  62. package/dist/types/components/index.d.ts +4 -0
  63. package/dist/types/components/ui/button/Button.vue.d.ts +52 -0
  64. package/dist/types/components/ui/button/index.d.ts +7 -0
  65. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +35 -0
  66. package/dist/types/components/ui/checkbox/index.d.ts +1 -0
  67. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +30 -0
  68. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +28 -0
  69. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +28 -0
  70. package/dist/types/components/ui/collapsible/index.d.ts +3 -0
  71. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +28 -0
  72. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +28 -0
  73. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +35 -0
  74. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +35 -0
  75. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +34 -0
  76. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +34 -0
  77. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +35 -0
  78. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +28 -0
  79. package/dist/types/components/ui/dialog/index.d.ts +8 -0
  80. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +28 -0
  81. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +35 -0
  82. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +52 -0
  83. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +28 -0
  84. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +41 -0
  85. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +38 -0
  86. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +28 -0
  87. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +38 -0
  88. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +17 -0
  89. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +34 -0
  90. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +28 -0
  91. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +35 -0
  92. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +35 -0
  93. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +28 -0
  94. package/dist/types/components/ui/dropdown-menu/index.d.ts +15 -0
  95. package/dist/types/components/ui/input/Input.vue.d.ts +16 -0
  96. package/dist/types/components/ui/input/index.d.ts +7 -0
  97. package/dist/types/components/ui/popover/Popover.vue.d.ts +28 -0
  98. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +64 -0
  99. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +28 -0
  100. package/dist/types/components/ui/popover/index.d.ts +3 -0
  101. package/dist/types/components/ui/progress/Progress.vue.d.ts +28 -0
  102. package/dist/types/components/ui/progress/index.d.ts +1 -0
  103. package/dist/types/components/ui/select/Select.vue.d.ts +28 -0
  104. package/dist/types/components/ui/select/SelectContent.vue.d.ts +52 -0
  105. package/dist/types/components/ui/select/SelectGroup.vue.d.ts +35 -0
  106. package/dist/types/components/ui/select/SelectItem.vue.d.ts +35 -0
  107. package/dist/types/components/ui/select/SelectItemText.vue.d.ts +28 -0
  108. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +35 -0
  109. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +35 -0
  110. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +35 -0
  111. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +17 -0
  112. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +35 -0
  113. package/dist/types/components/ui/select/SelectValue.vue.d.ts +28 -0
  114. package/dist/types/components/ui/select/index.d.ts +11 -0
  115. package/dist/types/components/ui/toast/Toast.vue.d.ts +28 -0
  116. package/dist/types/components/ui/toast/ToastAction.vue.d.ts +35 -0
  117. package/dist/types/components/ui/toast/ToastClose.vue.d.ts +17 -0
  118. package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +35 -0
  119. package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +28 -0
  120. package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +35 -0
  121. package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +17 -0
  122. package/dist/types/components/ui/toast/Toaster.vue.d.ts +2 -0
  123. package/dist/types/components/ui/toast/index.d.ts +21 -0
  124. package/dist/types/components/ui/toast/use-toast.d.ts +272 -0
  125. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +28 -0
  126. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +52 -0
  127. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +28 -0
  128. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +28 -0
  129. package/dist/types/components/ui/tooltip/index.d.ts +4 -0
  130. package/dist/types/components/utils/annotations.d.ts +5 -0
  131. package/dist/types/components/utils/destination.d.ts +7 -0
  132. package/dist/types/components/utils/helpers.d.ts +2 -0
  133. package/dist/types/components/utils/link_service.d.ts +71 -0
  134. package/dist/types/components/utils/sanitizeExternalURL.d.ts +1 -0
  135. package/dist/types/composables/useAnnotationDrag.d.ts +72 -0
  136. package/dist/types/composables/useAnnotationFreeText.d.ts +462 -0
  137. package/dist/types/composables/useAnnotationHighlight.d.ts +389 -0
  138. package/dist/types/composables/useAnnotationStamp.d.ts +493 -0
  139. package/dist/types/composables/useAnnotationStorage.d.ts +72 -0
  140. package/dist/types/composables/useDownload.d.ts +13 -0
  141. package/dist/types/composables/useHighlight.d.ts +11 -0
  142. package/dist/types/composables/useLicense.d.ts +22 -0
  143. package/dist/types/composables/usePdf.d.ts +28 -0
  144. package/dist/types/composables/usePdfComments.d.ts +5 -0
  145. package/dist/types/composables/usePdfPagesSizes.d.ts +8 -0
  146. package/dist/types/composables/usePdfProperties.d.ts +10 -0
  147. package/dist/types/composables/usePinch.d.ts +3 -0
  148. package/dist/types/composables/usePlugins.d.ts +252 -0
  149. package/dist/types/composables/usePrintControl.d.ts +22 -0
  150. package/dist/types/composables/usePrintProcess.d.ts +8 -0
  151. package/dist/types/composables/useRenderQueue.d.ts +13 -0
  152. package/dist/types/composables/useRequestAnimationFrame.d.ts +1 -0
  153. package/dist/types/composables/useRotation.d.ts +7 -0
  154. package/dist/types/composables/useScale.d.ts +21 -0
  155. package/dist/types/composables/useSearch.d.ts +5 -0
  156. package/dist/types/composables/useTextLayers.d.ts +5 -0
  157. package/dist/types/composables/useVirtualPages.d.ts +32 -0
  158. package/dist/types/composables/useVisibilities.d.ts +9 -0
  159. package/dist/types/const.d.ts +149 -0
  160. package/dist/types/index.d.ts +8 -0
  161. package/dist/types/utils/annotation-command.d.ts +18 -0
  162. package/dist/types/utils/annotation-display.d.ts +24 -0
  163. package/dist/types/utils/annotation-free-text.d.ts +4 -0
  164. package/dist/types/utils/annotation-highlight.d.ts +69 -0
  165. package/dist/types/utils/annotation-image.d.ts +111 -0
  166. package/dist/types/utils/annotation-pdf.d.ts +35 -0
  167. package/dist/types/utils/appConsole.d.ts +24 -0
  168. package/dist/types/utils/characters.d.ts +16 -0
  169. package/dist/types/utils/color.d.ts +4 -0
  170. package/dist/types/utils/convertPDFDate.d.ts +1 -0
  171. package/dist/types/utils/enumerators.d.ts +80 -0
  172. package/dist/types/utils/highlight.d.ts +8 -0
  173. package/dist/types/utils/promiseWithResolvers.d.ts +7 -0
  174. package/dist/types/utils/searchHighlight.d.ts +10 -0
  175. package/dist/types/utils/smoothScroll.d.ts +2 -0
  176. package/dist/types/utils/types.d.ts +724 -0
  177. package/dist/types/utils/uiViewer.d.ts +4 -0
  178. package/dist/types/utils/validators.d.ts +26 -0
  179. package/dist/types/utils.d.ts +20 -0
  180. package/package.json +3 -3
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,3 @@
1
+ import { Ref } from 'vue';
2
+ declare const usePinch: (container: Ref<HTMLDivElement | undefined>, currentScale: Ref<number | undefined>) => void;
3
+ export default usePinch;
@@ -0,0 +1,252 @@
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?: (() => void) | undefined;
107
+ created?: (() => void) | undefined;
108
+ beforeMount?: (() => void) | undefined;
109
+ mounted?: (() => void) | undefined;
110
+ beforeUpdate?: (() => void) | undefined;
111
+ updated?: (() => void) | undefined;
112
+ activated?: (() => void) | undefined;
113
+ deactivated?: (() => void) | undefined;
114
+ beforeDestroy?: (() => void) | undefined;
115
+ beforeUnmount?: (() => void) | undefined;
116
+ destroyed?: (() => void) | undefined;
117
+ unmounted?: (() => void) | 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?: (() => void) | undefined;
229
+ created?: (() => void) | undefined;
230
+ beforeMount?: (() => void) | undefined;
231
+ mounted?: (() => void) | undefined;
232
+ beforeUpdate?: (() => void) | undefined;
233
+ updated?: (() => void) | undefined;
234
+ activated?: (() => void) | undefined;
235
+ deactivated?: (() => void) | undefined;
236
+ beforeDestroy?: (() => void) | undefined;
237
+ beforeUnmount?: (() => void) | undefined;
238
+ destroyed?: (() => void) | undefined;
239
+ unmounted?: (() => void) | 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;
@@ -0,0 +1,22 @@
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;
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1 @@
1
+ export declare const useRequestAnimationFrame: <T extends unknown[]>(callback: (...args: T) => void, recurring?: boolean) => (...args: T) => void;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,5 @@
1
+ export declare const useTextLayers: () => {
2
+ addTextLayer: (textLayer: HTMLElement) => void;
3
+ removeTextLayer: (textLayer: HTMLElement) => void;
4
+ getTextLayers: () => import("vue").Reactive<Set<HTMLElement>>;
5
+ };
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,149 @@
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 { 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<{
106
+ Text: boolean;
107
+ Link: boolean;
108
+ FreeText: boolean;
109
+ Line: boolean;
110
+ Square: boolean;
111
+ Circle: boolean;
112
+ Polygon: boolean;
113
+ Polyline: boolean;
114
+ Highlight: boolean;
115
+ Underline: boolean;
116
+ Squiggly: boolean;
117
+ StrikeOut: boolean;
118
+ Stamp: boolean;
119
+ Caret: boolean;
120
+ Ink: boolean;
121
+ Popup: boolean;
122
+ FileAttachment: boolean;
123
+ Widget: boolean;
124
+ }>;
125
+ HIGHLIGHT_COLOR: InjectionKey<Ref<string | null, string | null>>;
126
+ HIGHLIGHT_COLORS: InjectionKey<Ref<AnnotationHighlightColors, AnnotationHighlightColors>>;
127
+ ENABLE_ANNOTATION_IMAGE_EDITOR: InjectionKey<Ref<boolean, boolean>>;
128
+ };
129
+ export declare const FUNC_GO_TO_PAGE: InjectionKey<(page: number) => void>;
130
+ export declare const LICENSE_DEFAULT: {
131
+ isValidated: boolean;
132
+ isValidating: boolean;
133
+ isValidKey: boolean;
134
+ licenseKey: null;
135
+ type: LicenseType;
136
+ product: LicenseProduct;
137
+ };
138
+ export declare const PDF_COMMENTS: InjectionKey<{
139
+ comments: Map<number, Comment[]>;
140
+ repliedCommentPages: import("./components").PdfCommentPage[];
141
+ }>;
142
+ export declare const ANNOTATION_CANVAS_MAP: InjectionKey<Reactive<Map<string, HTMLCanvasElement>>>;
143
+ export declare const DEFAULT_VIEWER_STATE: Reactive<ViewerState>;
144
+ 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"];
145
+ export declare const PIXELS_PER_INCH: {
146
+ CSS: number;
147
+ PDF: number;
148
+ PDF_TO_CSS_UNITS: number;
149
+ };
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ export declare function getFreeTextFont(fontName: string, fontSize: number): {
2
+ fontSize: string;
3
+ fontFamily: string;
4
+ };