@vue-pdf-viewer/viewer 3.6.0-beta.4 → 3.6.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/{index-5gJ9DUFM.js → index-BL75Nf5z.js} +7256 -7233
- package/dist/{index-CiV2Dhty.js → index-MFGuLUE1.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +36 -36
- package/dist/types/composables/usePdfActualPages.d.ts +2 -2
- package/dist/types/composables/useViewerState.d.ts +44 -0
- package/dist/types/const.d.ts +784 -4
- package/dist/types/utils/types.d.ts +11 -12
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, MaybeRef, PropType, Reactive, Ref
|
|
1
|
+
import { ComputedRef, MaybeRef, PropType, Reactive, Ref } from 'vue';
|
|
2
2
|
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';
|
|
@@ -230,17 +230,16 @@ export interface PageDimensionsWithSummation {
|
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
export interface ViewerState {
|
|
233
|
-
pdfDocument:
|
|
234
|
-
pagesContainerRef:
|
|
235
|
-
pageIndex:
|
|
236
|
-
viewMode:
|
|
237
|
-
scrollMode:
|
|
238
|
-
scale:
|
|
239
|
-
targetScale:
|
|
240
|
-
isScaling:
|
|
241
|
-
rotation:
|
|
242
|
-
isEditing:
|
|
243
|
-
updateViewerState: (state: Partial<ViewerState>) => void;
|
|
233
|
+
pdfDocument: PDFDocumentProxy | undefined;
|
|
234
|
+
pagesContainerRef: HTMLElement | undefined;
|
|
235
|
+
pageIndex: number;
|
|
236
|
+
viewMode: ViewMode;
|
|
237
|
+
scrollMode: ScrollMode;
|
|
238
|
+
scale: number;
|
|
239
|
+
targetScale: number;
|
|
240
|
+
isScaling: boolean;
|
|
241
|
+
rotation: number;
|
|
242
|
+
isEditing: boolean;
|
|
244
243
|
}
|
|
245
244
|
export interface ToolbarOptions {
|
|
246
245
|
/**
|