@nasser-sw/fabric 7.0.1-beta23 → 7.0.1-beta24

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/index.mjs CHANGED
@@ -354,7 +354,7 @@ class Cache {
354
354
  }
355
355
  const cache = new Cache();
356
356
 
357
- var version = "7.0.1-beta22";
357
+ var version = "7.0.1-beta23";
358
358
 
359
359
  // use this syntax so babel plugin see this import here
360
360
  const VERSION = version;
@@ -31012,13 +31012,12 @@ class Frame extends Group {
31012
31012
  });
31013
31013
  this._contentImage.dirty = true;
31014
31014
 
31015
- // Keep clipPath reference for the overlay effect rendering
31016
- // NOTE: We do NOT set this.clipPath = undefined because that triggers
31017
- // coordinate recalculations in Fabric that behave differently with
31018
- // viewport transforms (autoZoom), causing visual position jumps.
31019
- // Instead, we override drawObject() to skip clipPath rendering in edit mode.
31015
+ // Store and remove clipPath to show full image
31016
+ // We must actually remove it (not just skip rendering) because Fabric's
31017
+ // rendering pipeline checks clipPath existence in multiple places
31020
31018
  if (this.clipPath) {
31021
31019
  this._editModeClipPath = this.clipPath;
31020
+ this.clipPath = undefined;
31022
31021
  }
31023
31022
 
31024
31023
  // Add constraint handlers for moving/scaling
@@ -31297,8 +31296,11 @@ class Frame extends Group {
31297
31296
  objectCaching: true
31298
31297
  });
31299
31298
 
31300
- // Clear edit mode clip path reference (clipPath was never removed, just skipped during render)
31301
- this._editModeClipPath = undefined;
31299
+ // Restore clip path
31300
+ if (this._editModeClipPath) {
31301
+ this.clipPath = this._editModeClipPath;
31302
+ this._editModeClipPath = undefined;
31303
+ }
31302
31304
 
31303
31305
  // Restore caching setting
31304
31306
  if (this._editModeObjectCaching !== undefined) {