@inditextech/weave-sdk 2.13.0 → 2.13.1
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/sdk.js +12 -2
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.node.js +12 -2
- package/dist/sdk.node.js.map +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
|
@@ -17999,6 +17999,16 @@ var WeaveContextMenuPlugin = class extends WeavePlugin {
|
|
|
17999
17999
|
};
|
|
18000
18000
|
});
|
|
18001
18001
|
if (this.contextMenuVisible) this.closeContextMenu();
|
|
18002
|
+
let allNodesUnlocked = true;
|
|
18003
|
+
const actUser = this.instance.getStore().getUser();
|
|
18004
|
+
for (const node of nodes) {
|
|
18005
|
+
const mutexInfo = this.instance.getNodeMutexLock(node.node?.key ?? "");
|
|
18006
|
+
if (mutexInfo && mutexInfo.user.id !== actUser.id) {
|
|
18007
|
+
allNodesUnlocked = false;
|
|
18008
|
+
break;
|
|
18009
|
+
}
|
|
18010
|
+
}
|
|
18011
|
+
if (!allNodesUnlocked) return;
|
|
18002
18012
|
if (selectionPlugin && !(eventTarget.getParent() instanceof Konva.Transformer && selectionPlugin.getSelectedNodes().length > 0)) {
|
|
18003
18013
|
selectionPlugin.setSelectedNodes([...nodes.map((node) => node.instance)]);
|
|
18004
18014
|
selectionPlugin.getHoverTransformer().nodes([]);
|
|
@@ -18006,7 +18016,7 @@ var WeaveContextMenuPlugin = class extends WeavePlugin {
|
|
|
18006
18016
|
const containerRect = stage.container().getBoundingClientRect();
|
|
18007
18017
|
const pointerPos = stage.getPointerPosition();
|
|
18008
18018
|
const relativeClickPoint = stage.getRelativePointerPosition();
|
|
18009
|
-
if (containerRect && pointerPos && relativeClickPoint) {
|
|
18019
|
+
if (containerRect && pointerPos && relativeClickPoint && allNodesUnlocked) {
|
|
18010
18020
|
const contextMenuPoint = {
|
|
18011
18021
|
x: containerRect.left + pointerPos.x + (this.config.xOffset ?? 4),
|
|
18012
18022
|
y: containerRect.top + pointerPos.y + (this.config.yOffset ?? 4)
|
|
@@ -22104,7 +22114,7 @@ var WeaveRegisterManager = class {
|
|
|
22104
22114
|
|
|
22105
22115
|
//#endregion
|
|
22106
22116
|
//#region package.json
|
|
22107
|
-
var version = "2.13.
|
|
22117
|
+
var version = "2.13.1";
|
|
22108
22118
|
|
|
22109
22119
|
//#endregion
|
|
22110
22120
|
//#region src/managers/setup.ts
|