@vue-pdf-viewer/viewer 1.2.0-rc.0 → 1.3.0-beta.0
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.js +5455 -4737
- package/dist/index.umd.cjs +11 -11
- package/dist/page-view-dual-DzyLa1r0.js +21 -0
- package/dist/page-view-single-CAQXbP-i.js +21 -0
- package/dist/scrolling-horizontal-D1qDwmpQ.js +23 -0
- package/dist/scrolling-page-lV73lZIc.js +23 -0
- package/dist/scrolling-vertical-DzrChdnV.js +23 -0
- package/dist/scrolling-wrapped-CvhUpxbI.js +23 -0
- package/dist/types/components/LayerCanvas.vue.d.ts +22 -0
- package/dist/types/components/LayerPage.vue.d.ts +30 -0
- package/dist/types/components/{layers/TextLayer.vue.d.ts → LayerText.vue.d.ts} +1 -1
- package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +29 -0
- package/dist/types/components/ToolMenuOthers.vue.d.ts +2 -2
- package/dist/types/components/ToolPrint.vue.d.ts +1 -1
- package/dist/types/components/ToolZoom.vue.d.ts +5 -5
- package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +3 -3
- package/dist/types/components/VPdfPage.vue.d.ts +2 -2
- package/dist/types/components/VPdfThumbnails.vue.d.ts +1 -1
- package/dist/types/components/VPdfViewer.vue.d.ts +257 -67
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/layers/AnnotationLayer.vue.d.ts +1 -1
- package/dist/types/components/utils/annotations.d.ts +1 -11
- package/dist/types/components/utils/destination.d.ts +1 -1
- package/dist/types/components/utils/highlight.d.ts +1 -1
- package/dist/types/composables/useLicense.d.ts +1 -1
- package/dist/types/composables/usePDF.d.ts +3 -1
- package/dist/types/composables/usePdfPagesSizes.d.ts +8 -0
- package/dist/types/composables/useRenderQueue.d.ts +13 -0
- package/dist/types/composables/useRequestAnimationFrame.d.ts +1 -0
- package/dist/types/composables/useRotation.d.ts +2 -2
- package/dist/types/composables/useSearch.d.ts +12 -21
- package/dist/types/composables/useVirtual.d.ts +36 -0
- package/dist/types/composables/useVirtualPages.d.ts +29 -0
- package/dist/types/composables/useVirtualScroll.d.ts +18 -0
- package/dist/types/const.d.ts +21 -3
- package/dist/types/utils/enumerators.d.ts +35 -0
- package/dist/types/utils/smoothScroll.d.ts +2 -0
- package/dist/types/{components → utils}/types.d.ts +81 -25
- package/dist/types/utils/validators.d.ts +4 -0
- package/dist/types/utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/types/composables/useCalculatePages.d.ts +0 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, r = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M13.833 2.5H2.167a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h11.666a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-11.666 1H7.5v9H2.167zm11.666 9H8.5v-9h5.333z"
|
|
11
|
+
}, null, -1), l = [
|
|
12
|
+
r
|
|
13
|
+
];
|
|
14
|
+
function c(a, h) {
|
|
15
|
+
return e(), t("svg", n, [...l]);
|
|
16
|
+
}
|
|
17
|
+
const s = { render: c };
|
|
18
|
+
export {
|
|
19
|
+
s as default,
|
|
20
|
+
c as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, r = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
d: "M12.333 2H3.667a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8.666a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m0 11H3.667V3h8.666z"
|
|
11
|
+
}, null, -1), l = [
|
|
12
|
+
r
|
|
13
|
+
];
|
|
14
|
+
function c(i, a) {
|
|
15
|
+
return e(), t("svg", n, [...l]);
|
|
16
|
+
}
|
|
17
|
+
const s = { render: c };
|
|
18
|
+
export {
|
|
19
|
+
s as default,
|
|
20
|
+
c as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
|
+
const l = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, n = /* @__PURE__ */ t("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
"fill-rule": "evenodd",
|
|
11
|
+
d: "M15.5 12.833a.5.5 0 0 0-.5-.5h-1.5V3.667H15a.5.5 0 0 0 0-1h-1.667a.833.833 0 0 0-.833.833v9c0 .46.373.833.833.833H15a.5.5 0 0 0 .5-.5m-4.833.5a1 1 0 0 0 1-1V3.667a1 1 0 0 0-1-1H5.333a1 1 0 0 0-1 1v8.666a1 1 0 0 0 1 1zm0-9.666v8.666H5.333V3.667zM1 12.333a.5.5 0 1 0 0 1h1.667c.46 0 .833-.373.833-.833v-9a.833.833 0 0 0-.833-.833H1a.5.5 0 1 0 0 1h1.5v8.666z",
|
|
12
|
+
"clip-rule": "evenodd"
|
|
13
|
+
}, null, -1), r = [
|
|
14
|
+
n
|
|
15
|
+
];
|
|
16
|
+
function a(c, i) {
|
|
17
|
+
return e(), o("svg", l, [...r]);
|
|
18
|
+
}
|
|
19
|
+
const h = { render: a };
|
|
20
|
+
export {
|
|
21
|
+
h as default,
|
|
22
|
+
a as render
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as l, createElementVNode as o } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, n = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
"fill-rule": "evenodd",
|
|
11
|
+
d: "M12.5 1.5h-9a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1m0 12h-9v-11h9zm-2.037-3.547a.5.5 0 0 0-.816-.162L8.5 10.938v-5.92l1.147 1.147a.5.5 0 1 0 .707-.707l-2-2a.5.5 0 0 0-.707 0l-2 2a.5.5 0 1 0 .707.707L7.5 5.018v5.92L6.354 9.791a.5.5 0 0 0-.707.708l2 2a.5.5 0 0 0 .707 0l2-2a.5.5 0 0 0 .109-.546",
|
|
12
|
+
"clip-rule": "evenodd"
|
|
13
|
+
}, null, -1), a = [
|
|
14
|
+
n
|
|
15
|
+
];
|
|
16
|
+
function r(c, d) {
|
|
17
|
+
return e(), l("svg", t, [...a]);
|
|
18
|
+
}
|
|
19
|
+
const i = { render: r };
|
|
20
|
+
export {
|
|
21
|
+
i as default,
|
|
22
|
+
r as render
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const l = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, n = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
"fill-rule": "evenodd",
|
|
11
|
+
d: "M3.167.5a.5.5 0 0 1 .5.5v1.5h8.666V1a.5.5 0 1 1 1 0v1.667c0 .46-.373.833-.833.833h-9a.833.833 0 0 1-.833-.833V1a.5.5 0 0 1 .5-.5m-.5 4.833a1 1 0 0 1 1-1h8.666a1 1 0 0 1 1 1v5.334a1 1 0 0 1-1 1H3.667a1 1 0 0 1-1-1zm9.666 0H3.667v5.334h8.666zM3.667 15a.5.5 0 0 1-1 0v-1.667c0-.46.373-.833.833-.833h9c.46 0 .833.373.833.833V15a.5.5 0 0 1-1 0v-1.5H3.667z",
|
|
12
|
+
"clip-rule": "evenodd"
|
|
13
|
+
}, null, -1), c = [
|
|
14
|
+
n
|
|
15
|
+
];
|
|
16
|
+
function r(a, h) {
|
|
17
|
+
return e(), t("svg", l, [...c]);
|
|
18
|
+
}
|
|
19
|
+
const d = { render: r };
|
|
20
|
+
export {
|
|
21
|
+
d as default,
|
|
22
|
+
r as render
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as a, createElementVNode as o } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, h = /* @__PURE__ */ o("path", {
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
"fill-rule": "evenodd",
|
|
11
|
+
d: "M2 .5a.5.5 0 0 1 .5.5v1.5h4V1a.5.5 0 0 1 1 0v1.667c0 .46-.373.833-.833.833H2.333a.833.833 0 0 1-.833-.833V1A.5.5 0 0 1 2 .5m.5 3.833a1 1 0 0 0-1 1v5.334a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5.333a1 1 0 0 0-1-1zm0 1h4v5.334h-4zm7-1a1 1 0 0 0-1 1v5.334a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5.333a1 1 0 0 0-1-1zm0 1h4v5.334h-4zM9.5 1a.5.5 0 0 0-1 0v1.667c0 .46.373.833.833.833h4.334c.46 0 .833-.373.833-.833V1a.5.5 0 0 0-1 0v1.5h-4zM14 15.5a.5.5 0 0 1-.5-.5v-1.5h-4V15a.5.5 0 0 1-1 0v-1.667c0-.46.373-.833.833-.833h4.334c.46 0 .833.373.833.833V15a.5.5 0 0 1-.5.5M6.5 15a.5.5 0 0 0 1 0v-1.667a.833.833 0 0 0-.833-.833H2.333a.833.833 0 0 0-.833.833V15a.5.5 0 0 0 1 0v-1.5h4z",
|
|
12
|
+
"clip-rule": "evenodd"
|
|
13
|
+
}, null, -1), c = [
|
|
14
|
+
h
|
|
15
|
+
];
|
|
16
|
+
function l(n, r) {
|
|
17
|
+
return e(), a("svg", t, [...c]);
|
|
18
|
+
}
|
|
19
|
+
const d = { render: l };
|
|
20
|
+
export {
|
|
21
|
+
d as default,
|
|
22
|
+
l as render
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PDFPageProxy } from 'pdfjs-dist';
|
|
2
|
+
interface OwnProps {
|
|
3
|
+
page: PDFPageProxy;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
pageIndex: number;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<OwnProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
rendered: () => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & {
|
|
11
|
+
onRendered?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PdfPageSize } from '../utils/types';
|
|
2
|
+
interface OwnProps {
|
|
3
|
+
shouldRender: boolean;
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
pageSize: PdfPageSize;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<OwnProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
rendered: () => void;
|
|
9
|
+
} & {
|
|
10
|
+
intersected: (args: {
|
|
11
|
+
pageIndex: number;
|
|
12
|
+
ratio: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & {
|
|
15
|
+
onRendered?: (() => any) | undefined;
|
|
16
|
+
onIntersected?: ((args: {
|
|
17
|
+
pageIndex: number;
|
|
18
|
+
ratio: number;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PDFPageProxy, PageViewport } from 'pdfjs-dist';
|
|
2
|
-
import type { HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload } from '../types';
|
|
2
|
+
import type { HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload } from '../utils/types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
page: PDFPageProxy;
|
|
5
5
|
viewport: PageViewport;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface OwnProps {
|
|
2
|
+
pageIndex: number;
|
|
3
|
+
searchKeyword: string;
|
|
4
|
+
totalPages?: number;
|
|
5
|
+
}
|
|
6
|
+
interface FlagKeyword {
|
|
7
|
+
keyword: string;
|
|
8
|
+
matchCase?: boolean;
|
|
9
|
+
wholeWords?: boolean;
|
|
10
|
+
}
|
|
11
|
+
type SingleKeyword = string | RegExp | FlagKeyword;
|
|
12
|
+
interface NormalizedKeyword {
|
|
13
|
+
keyword: string;
|
|
14
|
+
regExp: RegExp;
|
|
15
|
+
wholeWords: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const normalizeFlagKeyword: (flagKeyword: FlagKeyword) => NormalizedKeyword;
|
|
18
|
+
export declare const normalizeSingleKeyword: (keyword: SingleKeyword, matchCase?: boolean, wholeWords?: boolean) => NormalizedKeyword;
|
|
19
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<OwnProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>>, {}, {}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
rootContainer: HTMLDivElement;
|
|
@@ -100,7 +100,7 @@ declare const _default: {
|
|
|
100
100
|
} & {
|
|
101
101
|
progress: (percent: number) => void;
|
|
102
102
|
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
103
|
-
$slots: {
|
|
103
|
+
$slots: Record<string, {}> & Record<string, {}> & {
|
|
104
104
|
icon: (_: {}) => any;
|
|
105
105
|
iconFirstPage: (_: {}) => any;
|
|
106
106
|
iconLastPage: (_: {}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
pages: ViewerPdfPage[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
scale: number;
|
|
5
5
|
focusedPage?: ViewerPdfPage | undefined;
|
|
6
|
-
pagesContainer
|
|
6
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
7
7
|
}>>> & {
|
|
8
8
|
onZoom?: ((nextScale: number) => any) | undefined;
|
|
9
9
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -11,7 +11,7 @@ declare const _default: {
|
|
|
11
11
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
scale: number;
|
|
13
13
|
focusedPage?: ViewerPdfPage | undefined;
|
|
14
|
-
pagesContainer
|
|
14
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
15
15
|
}>>> & {
|
|
16
16
|
onZoom?: ((nextScale: number) => any) | undefined;
|
|
17
17
|
}, {}, true, {}, {}, {
|
|
@@ -24,7 +24,7 @@ declare const _default: {
|
|
|
24
24
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
25
25
|
scale: number;
|
|
26
26
|
focusedPage?: ViewerPdfPage | undefined;
|
|
27
|
-
pagesContainer
|
|
27
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
28
28
|
}>>> & {
|
|
29
29
|
onZoom?: ((nextScale: number) => any) | undefined;
|
|
30
30
|
}, {}, {}, {}, {}, {}>;
|
|
@@ -34,7 +34,7 @@ declare const _default: {
|
|
|
34
34
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
35
35
|
scale: number;
|
|
36
36
|
focusedPage?: ViewerPdfPage | undefined;
|
|
37
|
-
pagesContainer
|
|
37
|
+
pagesContainer?: HTMLDivElement | undefined;
|
|
38
38
|
}>>> & {
|
|
39
39
|
onZoom?: ((nextScale: number) => any) | undefined;
|
|
40
40
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '
|
|
1
|
+
import { ViewerPdfPage } from '../utils/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
currentPercentage: string;
|
|
4
4
|
currentPage?: ViewerPdfPage | undefined;
|
|
5
|
-
container
|
|
5
|
+
container?: HTMLDivElement | undefined;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
select: (scale: number) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
9
|
currentPercentage: string;
|
|
10
10
|
currentPage?: ViewerPdfPage | undefined;
|
|
11
|
-
container
|
|
11
|
+
container?: HTMLDivElement | undefined;
|
|
12
12
|
}>>> & {
|
|
13
13
|
onSelect?: ((scale: number) => any) | undefined;
|
|
14
14
|
}, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnnotationEventPayload, HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload } from '
|
|
1
|
+
import type { AnnotationEventPayload, HighlightEventPayload, HighlightOptions, Match, TextLayerLoadedEventPayload } from '../utils/types';
|
|
2
2
|
import type { PageViewport, PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
|
|
3
3
|
import type { PDFDocumentProxy } from 'pdfjs-dist';
|
|
4
4
|
interface BaseProps {
|
|
@@ -45,9 +45,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
45
45
|
currentHighlight?: Match | undefined;
|
|
46
46
|
highlightOptions?: HighlightOptions | undefined;
|
|
47
47
|
}>> | import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BaseProps & NonTextProps>>> & {
|
|
48
|
+
onAnnotationLoaded?: ((payload?: any[] | undefined) => any) | undefined;
|
|
48
49
|
onHighlight?: ((payload: HighlightEventPayload) => any) | undefined;
|
|
49
50
|
onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined;
|
|
50
|
-
onAnnotationLoaded?: ((payload?: any[] | undefined) => any) | undefined;
|
|
51
51
|
onAnnotated?: ((payload: AnnotationEventPayload) => any) | undefined;
|
|
52
52
|
}, {} | {} | {}, {}>;
|
|
53
53
|
export default _default;
|