@vue-pdf-viewer/viewer 1.6.0-beta.3 → 1.6.0-beta.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, Localization } from '@/utils/types';
|
|
2
|
-
import { ScrollMode, ViewMode
|
|
2
|
+
import { ScrollMode, ViewMode } from '@/utils/enumerators';
|
|
3
3
|
import '../style.scss';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -16,8 +16,8 @@ declare const _default: {
|
|
|
16
16
|
readonly default: () => number;
|
|
17
17
|
};
|
|
18
18
|
readonly initialScale: {
|
|
19
|
-
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
20
|
-
readonly default: () => ZoomLevel;
|
|
19
|
+
readonly type: import("vue").PropType<number | import("@/utils/enumerators").ZoomLevel>;
|
|
20
|
+
readonly default: () => import("@/utils/enumerators").ZoomLevel;
|
|
21
21
|
};
|
|
22
22
|
readonly initialScrollMode: {
|
|
23
23
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
@@ -106,11 +106,11 @@ declare const _default: {
|
|
|
106
106
|
nextSearchMatch: () => void;
|
|
107
107
|
prevSearchMatch: () => void;
|
|
108
108
|
} | undefined>;
|
|
109
|
-
rotateControl: {
|
|
109
|
+
rotateControl: import("vue").ComputedRef<{
|
|
110
110
|
rotateClockwise: () => void;
|
|
111
111
|
rotateCounterclockwise: () => void;
|
|
112
112
|
currentRotation: number;
|
|
113
|
-
}
|
|
113
|
+
} | undefined>;
|
|
114
114
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
115
115
|
annotation: (payload: AnnotationEventPayload) => void;
|
|
116
116
|
} & {
|
|
@@ -143,8 +143,8 @@ declare const _default: {
|
|
|
143
143
|
readonly default: () => number;
|
|
144
144
|
};
|
|
145
145
|
readonly initialScale: {
|
|
146
|
-
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
147
|
-
readonly default: () => ZoomLevel;
|
|
146
|
+
readonly type: import("vue").PropType<number | import("@/utils/enumerators").ZoomLevel>;
|
|
147
|
+
readonly default: () => import("@/utils/enumerators").ZoomLevel;
|
|
148
148
|
};
|
|
149
149
|
readonly initialScrollMode: {
|
|
150
150
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
@@ -203,7 +203,7 @@ declare const _default: {
|
|
|
203
203
|
readonly initialScrollMode: ScrollMode;
|
|
204
204
|
readonly workerUrl: string;
|
|
205
205
|
readonly initialPage: number;
|
|
206
|
-
readonly initialScale: number | ZoomLevel;
|
|
206
|
+
readonly initialScale: number | import("@/utils/enumerators").ZoomLevel;
|
|
207
207
|
readonly initialRotation: number;
|
|
208
208
|
readonly initialThumbnailsVisible: boolean;
|
|
209
209
|
readonly initialSearch: string;
|
|
@@ -233,8 +233,8 @@ declare const _default: {
|
|
|
233
233
|
readonly default: () => number;
|
|
234
234
|
};
|
|
235
235
|
readonly initialScale: {
|
|
236
|
-
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
237
|
-
readonly default: () => ZoomLevel;
|
|
236
|
+
readonly type: import("vue").PropType<number | import("@/utils/enumerators").ZoomLevel>;
|
|
237
|
+
readonly default: () => import("@/utils/enumerators").ZoomLevel;
|
|
238
238
|
};
|
|
239
239
|
readonly initialScrollMode: {
|
|
240
240
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
@@ -323,17 +323,17 @@ declare const _default: {
|
|
|
323
323
|
nextSearchMatch: () => void;
|
|
324
324
|
prevSearchMatch: () => void;
|
|
325
325
|
} | undefined>;
|
|
326
|
-
rotateControl: {
|
|
326
|
+
rotateControl: import("vue").ComputedRef<{
|
|
327
327
|
rotateClockwise: () => void;
|
|
328
328
|
rotateCounterclockwise: () => void;
|
|
329
329
|
currentRotation: number;
|
|
330
|
-
}
|
|
330
|
+
} | undefined>;
|
|
331
331
|
}, {}, {}, {}, {
|
|
332
332
|
readonly initialViewMode: ViewMode;
|
|
333
333
|
readonly initialScrollMode: ScrollMode;
|
|
334
334
|
readonly workerUrl: string;
|
|
335
335
|
readonly initialPage: number;
|
|
336
|
-
readonly initialScale: number | ZoomLevel;
|
|
336
|
+
readonly initialScale: number | import("@/utils/enumerators").ZoomLevel;
|
|
337
337
|
readonly initialRotation: number;
|
|
338
338
|
readonly initialThumbnailsVisible: boolean;
|
|
339
339
|
readonly initialSearch: string;
|
|
@@ -360,8 +360,8 @@ declare const _default: {
|
|
|
360
360
|
readonly default: () => number;
|
|
361
361
|
};
|
|
362
362
|
readonly initialScale: {
|
|
363
|
-
readonly type: import("vue").PropType<number | ZoomLevel>;
|
|
364
|
-
readonly default: () => ZoomLevel;
|
|
363
|
+
readonly type: import("vue").PropType<number | import("@/utils/enumerators").ZoomLevel>;
|
|
364
|
+
readonly default: () => import("@/utils/enumerators").ZoomLevel;
|
|
365
365
|
};
|
|
366
366
|
readonly initialScrollMode: {
|
|
367
367
|
readonly type: import("vue").PropType<ScrollMode>;
|
|
@@ -450,11 +450,11 @@ declare const _default: {
|
|
|
450
450
|
nextSearchMatch: () => void;
|
|
451
451
|
prevSearchMatch: () => void;
|
|
452
452
|
} | undefined>;
|
|
453
|
-
rotateControl: {
|
|
453
|
+
rotateControl: import("vue").ComputedRef<{
|
|
454
454
|
rotateClockwise: () => void;
|
|
455
455
|
rotateCounterclockwise: () => void;
|
|
456
456
|
currentRotation: number;
|
|
457
|
-
}
|
|
457
|
+
} | undefined>;
|
|
458
458
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
459
459
|
annotation: (payload: AnnotationEventPayload) => void;
|
|
460
460
|
} & {
|
|
@@ -478,7 +478,7 @@ declare const _default: {
|
|
|
478
478
|
readonly initialScrollMode: ScrollMode;
|
|
479
479
|
readonly workerUrl: string;
|
|
480
480
|
readonly initialPage: number;
|
|
481
|
-
readonly initialScale: number | ZoomLevel;
|
|
481
|
+
readonly initialScale: number | import("@/utils/enumerators").ZoomLevel;
|
|
482
482
|
readonly initialRotation: number;
|
|
483
483
|
readonly initialThumbnailsVisible: boolean;
|
|
484
484
|
readonly initialSearch: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef, MaybeRef, PropType, Reactive, Ref, ShallowRef } from 'vue';
|
|
2
2
|
import type { PageViewport } from 'pdfjs-dist';
|
|
3
3
|
import type { DocumentInitParameters, OnProgressParameters, PDFDataRangeTransport, TextContent, TypedArray, PDFPageProxy, PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
4
4
|
import type { Metadata } from 'pdfjs-dist/types/src/display/metadata';
|
|
@@ -594,7 +594,7 @@ export interface RotateControl {
|
|
|
594
594
|
rotateCounterclockwise: () => void;
|
|
595
595
|
currentRotation: number;
|
|
596
596
|
}
|
|
597
|
-
export interface VPVInstance
|
|
597
|
+
export interface VPVInstance {
|
|
598
598
|
printControl: Reactive<PrintControl> | undefined;
|
|
599
599
|
searchControl: SearchControl | undefined;
|
|
600
600
|
pageControl: PageControl | undefined;
|