updated new method

This commit is contained in:
znetsixe
2025-06-12 17:05:28 +02:00
parent a97326af08
commit c4f16fb36d
4 changed files with 29 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
<script type="module">
import * as menuUtils from "/generalFunctions/helper/menuUtils.js";
<script src="measurement/resources/menuUtils.js"></script>
<script>
RED.nodes.registerType("measurement", {
category: "digital twin",
@@ -48,6 +48,12 @@
const node = this;
// Use the namespaced version instead of global
const menuUtils = window.EVOLV.nodes.measurement.utils.menuUtils;
const helpers = window.EVOLV.nodes.measurement.utils.helpers;
//this needs to live somewhere and for now we add it to every node file for simplicity
const projecSettingstURL = "http://localhost:1880/generalFunctions/settings/projectSettings.json";
// Define UI html elements
const elements = {
// Basic fields
@@ -72,8 +78,7 @@
unit: document.getElementById("node-input-unit"),
};
//this needs to live somewhere and for now we add it to every node file for simplicity
const projecSettingstURL = "http://localhost:1880/generalFunctions/settings/projectSettings.json";
try{