@deepnoid/canvas 0.1.63 → 0.1.64

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.
@@ -58,7 +58,6 @@ export declare class AnnotationEngine {
58
58
  private drawAnnotations;
59
59
  getSelectedAnnotation(): Annotation | null;
60
60
  setSelectedAnnotation(target: Annotation | null): void;
61
- clearAnnotations(): void;
62
61
  getPointerRenderState(): {
63
62
  mousePoint: import("../types").Point | null;
64
63
  } | null;
@@ -194,10 +194,6 @@ export class AnnotationEngine {
194
194
  this.drawAnnotationsCanvas();
195
195
  }
196
196
  }
197
- clearAnnotations() {
198
- this.annotations = [];
199
- this.clearCanvas(this.annotationsCanvas);
200
- }
201
197
  // ----------------- Interaction -----------------
202
198
  getPointerRenderState() {
203
199
  return (this.interactionController
@@ -38,8 +38,6 @@ const AnnotationCanvas = ({ image, annotations = [], setAnnotations, options, dr
38
38
  const imageLoadingRef = useRef(false);
39
39
  useEffect(() => {
40
40
  imageLoadingRef.current = true;
41
- if (engineRef.current)
42
- engineRef.current.clearAnnotations();
43
41
  if (!image?.trim()) {
44
42
  engineRef.current?.destroy();
45
43
  engineRef.current = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/canvas",
3
- "version": "0.1.63",
3
+ "version": "0.1.64",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",