@vue-pdf-viewer/viewer 0.0.0-beta.10 → 0.0.0-beta.12
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.mjs +787 -778
- package/dist/index.umd.js +14 -14
- package/dist/types/components/VPdfThumbnail.vue.d.ts +4 -2
- package/dist/types/components/types.d.ts +0 -1
- package/dist/types/const.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
2
2
|
interface Props {
|
|
3
3
|
page: PDFPageProxy;
|
|
4
|
-
viewport: PageViewport;
|
|
5
4
|
isPageFocused: boolean;
|
|
6
5
|
}
|
|
7
6
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
7
|
click: (pageIndex: number) => void;
|
|
9
8
|
} & {
|
|
10
9
|
rendered: (pageIndex: number) => void;
|
|
10
|
+
} & {
|
|
11
|
+
error: (error: any) => void;
|
|
11
12
|
} & {
|
|
12
13
|
visibilityChanged: (dto: {
|
|
13
14
|
pageIndex: number;
|
|
14
15
|
visibility: boolean;
|
|
15
16
|
}) => void;
|
|
16
17
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
18
|
+
onError?: ((error: any) => any) | undefined;
|
|
17
19
|
onClick?: ((pageIndex: number) => any) | undefined;
|
|
18
20
|
onRendered?: ((pageIndex: number) => any) | undefined;
|
|
19
21
|
onVisibilityChanged?: ((dto: {
|
package/dist/types/const.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
|
|
|
34
34
|
export declare const PAGES_CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | null>>;
|
|
35
35
|
export declare const pdfPagesKey: InjectionKey<ViewerPdfPage[] | null>;
|
|
36
36
|
export declare const FOCUSED_PAGE_NUMBER: InjectionKey<Ref<number>>;
|
|
37
|
+
export declare const ROTATION_DEGREE: InjectionKey<Ref<number>>;
|
|
37
38
|
export declare const TOTAL_PAGE: InjectionKey<Ref<number>>;
|
|
38
39
|
export declare const INITIAL_TEXT_LAYER: InjectionKey<boolean>;
|
|
39
40
|
export declare const DOWNLOAD_FILE: InjectionKey<() => Promise<void>>;
|
package/package.json
CHANGED