@vue-pdf-viewer/shared 1.2.0-rc.14 → 1.2.0-rc.16
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/types.d.ts +13 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -268,6 +268,18 @@ export interface AnnotationEventCallback {
|
|
|
268
268
|
onAnnotationUpdated?: AnnotationCallback;
|
|
269
269
|
onAnnotationDeleted?: AnnotationCallback;
|
|
270
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Deleted annotation data for removal from PDF
|
|
273
|
+
* Contains full annotation data for position-based matching fallback
|
|
274
|
+
* (PDF annotations may not have /NM field)
|
|
275
|
+
*/
|
|
276
|
+
export interface DeletedAnnotationData {
|
|
277
|
+
id: string;
|
|
278
|
+
pageIndex: number;
|
|
279
|
+
annotationType: number;
|
|
280
|
+
rect?: number[];
|
|
281
|
+
quadPoints?: number[];
|
|
282
|
+
}
|
|
271
283
|
export interface AnnotationPluginApi {
|
|
272
|
-
exportToPdf: (annotations: Annotation[],
|
|
284
|
+
exportToPdf: (annotations: Annotation[], deletedAnnotations?: DeletedAnnotationData[] | string[]) => Promise<Uint8Array | null>;
|
|
273
285
|
}
|