ato-water-lib 0.0.47 → 0.0.48
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 +2 -2
- package/esm2020/lib/models/gojs-editor.model.mjs +11 -1
- package/fesm2015/ato-water-lib.mjs +12 -1
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +11 -1
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/gojs-editor.model.d.ts +3 -0
- package/package.json +1 -1
@@ -1017,6 +1017,7 @@ class AtoGojsEditorModel {
|
|
1017
1017
|
ENUM_TEMPLATES["PARAM_TABLE"] = "Param Table";
|
1018
1018
|
ENUM_TEMPLATES["MASS_BALANCE"] = "Mass Balance";
|
1019
1019
|
// Steam Type
|
1020
|
+
ENUM_TEMPLATES["STEAM_PIPELINE"] = "Steam pipeline";
|
1020
1021
|
ENUM_TEMPLATES["VALUES"] = "Valves";
|
1021
1022
|
ENUM_TEMPLATES["STEAM_TRAPS"] = "Steam Traps";
|
1022
1023
|
ENUM_TEMPLATES["PRESSURE_REGULATORS"] = "Pressure Regulator";
|
@@ -1151,6 +1152,7 @@ class AtoGojsEditorModel {
|
|
1151
1152
|
ENUM_TYPES["PLANT_CELL_INPUT_GROUP"] = "PC Input Group";
|
1152
1153
|
ENUM_TYPES["PLANT_CELL_OUTPUT_GROUP"] = "PC Output Group";
|
1153
1154
|
// Steam
|
1155
|
+
ENUM_TYPES["STEAM_PIPELINE"] = "Steam pipeline";
|
1154
1156
|
ENUM_TYPES["VALUES"] = "Valves";
|
1155
1157
|
ENUM_TYPES["STEAM_TRAPS"] = "Steam Traps";
|
1156
1158
|
ENUM_TYPES["PRESSURE_REGULATORS"] = "Pressure Regulator";
|
@@ -2221,6 +2223,10 @@ class AtoGojsEditorModel {
|
|
2221
2223
|
icon: ``,
|
2222
2224
|
},
|
2223
2225
|
// STEAM
|
2226
|
+
[ENUM_TEMPLATES.STEAM_PIPELINE]: {
|
2227
|
+
name: ENUM_TEMPLATES.STEAM_PIPELINE,
|
2228
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pipeline.svg`,
|
2229
|
+
},
|
2224
2230
|
[ENUM_TEMPLATES.VALUES]: {
|
2225
2231
|
name: ENUM_TEMPLATES.VALUES,
|
2226
2232
|
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
|
@@ -2550,6 +2556,7 @@ class AtoGojsEditorModel {
|
|
2550
2556
|
// 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
|
2551
2557
|
// 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
|
2552
2558
|
AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
|
2559
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE,
|
2553
2560
|
AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
|
2554
2561
|
AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
|
2555
2562
|
AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
|
@@ -2571,6 +2578,9 @@ class AtoGojsEditorModel {
|
|
2571
2578
|
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
|
2572
2579
|
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
|
2573
2580
|
];
|
2581
|
+
AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
|
2582
|
+
[AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
|
2583
|
+
};
|
2574
2584
|
})(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
|
2575
2585
|
|
2576
2586
|
// export const GO_LICENSE_KEY =
|
@@ -4374,6 +4384,7 @@ class AtoDefaultGojsEditor {
|
|
4374
4384
|
this.myDiagram.nodeTemplateMap.set(title, node);
|
4375
4385
|
}
|
4376
4386
|
makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
4387
|
+
var _a;
|
4377
4388
|
const self = this;
|
4378
4389
|
let node = this.$(go.Node, 'Spot', {
|
4379
4390
|
locationSpot: go.Spot.Center,
|
@@ -4415,7 +4426,7 @@ class AtoDefaultGojsEditor {
|
|
4415
4426
|
fill: 'white',
|
4416
4427
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4417
4428
|
// strokeDashArray: [5, 5],
|
4418
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
4429
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, (_a = AtoGojsEditorModel.TEMPLATE_DUPLICATE[title]) !== null && _a !== void 0 ? _a : title, {
|
4419
4430
|
row: 0,
|
4420
4431
|
margin: new go.Margin(3, 3, 10, 3),
|
4421
4432
|
maxSize: new go.Size(size.w - 20, 15),
|