@d-i-t-a/reader 2.4.9 → 2.4.10
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/esm/index.js +65 -57
- package/dist/esm/index.js.map +3 -3
- package/dist/reader.js +24 -24
- package/dist/reader.js.map +3 -3
- package/dist/types/reader.d.ts +8 -0
- package/dist/types/utils/EventHandler.d.ts +1 -3
- package/package.json +1 -1
package/dist/types/reader.d.ts
CHANGED
|
@@ -75,6 +75,14 @@ export default class D2Reader {
|
|
|
75
75
|
deleteAnnotation: (highlight: Annotation) => Promise<any>;
|
|
76
76
|
/** Add annotation */
|
|
77
77
|
addAnnotation: (highlight: Annotation) => Promise<any>;
|
|
78
|
+
/**
|
|
79
|
+
* Update annotation
|
|
80
|
+
*
|
|
81
|
+
* This should be used only when the add/delete of the annotation note
|
|
82
|
+
* is not directly handled in the `addAnnotation`/`addCommentToAnnotation`
|
|
83
|
+
* callback defined in the configuration of the D2Reader.load() method
|
|
84
|
+
* */
|
|
85
|
+
updateAnnotation: (highlight: Annotation) => Promise<any>;
|
|
78
86
|
/** Hide Annotation Layer */
|
|
79
87
|
hideAnnotationLayer: () => void | undefined;
|
|
80
88
|
/** Show Annotation Layer */
|