@mhamz.01/easyflow-whiteboard 2.137.0 → 2.138.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.
@@ -447,7 +447,7 @@ export default React.memo(function CanvasOverlayLayer({ tasks, documents, onTask
447
447
  left: 0,
448
448
  top: 0,
449
449
  // 2. Use translate3d for GPU performance
450
- transform: `translate3d(${screenX}px, ${screenY}px, 0) scale(${canvasZoom})`,
450
+ transform: `translate3d(${x}px, ${y}px, 0) scale(${canvasZoom})`,
451
451
  transformOrigin: "top left",
452
452
  // 3. THE FIX: Remove transition entirely during any viewport change
453
453
  // Any 'ease' during zoom causes the "shaking" behavior.
@@ -55,7 +55,7 @@ const MemoizedOverlayWrapper = React.memo(function OverlayWrapper({ tasks, docum
55
55
  setCanvasViewport({ x: vpX, y: vpY });
56
56
  };
57
57
  // Update on viewport change
58
- canvas.on("viewport:changed", updateViewport);
58
+ canvas.on("after:render", updateViewport);
59
59
  updateViewport(); // Initial sync
60
60
  return () => {
61
61
  canvas.off("viewport:changed", updateViewport);
package/dist/styles.css CHANGED
@@ -62,8 +62,6 @@
62
62
  --blur-2xl: 40px;
63
63
  --default-transition-duration: 150ms;
64
64
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
65
- --default-font-family: var(--font-sans);
66
- --default-mono-font-family: var(--font-mono);
67
65
  }
68
66
  }
69
67
  @layer utilities {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhamz.01/easyflow-whiteboard",
3
- "version": "2.137.0",
3
+ "version": "2.138.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",