@vue-pdf-viewer/viewer 4.1.0-beta.4 → 4.1.0-beta.6
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/{VPdfViewer.vue_vue_type_style_index_1_scoped_0ec9d2b5_lang-BRAur53d.js → VPdfViewer.vue_vue_type_style_index_1_scoped_72c71cb2_lang-CzWBUoR0.js} +13 -13
- package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_0ec9d2b5_lang-CqoMsfH7.cjs → VPdfViewer.vue_vue_type_style_index_1_scoped_72c71cb2_lang-uGck6dH0.cjs} +3 -3
- package/dist/{index-CcnjkHx_.cjs → index-Boteeiyc.cjs} +1 -1
- package/dist/{index-COFUNuXJ.js → index-CiD7Uq6n.js} +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.js +7089 -7068
- package/dist/license.cjs +1 -1
- package/dist/license.js +1 -1
- package/dist/types/components/VPdfViewer.vue.d.ts +15 -0
- package/dist/types/composables/usePdf.d.ts +1 -1
- package/dist/types/const.d.ts +1 -0
- package/dist/types/utils/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/license.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_72c71cb2_lang-uGck6dH0.cjs");exports.LicenseProduct=e.a;exports.LicenseType=e.L;exports.useLicense=e.u;
|
package/dist/license.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a, L as c, u as L } from "./VPdfViewer.
|
|
1
|
+
import { a, L as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_72c71cb2_lang-CzWBUoR0.js";
|
|
2
2
|
export {
|
|
3
3
|
a as LicenseProduct,
|
|
4
4
|
c as LicenseType,
|
|
@@ -13,6 +13,10 @@ declare const _default: {
|
|
|
13
13
|
readonly type: import("vue").PropType<string>;
|
|
14
14
|
readonly default: undefined;
|
|
15
15
|
};
|
|
16
|
+
readonly wasmUrl: {
|
|
17
|
+
readonly type: import("vue").PropType<string>;
|
|
18
|
+
readonly default: undefined;
|
|
19
|
+
};
|
|
16
20
|
readonly initialPage: {
|
|
17
21
|
readonly type: import("vue").PropType<number>;
|
|
18
22
|
readonly default: () => number;
|
|
@@ -240,6 +244,7 @@ declare const _default: {
|
|
|
240
244
|
pageChanged: (progress: number) => void;
|
|
241
245
|
}, import("vue").PublicProps, {
|
|
242
246
|
readonly workerUrl: string;
|
|
247
|
+
readonly wasmUrl: string;
|
|
243
248
|
readonly initialPage: number;
|
|
244
249
|
readonly initialScale: number | ZoomLevel;
|
|
245
250
|
readonly initialRotation: number;
|
|
@@ -272,6 +277,10 @@ declare const _default: {
|
|
|
272
277
|
readonly type: import("vue").PropType<string>;
|
|
273
278
|
readonly default: undefined;
|
|
274
279
|
};
|
|
280
|
+
readonly wasmUrl: {
|
|
281
|
+
readonly type: import("vue").PropType<string>;
|
|
282
|
+
readonly default: undefined;
|
|
283
|
+
};
|
|
275
284
|
readonly initialPage: {
|
|
276
285
|
readonly type: import("vue").PropType<number>;
|
|
277
286
|
readonly default: () => number;
|
|
@@ -465,6 +474,7 @@ declare const _default: {
|
|
|
465
474
|
};
|
|
466
475
|
}, {}, {}, {}, {
|
|
467
476
|
readonly workerUrl: string;
|
|
477
|
+
readonly wasmUrl: string;
|
|
468
478
|
readonly initialPage: number;
|
|
469
479
|
readonly initialScale: number | ZoomLevel;
|
|
470
480
|
readonly initialRotation: number;
|
|
@@ -494,6 +504,10 @@ declare const _default: {
|
|
|
494
504
|
readonly type: import("vue").PropType<string>;
|
|
495
505
|
readonly default: undefined;
|
|
496
506
|
};
|
|
507
|
+
readonly wasmUrl: {
|
|
508
|
+
readonly type: import("vue").PropType<string>;
|
|
509
|
+
readonly default: undefined;
|
|
510
|
+
};
|
|
497
511
|
readonly initialPage: {
|
|
498
512
|
readonly type: import("vue").PropType<number>;
|
|
499
513
|
readonly default: () => number;
|
|
@@ -721,6 +735,7 @@ declare const _default: {
|
|
|
721
735
|
pageChanged: (progress: number) => void;
|
|
722
736
|
}, string, {
|
|
723
737
|
readonly workerUrl: string;
|
|
738
|
+
readonly wasmUrl: string;
|
|
724
739
|
readonly initialPage: number;
|
|
725
740
|
readonly initialScale: number | ZoomLevel;
|
|
726
741
|
readonly initialRotation: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MaybeRef } from 'vue';
|
|
2
2
|
import { type PDFOptions, type PDFSrc, type PDFDocumentOptions } from '../utils/types';
|
|
3
3
|
import { type PDFDocumentProxy, type PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
|
|
4
|
-
declare function usePdf(src: MaybeRef<PDFSrc>, options?: PDFOptions, workerUrl?: string, documentOptions?: PDFDocumentOptions): {
|
|
4
|
+
declare function usePdf(src: MaybeRef<PDFSrc>, options?: PDFOptions, workerUrl?: string, documentOptions?: PDFDocumentOptions, wasmUrl?: string): {
|
|
5
5
|
pdfDocLoadingTask: import("vue").ShallowRef<import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined, import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined>;
|
|
6
6
|
getPage: (doc: PDFDocumentProxy, pageIndex: number) => Promise<PDFPageProxy>;
|
|
7
7
|
};
|
package/dist/types/const.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const CSS_CLASSES: {
|
|
|
15
15
|
export declare const DEFAULT_TOOLBAR_OPTIONS: ToolbarOptions;
|
|
16
16
|
export declare const DEFAULT_PROPS: {
|
|
17
17
|
workerUrl: undefined;
|
|
18
|
+
wasmUrl: undefined;
|
|
18
19
|
initialPage: number;
|
|
19
20
|
initialScale: ZoomLevel;
|
|
20
21
|
initialScrollMode: ScrollMode;
|
|
@@ -378,6 +378,11 @@ export interface VPdfViewerProps {
|
|
|
378
378
|
* If unspecified, the viewer will use the worker from pdfjs-dist@3.11.174
|
|
379
379
|
*/
|
|
380
380
|
workerUrl?: string;
|
|
381
|
+
/**
|
|
382
|
+
* The URL directory where the pdf.js WASM files are located. Include the trailing slash.
|
|
383
|
+
* Required when hosting WASM assets at a custom path (e.g. for JPEG 2000 decoding).
|
|
384
|
+
*/
|
|
385
|
+
wasmUrl?: string;
|
|
381
386
|
/**
|
|
382
387
|
* The number of page that will be displayed initially
|
|
383
388
|
*/
|
|
@@ -502,6 +507,10 @@ export declare const VPVBaseProps: {
|
|
|
502
507
|
readonly type: PropType<string>;
|
|
503
508
|
readonly default: undefined;
|
|
504
509
|
};
|
|
510
|
+
readonly wasmUrl: {
|
|
511
|
+
readonly type: PropType<string>;
|
|
512
|
+
readonly default: undefined;
|
|
513
|
+
};
|
|
505
514
|
readonly initialPage: {
|
|
506
515
|
readonly type: PropType<number>;
|
|
507
516
|
readonly default: () => number;
|