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