@vue-pdf-viewer/viewer 3.8.0-beta.5 → 3.8.0-beta.7
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--E-fgwci.js → index-BEojyis4.js} +8877 -8787
- package/dist/{index-wITdMX8a.js → index-D3hAJXIj.js} +1 -1
- package/dist/index.js +12 -13
- package/dist/index.umd.cjs +37 -38
- package/dist/types/components/VPdfViewer.vue.d.ts +1 -16
- package/dist/types/components/utils/annotations.d.ts +1 -1
- package/dist/types/const.d.ts +765 -11
- package/dist/types/utils/enumerators.d.ts +0 -4
- package/dist/types/utils/types.d.ts +1 -11
- package/package.json +1 -1
|
@@ -23,10 +23,6 @@ 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
|
-
}
|
|
30
26
|
export declare enum ScrollDirection {
|
|
31
27
|
Horizontal = "Horizontal",
|
|
32
28
|
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,
|
|
6
|
+
import { ZoomLevel, ViewMode, ScrollMode, 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,12 +395,6 @@ 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;
|
|
404
398
|
/**
|
|
405
399
|
* Specifies the character map (CMap) to be used for text rendering.
|
|
406
400
|
* A CMap associates character codes with corresponding glyphs in CID fonts.
|
|
@@ -513,10 +507,6 @@ export declare const VPVBaseProps: {
|
|
|
513
507
|
readonly type: PropType<boolean>;
|
|
514
508
|
readonly default: () => boolean;
|
|
515
509
|
};
|
|
516
|
-
readonly selectionMode: {
|
|
517
|
-
readonly type: PropType<SelectionMode>;
|
|
518
|
-
readonly default: undefined;
|
|
519
|
-
};
|
|
520
510
|
readonly characterMap: {
|
|
521
511
|
readonly type: PropType<CharacterMap>;
|
|
522
512
|
readonly default: undefined;
|