seat-editor 3.6.9 → 3.6.10
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.
|
@@ -16,18 +16,18 @@ const LayerView = (props) => {
|
|
|
16
16
|
const { componentProps, extraComponentProps, onSelectComponent, onDoubleClick, mappingKey, statusKey, defaultBackground, defaultBoundingBox,
|
|
17
17
|
// iconTags,
|
|
18
18
|
tooltipProps, onRightClick, allowTooltip = true, tableMatchKey, eventMatchTable, ghostAttributes, onDrop, onSwitch, refs, privilegedTags, loadingRender, actionPrivileged = {
|
|
19
|
-
select:
|
|
20
|
-
move:
|
|
21
|
-
switch:
|
|
22
|
-
drop:
|
|
23
|
-
rightClick:
|
|
24
|
-
double:
|
|
25
|
-
selection:
|
|
26
|
-
grapConnection:
|
|
27
|
-
viewGraph:
|
|
28
|
-
dragTable:
|
|
29
|
-
selectNode:
|
|
30
|
-
connectingNode:
|
|
19
|
+
select: false,
|
|
20
|
+
move: false,
|
|
21
|
+
switch: false,
|
|
22
|
+
drop: false,
|
|
23
|
+
rightClick: false,
|
|
24
|
+
double: false,
|
|
25
|
+
selection: false,
|
|
26
|
+
grapConnection: false,
|
|
27
|
+
viewGraph: false,
|
|
28
|
+
dragTable: false,
|
|
29
|
+
selectNode: false,
|
|
30
|
+
connectingNode: false
|
|
31
31
|
}, onMakeSelection, } = props;
|
|
32
32
|
const widthTooltip = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.minWidth) || 168;
|
|
33
33
|
const tableGhost = useRef(null);
|
|
@@ -15,18 +15,18 @@ const LayerView = (props) => {
|
|
|
15
15
|
const { componentProps, extraComponentProps, onSelectComponent, onDoubleClick, mappingKey, statusKey, defaultBackground, defaultBoundingBox,
|
|
16
16
|
// iconTags,
|
|
17
17
|
tooltipProps, onRightClick, allowTooltip = true, tableMatchKey, eventMatchTable, ghostAttributes, onDrop, onSwitch, refs, privilegedTags, loadingRender, actionPrivileged = {
|
|
18
|
-
select:
|
|
19
|
-
move:
|
|
20
|
-
switch:
|
|
21
|
-
drop:
|
|
22
|
-
rightClick:
|
|
23
|
-
double:
|
|
24
|
-
selection:
|
|
25
|
-
grapConnection:
|
|
26
|
-
viewGraph:
|
|
27
|
-
dragTable:
|
|
28
|
-
selectNode:
|
|
29
|
-
connectingNode:
|
|
18
|
+
select: false,
|
|
19
|
+
move: false,
|
|
20
|
+
switch: false,
|
|
21
|
+
drop: false,
|
|
22
|
+
rightClick: false,
|
|
23
|
+
double: false,
|
|
24
|
+
selection: false,
|
|
25
|
+
grapConnection: false,
|
|
26
|
+
viewGraph: false,
|
|
27
|
+
dragTable: false,
|
|
28
|
+
selectNode: false,
|
|
29
|
+
connectingNode: false
|
|
30
30
|
}, onMakeSelection, } = props;
|
|
31
31
|
const widthTooltip = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.minWidth) || 168;
|
|
32
32
|
const tableGhost = useRef(null);
|
|
@@ -69,7 +69,7 @@ export const buildPath = (points) => {
|
|
|
69
69
|
// ─── renderElements ──────────────────────────────────────────────────────────
|
|
70
70
|
export const renderElements = (elementEditor, mappingKey, tableMatchKey, connecting) => {
|
|
71
71
|
return elementEditor.map((editorItem) => {
|
|
72
|
-
var _a;
|
|
72
|
+
var _a, _b;
|
|
73
73
|
const isUsingMapping = mappingKey &&
|
|
74
74
|
typeof editorItem[mappingKey] === "object" &&
|
|
75
75
|
editorItem[mappingKey] !== null;
|
|
@@ -80,7 +80,7 @@ export const renderElements = (elementEditor, mappingKey, tableMatchKey, connect
|
|
|
80
80
|
if (hasKey)
|
|
81
81
|
return item.value == (editorItem === null || editorItem === void 0 ? void 0 : editorItem[item.key]);
|
|
82
82
|
});
|
|
83
|
-
const fill = (connecting === null || connecting === void 0 ? void 0 : connecting.fromId) == (finalProps === null || finalProps === void 0 ? void 0 : finalProps.id) ? "#7239EA" : (_a = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties.fill) !== null &&
|
|
83
|
+
const fill = (connecting === null || connecting === void 0 ? void 0 : connecting.fromId) == (finalProps === null || finalProps === void 0 ? void 0 : finalProps.id) ? "#7239EA" : (_b = (_a = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : finalProps === null || finalProps === void 0 ? void 0 : finalProps.fill;
|
|
84
84
|
finalProps = Object.assign(Object.assign(Object.assign({}, finalProps), tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties), { fill: fill, className: tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.className, element: tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.element });
|
|
85
85
|
}
|
|
86
86
|
return finalProps;
|