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.
package/dist/index.js CHANGED
@@ -366,7 +366,7 @@
366
366
  }
367
367
  const cache = new Cache();
368
368
 
369
- var version = "6.7.8";
369
+ var version = "6.7.9";
370
370
 
371
371
  // use this syntax so babel plugin see this import here
372
372
  const VERSION = version;
@@ -3081,7 +3081,7 @@
3081
3081
  if (!isTextObject(instance) || !instance.path) {
3082
3082
  continue;
3083
3083
  }
3084
- let pathId = `TEXTPATH_${uid()}`;
3084
+ let pathId = `TEXTPATH_${instance.id}`;
3085
3085
  let pathMarkup = instance.path._toSVG();
3086
3086
  let index = pathMarkup.indexOf('COMMON_PARTS');
3087
3087
  // 加上id, 和路径偏移
@@ -14204,7 +14204,9 @@
14204
14204
  activeObject = this._activeObject,
14205
14205
  aObjects = this.getActiveObjects();
14206
14206
  this.targets = [];
14207
- if (activeObject && aObjects.length >= 1 && !this._fixedSearchTargets) {
14207
+
14208
+ // valid _fixedSearchTargets is null or _fixedSearchTargets includes activeObject
14209
+ if (activeObject && aObjects.length >= 1 && (!this._fixedSearchTargets || this._fixedSearchTargets.includes(activeObject))) {
14208
14210
  if (activeObject.findControl(pointer, isTouchEvent(e))) {
14209
14211
  // if we hit the corner of the active object, let's return that.
14210
14212
  return activeObject;