@vue-pdf-viewer/annotation 1.2.0 → 1.3.0-alpha.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/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- import type { Plugin } from "@vue-pdf-viewer/shared";
1
+ import type { Annotation, Plugin } from "@vue-pdf-viewer/shared";
2
2
  import { type VPdfAnnotationPluginOptions } from "./types";
3
- declare const VPdfAnnotationPlugin: (options?: VPdfAnnotationPluginOptions) => Plugin;
3
+ export interface AnnotationPluginApi {
4
+ exportToPdf: (annotations: Annotation[]) => Promise<Uint8Array | null>;
5
+ }
6
+ export interface AnnotationPluginInstance<PDFDocumentProxy> extends Plugin<PDFDocumentProxy> {
7
+ getApi: () => AnnotationPluginApi | null;
8
+ }
9
+ declare const VPdfAnnotationPlugin: <PDFDocumentProxy>(options?: VPdfAnnotationPluginOptions) => AnnotationPluginInstance<PDFDocumentProxy>;
4
10
  export * from "./types";
5
11
  export * from "./components/index";
6
12
  export default VPdfAnnotationPlugin;