ato-water-lib 0.0.140 → 0.0.142

Sign up to get free protection for your applications and to get access to all the features.
@@ -7767,7 +7767,7 @@ class AtoDefaultGojsEditor {
7767
7767
  stroke: '#DC8FA9',
7768
7768
  font: 'bold 9pt Arial',
7769
7769
  textAlign: 'left',
7770
- }, new go.Binding('text', '', (x) => x === null || x === void 0 ? void 0 : x.group_text), new go.Binding('stroke', '', (x) => x === null || x === void 0 ? void 0 : x.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isCanSelectComponent) !== null && _a !== void 0 ? _a : false; }), this.$(go.TextBlock, '+Select Component', {
7770
+ }, new go.Binding('text', '', (x) => x === null || x === void 0 ? void 0 : x.group_text), new go.Binding('stroke', '', (x) => x === null || x === void 0 ? void 0 : x.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isCanSelectComponent) !== null && _a !== void 0 ? _a : false; }), this.$(go.TextBlock, '+Import Component', {
7771
7771
  margin: new go.Margin(4, 0, 0, 0),
7772
7772
  stroke: '#3863A6',
7773
7773
  font: 'bold 9pt Arial',
@@ -8200,8 +8200,14 @@ class AtoDefaultGojsEditor {
8200
8200
  this.myDiagram.commitTransaction('add group node');
8201
8201
  }
8202
8202
  deleteNode(e) {
8203
+ // e.diagram.startTransaction('Delete group node');
8204
+ // e.diagram.removeParts(e.diagram.selection);
8205
+ // e.diagram.commitTransaction('Delete group node');
8203
8206
  e.diagram.startTransaction('Delete group node');
8204
- e.diagram.removeParts(e.diagram.selection);
8207
+ const deletableParts = e.diagram.selection.filter((part) => {
8208
+ return part.data.deletable !== false;
8209
+ });
8210
+ e.diagram.removeParts(deletableParts);
8205
8211
  e.diagram.commitTransaction('Delete group node');
8206
8212
  }
8207
8213
  deleteNodeOnDiagram(e) {