Add generalFunctions dependency and implement basic measurement child registration in nodeClass
This commit is contained in:
@@ -48,6 +48,12 @@ class nodeClass {
|
||||
case "Dispersion":
|
||||
this.reactor.setDispersion = msg;
|
||||
break;
|
||||
case 'registerChild':
|
||||
// Register this node as a child of the parent node
|
||||
const childId = msg.payload;
|
||||
const childObj = this.RED.nodes.getNode(childId);
|
||||
this.reactor.childRegistrationUtils.registerChild(childObj.source, msg.positionVsParent);
|
||||
break;
|
||||
default:
|
||||
console.log("Unknown topic: " + msg.topic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user