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
@@ -4736,6 +4736,10 @@ class AtoDefaultGojsEditor {
|
|
4736
4736
|
((_l = (_k = obj.part) === null || _k === void 0 ? void 0 : _k['ob']) === null || _l === void 0 ? void 0 : _l.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
|
4737
4737
|
return false;
|
4738
4738
|
}
|
4739
|
+
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
|
4740
|
+
self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
4741
|
+
return false;
|
4742
|
+
}
|
4739
4743
|
return true;
|
4740
4744
|
}).map((e) => {
|
4741
4745
|
var _a, _b, _c, _d;
|
@@ -4806,13 +4810,11 @@ class AtoDefaultGojsEditor {
|
|
4806
4810
|
onClickFn = () => {
|
4807
4811
|
self.clickNewNode(e, _.merge(obj, {
|
4808
4812
|
actionMove: self.dragNewNode,
|
4809
|
-
_dragData: {
|
4813
|
+
_dragData: Object.assign({
|
4810
4814
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
4811
4815
|
name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
|
4812
4816
|
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
4813
|
-
|
4814
|
-
isNotAllowConnect: self.plantSatus === ATO_EPlantType.BASIC_PLANT ? true : null,
|
4815
|
-
},
|
4817
|
+
}, self.setProFOrNewNode(self)),
|
4816
4818
|
}));
|
4817
4819
|
};
|
4818
4820
|
break;
|
@@ -4846,6 +4848,17 @@ class AtoDefaultGojsEditor {
|
|
4846
4848
|
cursor: 'pointer',
|
4847
4849
|
}));
|
4848
4850
|
}
|
4851
|
+
setProFOrNewNode(self) {
|
4852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
4853
|
+
if (self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
4854
|
+
return {
|
4855
|
+
movable: false,
|
4856
|
+
isNotAllowConnect: true,
|
4857
|
+
};
|
4858
|
+
}
|
4859
|
+
return {};
|
4860
|
+
});
|
4861
|
+
}
|
4849
4862
|
clickNewNode(e, button) {
|
4850
4863
|
var _a;
|
4851
4864
|
return __awaiter(this, void 0, void 0, function* () {
|