seat-editor 3.6.46 → 3.6.48

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.
@@ -17,7 +17,7 @@ export default function GraphView() {
17
17
  double: false,
18
18
  selection: false,
19
19
  selectNode: false,
20
- connectingNode: true,
20
+ connectingNode: false,
21
21
  dragTransferTable: false,
22
22
  });
23
23
  const [isSelectNode, setIsSelectNode] = useState(false);
@@ -16,7 +16,7 @@ export default function GraphView() {
16
16
  double: false,
17
17
  selection: false,
18
18
  selectNode: false,
19
- connectingNode: true,
19
+ connectingNode: false,
20
20
  dragTransferTable: false,
21
21
  });
22
22
  const [isSelectNode, setIsSelectNode] = useState(false);
@@ -77,7 +77,7 @@ export const renderElements = (elementEditor, mappingKey, tableMatchKey, connect
77
77
  //bikin ed.to di merge dengan ed.from
78
78
  )) === null || _a === void 0 ? void 0 : _a.map((edge) => edge.to === (connecting === null || connecting === void 0 ? void 0 : connecting.fromId) ? edge.from : edge.to)) || [];
79
79
  return elementEditor.map((editorItem) => {
80
- var _a, _b;
80
+ var _a, _b, _c, _d;
81
81
  const isUsingMapping = mappingKey &&
82
82
  typeof editorItem[mappingKey] === "object" &&
83
83
  editorItem[mappingKey] !== null;
@@ -94,9 +94,13 @@ export const renderElements = (elementEditor, mappingKey, tableMatchKey, connect
94
94
  let seatFill = finalProps === null || finalProps === void 0 ? void 0 : finalProps.seatFill;
95
95
  if (findIndexSelection !== undefined && settingSelectionGroup) {
96
96
  fill = groupSelection === null || groupSelection === void 0 ? void 0 : groupSelection.colorGroupSelection[findIndexSelection];
97
+ seatFill = groupSelection === null || groupSelection === void 0 ? void 0 : groupSelection.colorGroupSelection[findIndexSelection];
98
+ stroke = groupSelection === null || groupSelection === void 0 ? void 0 : groupSelection.colorGroupSelection[findIndexSelection];
97
99
  }
98
100
  if ((_a = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _a === void 0 ? void 0 : _a.fill) {
99
101
  fill = (_b = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _b === void 0 ? void 0 : _b.fill;
102
+ seatFill = (_c = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _c === void 0 ? void 0 : _c.fill;
103
+ stroke = (_d = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _d === void 0 ? void 0 : _d.fill;
100
104
  }
101
105
  if ((connecting === null || connecting === void 0 ? void 0 : connecting.fromId) == (finalProps === null || finalProps === void 0 ? void 0 : finalProps.id)) {
102
106
  fill = "#F8F5FF";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.6.46",
3
+ "version": "3.6.48",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",