fabric-vectr 6.7.5 → 6.7.7
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 +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/dist/index.node.cjs +9 -7
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +9 -7
- package/dist/index.node.mjs.map +1 -1
- package/dist/package.json.min.mjs +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/canvas/Canvas.min.mjs +1 -1
- package/dist/src/canvas/Canvas.min.mjs.map +1 -1
- package/dist/src/canvas/Canvas.mjs +8 -6
- package/dist/src/canvas/Canvas.mjs.map +1 -1
- package/dist-extensions/src/canvas/Canvas.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/canvas/Canvas.ts +8 -6
package/dist/index.js
CHANGED
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
}
|
|
367
367
|
const cache = new Cache();
|
|
368
368
|
|
|
369
|
-
var version = "6.7.
|
|
369
|
+
var version = "6.7.7";
|
|
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.
|
|
15168
|
+
const target = this._searchPossibleTargets(this.getSearchTargets(), this.getViewportPoint(e));
|
|
15169
15169
|
return {
|
|
15170
15170
|
target,
|
|
15171
15171
|
targets: [...this.targets]
|
|
@@ -16110,11 +16110,12 @@
|
|
|
16110
16110
|
if (target === activeObject) {
|
|
16111
16111
|
const pointer = this.getViewportPoint(e);
|
|
16112
16112
|
target =
|
|
16113
|
-
// first search active
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
//
|
|
16117
|
-
this.searchPossibleTargets(
|
|
16113
|
+
// first search under active selection for a target to add
|
|
16114
|
+
// will search from top level to bottom
|
|
16115
|
+
this.searchPossibleTargets(this.getSearchTargets(), pointer) ||
|
|
16116
|
+
// if not found, search active objects for a target to remove
|
|
16117
|
+
this.searchPossibleTargets(prevActiveObjects, 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...
|