@vue-pdf-viewer/viewer 3.6.1 → 3.7.0-beta.1
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.
- package/README.md +1 -1
- package/dist/{index-XJzcdPc7.js → index-CCIILzUt.js} +1 -1
- package/dist/index-D_co5RyT.js +29298 -0
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +37 -37
- package/dist/lib/assets/pdf-legacy/pdf.worker.min.mjs +21 -0
- package/dist/lib/assets/pdf.worker.min.mjs +21 -0
- package/dist/types/components/LayerAnnotationEditorTextSelectionItem.vue.d.ts +26 -0
- package/dist/types/components/LayerAnnotationEditorTextSelectionItemMenu.vue.d.ts +31 -0
- package/dist/types/components/VPdfViewer.vue.d.ts +16 -9
- package/dist/types/components/ui/button/index.d.ts +1 -1
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +3 -3
- package/dist/types/composables/useAnnotationHighlight.d.ts +42 -1
- package/dist/types/composables/useAnnotationStrikethrough.d.ts +790 -0
- package/dist/types/composables/useAnnotationTextSelection.d.ts +30 -0
- package/dist/types/composables/useAnnotationUnderline.d.ts +790 -0
- package/dist/types/composables/usePlugins.d.ts +2 -1
- package/dist/types/composables/useVirtualPages.d.ts +12 -0
- package/dist/types/const.d.ts +734 -5
- package/dist/types/utils/types.d.ts +14 -3
- package/package.json +5 -4
- package/dist/index-Dz7QxyDX.js +0 -28020
- /package/dist/types/components/{HighlightColorPicker.vue.d.ts → AppColorPicker.vue.d.ts} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, type Reactive, type ComponentInternalInstance, type Ref } from 'vue';
|
|
2
2
|
import { type Localization, type PluginItem, type Plugin } from '@vue-pdf-viewer/shared';
|
|
3
|
-
|
|
3
|
+
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
4
|
+
declare const usePlugins: (instance: ComponentInternalInstance, plugins?: Reactive<Plugin<PDFDocumentProxy>[]>, viewerLocalization?: ComputedRef<Localization>, pdfDocument?: Ref<PDFDocumentProxy | undefined>, originalPdfBytes?: Ref<Uint8Array | null>) => {
|
|
4
5
|
sidebarItems: Ref<PluginItem[]>;
|
|
5
6
|
annotationMounted: Ref<boolean>;
|
|
6
7
|
};
|
|
@@ -27,6 +27,18 @@ export interface UseVirtualListReturn {
|
|
|
27
27
|
}) => Promise<void>;
|
|
28
28
|
pageVisibleAreas: Ref<Map<number, VisibleArea>>;
|
|
29
29
|
currentPageIndex: Ref<number>;
|
|
30
|
+
/**
|
|
31
|
+
* The focused page number (1-indexed) adjusted for view mode.
|
|
32
|
+
* Handles DualPage and DualPageWithCover offsets automatically.
|
|
33
|
+
* Use this instead of currentPageIndex for UI display.
|
|
34
|
+
*/
|
|
35
|
+
focusedPageNumber: ComputedRef<number>;
|
|
36
|
+
/**
|
|
37
|
+
* True during programmatic scroll (scrollTo).
|
|
38
|
+
* Used to prevent scroll events from updating focusedPageNumber
|
|
39
|
+
* until the scroll animation settles.
|
|
40
|
+
*/
|
|
41
|
+
isScrollSettling: Ref<boolean>;
|
|
30
42
|
}
|
|
31
43
|
interface UseVirtualPagesProps {
|
|
32
44
|
pages: Ref<ViewerPdfPage[]>;
|