fabric-vectr 6.7.8 → 6.7.9

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.
@@ -416,7 +416,7 @@ class Cache {
416
416
  }
417
417
  const cache = new Cache();
418
418
 
419
- var version = "6.7.8";
419
+ var version = "6.7.9";
420
420
 
421
421
  // use this syntax so babel plugin see this import here
422
422
  const VERSION = version;
@@ -3131,7 +3131,7 @@ let StaticCanvas$1 = class StaticCanvas extends createCollectionMixin(CommonMeth
3131
3131
  if (!isTextObject(instance) || !instance.path) {
3132
3132
  continue;
3133
3133
  }
3134
- let pathId = `TEXTPATH_${uid()}`;
3134
+ let pathId = `TEXTPATH_${instance.id}`;
3135
3135
  let pathMarkup = instance.path._toSVG();
3136
3136
  let index = pathMarkup.indexOf('COMMON_PARTS');
3137
3137
  // 加上id, 和路径偏移
@@ -14254,7 +14254,9 @@ class SelectableCanvas extends StaticCanvas$1 {
14254
14254
  activeObject = this._activeObject,
14255
14255
  aObjects = this.getActiveObjects();
14256
14256
  this.targets = [];
14257
- if (activeObject && aObjects.length >= 1 && !this._fixedSearchTargets) {
14257
+
14258
+ // valid _fixedSearchTargets is null or _fixedSearchTargets includes activeObject
14259
+ if (activeObject && aObjects.length >= 1 && (!this._fixedSearchTargets || this._fixedSearchTargets.includes(activeObject))) {
14258
14260
  if (activeObject.findControl(pointer, isTouchEvent(e))) {
14259
14261
  // if we hit the corner of the active object, let's return that.
14260
14262
  return activeObject;