@vue-pdf-viewer/viewer 3.2.0-rc.1 → 3.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 +5595 -5459
- package/dist/index.umd.cjs +24 -24
- package/dist/types/utils/types.d.ts +6 -0
- package/package.json +2 -2
|
@@ -667,6 +667,12 @@ export interface FreeTextAppearance {
|
|
|
667
667
|
fontName: string;
|
|
668
668
|
fontSize: number;
|
|
669
669
|
}
|
|
670
|
+
export type AnnotationCallback<T = any> = (data: T) => void;
|
|
671
|
+
export interface AnnotationCallbacks {
|
|
672
|
+
onAnnotationCreated?: AnnotationCallback<Annotation>;
|
|
673
|
+
onAnnotationUpdated?: AnnotationCallback<Annotation>;
|
|
674
|
+
onAnnotationDeleted?: AnnotationCallback<Annotation>;
|
|
675
|
+
}
|
|
670
676
|
export interface AnnotationFreeText extends Annotation {
|
|
671
677
|
defaultAppearanceData?: FreeTextAppearance;
|
|
672
678
|
pageIndex?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0-beta.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"prepare": "husky"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@vue-pdf-viewer/shared": "1.1.0-rc.
|
|
62
|
+
"@vue-pdf-viewer/shared": "1.1.0-rc.2",
|
|
63
63
|
"@vueuse/core": "^13.6.0",
|
|
64
64
|
"pdfjs-dist": "4.10.38",
|
|
65
65
|
"reka-ui": "^2.4.1",
|