@vue-pdf-viewer/viewer 3.8.0-beta.1 → 3.8.0-beta.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.
- package/dist/{index-jEmzkFAm.js → index-Btov3KIu.js} +1 -1
- package/dist/{index-BFvkUr-W.js → index-D2b9RpbV.js} +7994 -7963
- package/dist/index.js +13 -12
- package/dist/index.umd.cjs +36 -36
- package/dist/types/components/VPdfViewer.vue.d.ts +16 -1
- package/dist/types/const.d.ts +11 -765
- package/dist/types/utils/enumerators.d.ts +4 -0
- package/dist/types/utils/types.d.ts +11 -1
- package/package.json +1 -1
|
@@ -23,6 +23,10 @@ export declare enum ZoomLevel {
|
|
|
23
23
|
PageFit = "pageFit",
|
|
24
24
|
PageWidth = "pageWidth"
|
|
25
25
|
}
|
|
26
|
+
export declare enum SelectionMode {
|
|
27
|
+
Text = "text",
|
|
28
|
+
Hand = "hand"
|
|
29
|
+
}
|
|
26
30
|
export declare enum ScrollDirection {
|
|
27
31
|
Horizontal = "Horizontal",
|
|
28
32
|
Vertical = "Vertical",
|
|
@@ -3,7 +3,7 @@ import type { PageViewport, RenderTask } from 'pdfjs-dist';
|
|
|
3
3
|
import type { DocumentInitParameters, OnProgressParameters, PDFDataRangeTransport, TextContent, TypedArray, PDFPageProxy, PDFDocumentProxy, RenderParameters } from 'pdfjs-dist/types/src/display/api';
|
|
4
4
|
import type { Metadata } from 'pdfjs-dist/types/src/display/metadata';
|
|
5
5
|
import type { Annotation, AnnotationToolOption, TextSelectionOption } from '@vue-pdf-viewer/shared';
|
|
6
|
-
import { ZoomLevel, ViewMode, ScrollMode, VPVAnnotationType, LicenseType, LicenseProduct } from './enumerators';
|
|
6
|
+
import { ZoomLevel, ViewMode, ScrollMode, SelectionMode, VPVAnnotationType, LicenseType, LicenseProduct } from './enumerators';
|
|
7
7
|
import { Localization, Plugin, AnnotationType } from '@vue-pdf-viewer/shared';
|
|
8
8
|
export interface VirtualRange {
|
|
9
9
|
start: number;
|
|
@@ -395,6 +395,12 @@ export interface VPdfViewerProps {
|
|
|
395
395
|
* A layer on a PDF to allow text selection
|
|
396
396
|
*/
|
|
397
397
|
textLayer?: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* The selection mode for the viewer (text selection or hand tool)
|
|
400
|
+
* - 'text': Enable text selection with cursor
|
|
401
|
+
* - 'hand': Enable grab-to-scroll with hand cursor
|
|
402
|
+
*/
|
|
403
|
+
selectionMode?: SelectionMode;
|
|
398
404
|
/**
|
|
399
405
|
* Specifies the character map (CMap) to be used for text rendering.
|
|
400
406
|
* A CMap associates character codes with corresponding glyphs in CID fonts.
|
|
@@ -507,6 +513,10 @@ export declare const VPVBaseProps: {
|
|
|
507
513
|
readonly type: PropType<boolean>;
|
|
508
514
|
readonly default: () => boolean;
|
|
509
515
|
};
|
|
516
|
+
readonly selectionMode: {
|
|
517
|
+
readonly type: PropType<SelectionMode>;
|
|
518
|
+
readonly default: undefined;
|
|
519
|
+
};
|
|
510
520
|
readonly characterMap: {
|
|
511
521
|
readonly type: PropType<CharacterMap>;
|
|
512
522
|
readonly default: undefined;
|