From 5a575a29fe7cc1e2ad8a74d862e64012d0e805a3 Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Thu, 20 Nov 2025 12:15:46 +0100 Subject: [PATCH] updated pumpingstation --- pumpingStation.html | 13 +++++++ src/nodeClass.js | 9 ++--- src/specificClass.js | 88 ++++++++++++++++---------------------------- 3 files changed, 47 insertions(+), 63 deletions(-) diff --git a/pumpingStation.html b/pumpingStation.html index 8c56986..6103316 100644 --- a/pumpingStation.html +++ b/pumpingStation.html @@ -24,6 +24,7 @@ heightInlet: { value: 0.8 }, // m, centre of inlet pipe above floor heightOutlet: { value: 0.2 }, // m, centre of outlet pipe above floor heightOverflow: { value: 0.9 }, // m, overflow elevation + minHeightBasedOn: { value: "outlet" }, // basis for minimum height check: inlet or outlet // Advanced reference information refHeight: { value: "NAP" }, // reference height @@ -86,6 +87,10 @@ refHeightEl.value = this.refHeight || "NAP"; } + const minHeightBasedOnEl = document.getElementById("node-input-minHeightBasedOn"); + if (minHeightBasedOnEl) { + minHeightBasedOnEl.value = this.minHeightBasedOn; + } //------------------- END OF CUSTOM config UI ELEMENTS ------------------- // }, @@ -98,6 +103,7 @@ //node specific node.refHeight = document.getElementById("node-input-refHeight").value || "NAP"; + node.minHeightBasedOn = document.getElementById("node-input-minHeightBasedOn").value || "outlet"; node.simulator = document.getElementById("node-input-simulator").checked; ["basinVolume","basinHeight","heightInlet","heightOutlet","heightOverflow","basinBottomRef"] @@ -151,6 +157,13 @@
+
+ + +