seat-editor 3.6.22 → 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.
|
@@ -304,8 +304,12 @@ const LayerView = (props) => {
|
|
|
304
304
|
if (downInOutSelection || hasSelectionDownOutSelection || unSelectAll) {
|
|
305
305
|
handleUnSelectComponent();
|
|
306
306
|
}
|
|
307
|
+
if (unSelectAll) {
|
|
308
|
+
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
307
311
|
setPanningGroup(true);
|
|
308
|
-
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) {
|
|
309
313
|
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
310
314
|
return;
|
|
311
315
|
}
|
|
@@ -460,7 +464,7 @@ const LayerView = (props) => {
|
|
|
460
464
|
const rightClick = e.button === 2 && allowTooltip;
|
|
461
465
|
setTooltip({ x: newX / scale, y: newY / scale, visible: rightClick });
|
|
462
466
|
}
|
|
463
|
-
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) {
|
|
464
468
|
const allTableInSelection = (_b = dataElementSelectionGroupRef.current) === null || _b === void 0 ? void 0 : _b.map((d) => d.id);
|
|
465
469
|
const filterTableInSelection = componentProps === null || componentProps === void 0 ? void 0 : componentProps.filter((item) => {
|
|
466
470
|
var _a, _b;
|
|
@@ -501,8 +505,9 @@ const LayerView = (props) => {
|
|
|
501
505
|
}
|
|
502
506
|
(_c = svg.querySelector("#selection-box-ghost")) === null || _c === void 0 ? void 0 : _c.remove();
|
|
503
507
|
}
|
|
504
|
-
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) {
|
|
505
509
|
(_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
|
|
510
|
+
setSelectedLines(null);
|
|
506
511
|
}
|
|
507
512
|
setPanningGroup(false);
|
|
508
513
|
tableGhost.current = null;
|
|
@@ -303,8 +303,12 @@ const LayerView = (props) => {
|
|
|
303
303
|
if (downInOutSelection || hasSelectionDownOutSelection || unSelectAll) {
|
|
304
304
|
handleUnSelectComponent();
|
|
305
305
|
}
|
|
306
|
+
if (unSelectAll) {
|
|
307
|
+
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
306
310
|
setPanningGroup(true);
|
|
307
|
-
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) {
|
|
308
312
|
setTooltip((prev) => (Object.assign(Object.assign({}, prev), { visible: false })));
|
|
309
313
|
return;
|
|
310
314
|
}
|
|
@@ -459,7 +463,7 @@ const LayerView = (props) => {
|
|
|
459
463
|
const rightClick = e.button === 2 && allowTooltip;
|
|
460
464
|
setTooltip({ x: newX / scale, y: newY / scale, visible: rightClick });
|
|
461
465
|
}
|
|
462
|
-
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) {
|
|
463
467
|
const allTableInSelection = (_b = dataElementSelectionGroupRef.current) === null || _b === void 0 ? void 0 : _b.map((d) => d.id);
|
|
464
468
|
const filterTableInSelection = componentProps === null || componentProps === void 0 ? void 0 : componentProps.filter((item) => {
|
|
465
469
|
var _a, _b;
|
|
@@ -500,8 +504,9 @@ const LayerView = (props) => {
|
|
|
500
504
|
}
|
|
501
505
|
(_c = svg.querySelector("#selection-box-ghost")) === null || _c === void 0 ? void 0 : _c.remove();
|
|
502
506
|
}
|
|
503
|
-
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) {
|
|
504
508
|
(_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
|
|
509
|
+
setSelectedLines(null);
|
|
505
510
|
}
|
|
506
511
|
setPanningGroup(false);
|
|
507
512
|
tableGhost.current = null;
|