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.
@@ -8903,7 +8903,7 @@ class AtoDefaultGojsEditor {
8903
8903
  stroke: '#DC8FA9',
8904
8904
  font: 'bold 9pt Arial',
8905
8905
  textAlign: 'left',
8906
- }, new go.Binding('text', '', (x) => x?.group_text), new go.Binding('stroke', '', (x) => x?.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => x?.isCanSelectComponent ?? false), this.$(go.TextBlock, '+Select Component', {
8906
+ }, new go.Binding('text', '', (x) => x?.group_text), new go.Binding('stroke', '', (x) => x?.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => x?.isCanSelectComponent ?? false), this.$(go.TextBlock, '+Import Component', {
8907
8907
  margin: new go.Margin(4, 0, 0, 0),
8908
8908
  stroke: '#3863A6',
8909
8909
  font: 'bold 9pt Arial',
@@ -9352,8 +9352,14 @@ class AtoDefaultGojsEditor {
9352
9352
  this.myDiagram.commitTransaction('add group node');
9353
9353
  }
9354
9354
  deleteNode(e) {
9355
+ // e.diagram.startTransaction('Delete group node');
9356
+ // e.diagram.removeParts(e.diagram.selection);
9357
+ // e.diagram.commitTransaction('Delete group node');
9355
9358
  e.diagram.startTransaction('Delete group node');
9356
- e.diagram.removeParts(e.diagram.selection);
9359
+ const deletableParts = e.diagram.selection.filter((part) => {
9360
+ return part.data.deletable !== false;
9361
+ });
9362
+ e.diagram.removeParts(deletableParts);
9357
9363
  e.diagram.commitTransaction('Delete group node');
9358
9364
  }
9359
9365
  deleteNodeOnDiagram(e) {