@mhamz.01/easyflow-whiteboard 2.139.0 → 2.140.0

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.
@@ -5,7 +5,7 @@ import { classRegistry } from "fabric";
5
5
  import { useWhiteboardStore } from "../../store/whiteboard-store";
6
6
  import WhiteboardToolbar from "../toolbar/whiteboard-toolbar";
7
7
  import ToolOptionsPanel from "../toolbar/tooloptions-panel";
8
- import CanvasOverlayLayer from "../node/custom-node-overlay-fix";
8
+ import CanvasOverlayLayer from "../node/custom-node-overlay-layer";
9
9
  import ZoomControls from "../zoomcontrol/zoom-control";
10
10
  import { Frame } from "../../lib/fabric-frame";
11
11
  // Import all hooks
@@ -58,7 +58,7 @@ const MemoizedOverlayWrapper = React.memo(function OverlayWrapper({ tasks, docum
58
58
  canvas.on("after:render", updateViewport);
59
59
  updateViewport(); // Initial sync
60
60
  return () => {
61
- canvas.off("viewport:changed", updateViewport);
61
+ canvas.off("after:render", updateViewport); // ← was "viewport:changed", must match registration
62
62
  };
63
63
  }, [fabricCanvasRef, canvasReady]);
64
64
  return (_jsx(CanvasOverlayLayer, { tasks: tasks, documents: documents, onTasksUpdate: onTasksUpdate, onDocumentsUpdate: onDocumentsUpdate, canvasZoom: canvasZoom, canvasViewport: canvasViewport, selectionBox: selectionBox, selectedCanvasObjects: selectedCanvasObjects, fabricCanvas: fabricCanvasRef, canvasReady: canvasReady }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhamz.01/easyflow-whiteboard",
3
- "version": "2.139.0",
3
+ "version": "2.140.0",
4
4
  "description": "A feature-rich whiteboard component built with Fabric.js and React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",