fabric-vectr 6.7.5 → 6.7.6

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.5";
369
+ var version = "6.7.6";
370
370
 
371
371
  // use this syntax so babel plugin see this import here
372
372
  const VERSION = version;
@@ -15165,7 +15165,7 @@
15165
15165
  */
15166
15166
  findDragTargets(e) {
15167
15167
  this.targets = [];
15168
- const target = this._searchPossibleTargets(this._objects, this.getViewportPoint(e));
15168
+ const target = this._searchPossibleTargets(this.getSearchTargets(), this.getViewportPoint(e));
15169
15169
  return {
15170
15170
  target,
15171
15171
  targets: [...this.targets]
@@ -16114,7 +16114,8 @@
16114
16114
  this.searchPossibleTargets(prevActiveObjects, pointer) ||
16115
16115
  // if not found, search under active selection for a target to add
16116
16116
  // `prevActiveObjects` will be searched but we already know they will not be found
16117
- this.searchPossibleTargets(this._objects, pointer);
16117
+ this.searchPossibleTargets(this.getSearchTargets(), pointer);
16118
+
16118
16119
  // if nothing is found bail out
16119
16120
  if (!target || !target.selectable) {
16120
16121
  return false;
@@ -16123,6 +16124,7 @@
16123
16124
  if (target.group === activeObject) {
16124
16125
  // `target` is part of active selection => remove it
16125
16126
  activeObject.remove(target);
16127
+ target.setCoords();
16126
16128
  this._hoveredTarget = target;
16127
16129
  this._hoveredTargets = [...this.targets];
16128
16130
  // if after removing an object we are left with one only...