@anu3ev/fabric-image-editor 0.9.5 → 0.9.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/main.js +5 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -15036,11 +15036,14 @@ var Sc = {
|
|
|
15036
15036
|
}
|
|
15037
15037
|
_handleCanvasSelectionChanged() {
|
|
15038
15038
|
let { _session: e } = this;
|
|
15039
|
-
e && e.options.cancelOnSelectionClear && this.editor.canvas.getActiveObject() !== e.frame && this.cancel();
|
|
15039
|
+
e && e.options.cancelOnSelectionClear && (this._isSpacePanActive() || this.editor.canvas.getActiveObject() !== e.frame && this.cancel());
|
|
15040
|
+
}
|
|
15041
|
+
_isSpacePanActive() {
|
|
15042
|
+
return !!this.editor.listeners?.isSpacePressed;
|
|
15040
15043
|
}
|
|
15041
15044
|
_handleCanvasMouseDownBefore({ target: e }) {
|
|
15042
15045
|
let { _session: t } = this;
|
|
15043
|
-
if (!t || !t.options.cancelOnSelectionClear || e === t.frame) return;
|
|
15046
|
+
if (!t || !t.options.cancelOnSelectionClear || this._isSpacePanActive() || e === t.frame) return;
|
|
15044
15047
|
let n = t.mode === "image" ? t.target : null;
|
|
15045
15048
|
this._cancelFromPointerDown({ nextActiveObject: n });
|
|
15046
15049
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anu3ev/fabric-image-editor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "TypeScript image editor library built on FabricJS, allowing you to create instances with an integrated montage area and providing an API to modify and manage state.",
|
|
5
5
|
"module": "dist/main.js",
|
|
6
6
|
"files": [
|