@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.
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "3.8.0-beta.1",
4
+ "version": "3.8.0-beta.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",