@vue-pdf-viewer/shared 1.1.0-beta.0 → 1.1.0-rc.1
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/const.js +12 -0
- package/dist/enumerators.js +12 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +0 -2
- package/dist/utils.js +12 -0
- package/package.json +1 -1
package/dist/const.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021-2025 Vue PDF Viewer
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Vue PDF Viewer
|
|
5
|
+
*
|
|
6
|
+
* Vue PDF Viewer is distributed under a Commercial License Agreement.
|
|
7
|
+
*
|
|
8
|
+
* For licensing terms and conditions, please visit:
|
|
9
|
+
* https://www.vue-pdf-viewer.dev/license-agreement
|
|
10
|
+
*
|
|
11
|
+
* For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
|
|
12
|
+
*/
|
|
1
13
|
import { EventAnnotation, EventCore, FreeTextFontColor, HighlightColor, } from "./enumerators";
|
|
2
14
|
import en from "./locales/en_US.json";
|
|
3
15
|
import cn from "./locales/zh_CN.json";
|
package/dist/enumerators.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021-2025 Vue PDF Viewer
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Vue PDF Viewer
|
|
5
|
+
*
|
|
6
|
+
* Vue PDF Viewer is distributed under a Commercial License Agreement.
|
|
7
|
+
*
|
|
8
|
+
* For licensing terms and conditions, please visit:
|
|
9
|
+
* https://www.vue-pdf-viewer.dev/license-agreement
|
|
10
|
+
*
|
|
11
|
+
* For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
|
|
12
|
+
*/
|
|
1
13
|
export var EventAnnotation;
|
|
2
14
|
(function (EventAnnotation) {
|
|
3
15
|
EventAnnotation["highlight"] = "vpv:annotation:highlight";
|
package/dist/types.d.ts
CHANGED
|
@@ -213,3 +213,9 @@ export interface Annotation {
|
|
|
213
213
|
fontSize?: number;
|
|
214
214
|
contents?: string;
|
|
215
215
|
}
|
|
216
|
+
export type AnnotationCallback<T = Annotation> = (data: T) => void;
|
|
217
|
+
export interface AnnotationEventCallback {
|
|
218
|
+
onAnnotationCreated?: AnnotationCallback;
|
|
219
|
+
onAnnotationUpdated?: AnnotationCallback;
|
|
220
|
+
onAnnotationDeleted?: AnnotationCallback;
|
|
221
|
+
}
|
package/dist/types.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021-2025 Vue PDF Viewer
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Vue PDF Viewer
|
|
5
|
+
*
|
|
6
|
+
* Vue PDF Viewer is distributed under a Commercial License Agreement.
|
|
7
|
+
*
|
|
8
|
+
* For licensing terms and conditions, please visit:
|
|
9
|
+
* https://www.vue-pdf-viewer.dev/license-agreement
|
|
10
|
+
*
|
|
11
|
+
* For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
|
|
12
|
+
*/
|
|
1
13
|
export const getEventName = (instanceId, event) => {
|
|
2
14
|
return `${instanceId}-${event}`;
|
|
3
15
|
};
|