@vue-pdf-viewer/viewer 3.0.0-alpha.24 → 3.0.0-alpha.26

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.
@@ -100,6 +100,9 @@ export declare const useAnnotationStamp: (props: UseAnnotationStampProps) => {
100
100
  readonly height: number;
101
101
  readonly width: number;
102
102
  } | undefined;
103
+ width?: number | undefined;
104
+ height?: number | undefined;
105
+ isSvg?: boolean | undefined;
103
106
  annotationType: number;
104
107
  color?: {
105
108
  [x: number]: number;
@@ -333,6 +336,9 @@ export declare const useAnnotationStamp: (props: UseAnnotationStampProps) => {
333
336
  readonly height: number;
334
337
  readonly width: number;
335
338
  } | undefined;
339
+ width?: number | undefined;
340
+ height?: number | undefined;
341
+ isSvg?: boolean | undefined;
336
342
  annotationType: number;
337
343
  color?: {
338
344
  [x: number]: number;
@@ -68,5 +68,5 @@ export declare const getGlobalStorageEntries: () => unknown[];
68
68
  * @param value - The annotation data to serialize
69
69
  * @returns A serializable version of the annotation data
70
70
  */
71
- export declare function createSerializableAnnotation(value: any): any;
71
+ export declare function createSerializableAnnotation(value: any): Promise<any>;
72
72
  export default function useAnnotationStorage(): UseAnnotationStorageReturn;
@@ -711,6 +711,9 @@ export interface AnnotationStamp extends Annotation {
711
711
  elementRect?: ElementRect;
712
712
  bitmapId?: string;
713
713
  bitmap?: ImageData;
714
+ width?: number;
715
+ height?: number;
716
+ isSvg?: boolean;
714
717
  }
715
718
  export interface FreeTextAppearance {
716
719
  fontColor: Uint8ClampedArray;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "3.0.0-alpha.24",
4
+ "version": "3.0.0-alpha.26",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",