@vue-pdf-viewer/viewer 2.5.0-beta.12 → 2.5.0-beta.13
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/annotation-circle-COOiYsJg.js +21 -0
- package/dist/annotation-freetext-dvsFpAZu.js +21 -0
- package/dist/annotation-highlight-DfO5AU26.js +23 -0
- package/dist/annotation-ink-Dq1T0COO.js +31 -0
- package/dist/annotation-line-mbXXKVam.js +23 -0
- package/dist/annotation-link-DHPTdWez.js +21 -0
- package/dist/annotation-signature-4ci2KImE.js +21 -0
- package/dist/annotation-square-SQ7oqcEq.js +21 -0
- package/dist/annotation-squiggly-B7fWFNAK.js +23 -0
- package/dist/annotation-stamp-BkEskP5J.js +21 -0
- package/dist/annotation-strikeout-C-bSOcHc.js +21 -0
- package/dist/{comment-BbWyJaxS.js → annotation-text-BgsMjKeI.js} +6 -6
- package/dist/annotation-underline-Be5qs13j.js +21 -0
- package/dist/assets/pdf-annotations/annotation-note.svg +15 -44
- package/dist/index.js +535 -503
- package/dist/index.umd.cjs +14 -14
- package/dist/types/components/VPdfCommentsIcon.vue.d.ts +16 -0
- package/dist/types/utils/enumerators.d.ts +1 -1
- package/dist/types/utils/types.d.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AnnotationIconType } from '@/utils/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
type: AnnotationIconType;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
type: AnnotationIconType;
|
|
6
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -2,7 +2,7 @@ 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';
|
|
5
|
-
import { ZoomLevel, ViewMode, ScrollMode, VPVAnnotationType, LicenseType } from './enumerators';
|
|
5
|
+
import { ZoomLevel, ViewMode, ScrollMode, VPVAnnotationType, LicenseType, AnnotationType } from './enumerators';
|
|
6
6
|
export interface VirtualRange {
|
|
7
7
|
start: number;
|
|
8
8
|
end: number;
|
|
@@ -96,6 +96,7 @@ export interface Annotation {
|
|
|
96
96
|
fieldType: string;
|
|
97
97
|
pushButton: boolean;
|
|
98
98
|
}
|
|
99
|
+
export type AnnotationIconType = keyof typeof AnnotationType | 'Signature';
|
|
99
100
|
export interface AnnotationEventPayload {
|
|
100
101
|
type: VPVAnnotationType;
|
|
101
102
|
data: any;
|
|
@@ -732,6 +733,8 @@ export interface Comment {
|
|
|
732
733
|
creationDate: string | Date;
|
|
733
734
|
modificationDate: string | Date;
|
|
734
735
|
color: Uint8ClampedArray | null;
|
|
736
|
+
annotationType: AnnotationType;
|
|
737
|
+
annotationIconType: AnnotationIconType;
|
|
735
738
|
inReplyTo?: string;
|
|
736
739
|
contentsObj?: CommentContents;
|
|
737
740
|
titleObj?: CommentContents;
|