ato-water-lib 0.0.30 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/models/default-gojs-editor.model.mjs +20 -6
- package/fesm2015/ato-water-lib.mjs +17 -4
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +19 -5
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/default-gojs-editor.model.d.ts +7 -0
- package/package.json +1 -1
@@ -4709,6 +4709,10 @@ class AtoDefaultGojsEditor {
|
|
4709
4709
|
obj.part?.['ob']?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
|
4710
4710
|
return false;
|
4711
4711
|
}
|
4712
|
+
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
|
4713
|
+
self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
4714
|
+
return false;
|
4715
|
+
}
|
4712
4716
|
return true;
|
4713
4717
|
}).map((e) => {
|
4714
4718
|
if (ATO_ECOMPONENT_PLANT_TYPE.STEAM === obj.part?.['ob']?.topologyType &&
|
@@ -4782,11 +4786,12 @@ class AtoDefaultGojsEditor {
|
|
4782
4786
|
self.clickNewNode(e, _.merge(obj, {
|
4783
4787
|
actionMove: self.dragNewNode,
|
4784
4788
|
_dragData: {
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4789
|
+
...{
|
4790
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
4791
|
+
name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
|
4792
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
4793
|
+
},
|
4794
|
+
...self.setProFOrNewNode(self)
|
4790
4795
|
},
|
4791
4796
|
}));
|
4792
4797
|
};
|
@@ -4824,6 +4829,15 @@ class AtoDefaultGojsEditor {
|
|
4824
4829
|
cursor: 'pointer',
|
4825
4830
|
}));
|
4826
4831
|
}
|
4832
|
+
async setProFOrNewNode(self) {
|
4833
|
+
if (self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
4834
|
+
return {
|
4835
|
+
movable: false,
|
4836
|
+
isNotAllowConnect: true,
|
4837
|
+
};
|
4838
|
+
}
|
4839
|
+
return {};
|
4840
|
+
}
|
4827
4841
|
async clickNewNode(e, button) {
|
4828
4842
|
const data = button._dragData;
|
4829
4843
|
if (!data)
|