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