seat-editor 3.6.23 → 3.6.24
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.
|
@@ -309,7 +309,7 @@ const LayerView = (props) => {
|
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
311
|
setPanningGroup(true);
|
|
312
|
-
if (makeSelection && (props === null || props === void 0 ? void 0 : props.allowTooltip) && (tooltip === null || tooltip === void 0 ? void 0 : tooltip.visible)) {
|
|
312
|
+
if (makeSelection && (props === null || props === void 0 ? void 0 : props.allowTooltip) && (tooltip === null || tooltip === void 0 ? void 0 : tooltip.visible) && e.button !== 2) {
|
|
313
313
|
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
@@ -464,7 +464,7 @@ const LayerView = (props) => {
|
|
|
464
464
|
const rightClick = e.button === 2 && allowTooltip;
|
|
465
465
|
setTooltip({ x: newX / scale, y: newY / scale, visible: rightClick });
|
|
466
466
|
}
|
|
467
|
-
if (makeSelection && ((_a = dataElementSelectionGroupRef.current) === null || _a === void 0 ? void 0 : _a.length) > 0 && e.button === 0) {
|
|
467
|
+
if (makeSelection && ((_a = dataElementSelectionGroupRef.current) === null || _a === void 0 ? void 0 : _a.length) > 0 && e.button === 0 && !targetSelectionGroup) {
|
|
468
468
|
const allTableInSelection = (_b = dataElementSelectionGroupRef.current) === null || _b === void 0 ? void 0 : _b.map((d) => d.id);
|
|
469
469
|
const filterTableInSelection = componentProps === null || componentProps === void 0 ? void 0 : componentProps.filter((item) => {
|
|
470
470
|
var _a, _b;
|
|
@@ -505,8 +505,9 @@ const LayerView = (props) => {
|
|
|
505
505
|
}
|
|
506
506
|
(_c = svg.querySelector("#selection-box-ghost")) === null || _c === void 0 ? void 0 : _c.remove();
|
|
507
507
|
}
|
|
508
|
-
if (makeSelection && ((_d = dataElementSelectionGroupRef.current) === null || _d === void 0 ? void 0 : _d.length) === 0) {
|
|
508
|
+
if (makeSelection && ((_d = dataElementSelectionGroupRef.current) === null || _d === void 0 ? void 0 : _d.length) === 0 && e.button === 0 && targetSelectionGroup) {
|
|
509
509
|
(_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
|
|
510
|
+
setSelectedLines(null);
|
|
510
511
|
}
|
|
511
512
|
setPanningGroup(false);
|
|
512
513
|
tableGhost.current = null;
|
|
@@ -308,7 +308,7 @@ const LayerView = (props) => {
|
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
setPanningGroup(true);
|
|
311
|
-
if (makeSelection && (props === null || props === void 0 ? void 0 : props.allowTooltip) && (tooltip === null || tooltip === void 0 ? void 0 : tooltip.visible)) {
|
|
311
|
+
if (makeSelection && (props === null || props === void 0 ? void 0 : props.allowTooltip) && (tooltip === null || tooltip === void 0 ? void 0 : tooltip.visible) && e.button !== 2) {
|
|
312
312
|
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
@@ -463,7 +463,7 @@ const LayerView = (props) => {
|
|
|
463
463
|
const rightClick = e.button === 2 && allowTooltip;
|
|
464
464
|
setTooltip({ x: newX / scale, y: newY / scale, visible: rightClick });
|
|
465
465
|
}
|
|
466
|
-
if (makeSelection && ((_a = dataElementSelectionGroupRef.current) === null || _a === void 0 ? void 0 : _a.length) > 0 && e.button === 0) {
|
|
466
|
+
if (makeSelection && ((_a = dataElementSelectionGroupRef.current) === null || _a === void 0 ? void 0 : _a.length) > 0 && e.button === 0 && !targetSelectionGroup) {
|
|
467
467
|
const allTableInSelection = (_b = dataElementSelectionGroupRef.current) === null || _b === void 0 ? void 0 : _b.map((d) => d.id);
|
|
468
468
|
const filterTableInSelection = componentProps === null || componentProps === void 0 ? void 0 : componentProps.filter((item) => {
|
|
469
469
|
var _a, _b;
|
|
@@ -504,8 +504,9 @@ const LayerView = (props) => {
|
|
|
504
504
|
}
|
|
505
505
|
(_c = svg.querySelector("#selection-box-ghost")) === null || _c === void 0 ? void 0 : _c.remove();
|
|
506
506
|
}
|
|
507
|
-
if (makeSelection && ((_d = dataElementSelectionGroupRef.current) === null || _d === void 0 ? void 0 : _d.length) === 0) {
|
|
507
|
+
if (makeSelection && ((_d = dataElementSelectionGroupRef.current) === null || _d === void 0 ? void 0 : _d.length) === 0 && e.button === 0 && targetSelectionGroup) {
|
|
508
508
|
(_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
|
|
509
|
+
setSelectedLines(null);
|
|
509
510
|
}
|
|
510
511
|
setPanningGroup(false);
|
|
511
512
|
tableGhost.current = null;
|