Objects
+Components
Connection Mode
+Cable Mode
Object Properties
- - - - - - -Object Info
-Type: ${obj.type}
-ID: ${obj.id}
-Position: (${Math.round( - obj.x - )}, ${Math.round(obj.y)})
-Inputs: ${obj.connections.inputs.length}
-Outputs: ${ - obj.connections.outputs.length - }
-Actions
- -Transformer Properties
+ + + + + + + + + + + + +Transformer Info
+Type: Transformer
+ID: ${obj.id}
+Position: (${Math.round(obj.x)}, ${Math.round(obj.y)})
+Ratio: ${obj.data.upperVoltage}V / ${ + obj.data.bottomVoltage + }V
+Outputs: ${obj.connections.outputs.length}/1
+Actions
+ +Node Properties
+ + + + + + + + + ${ + obj.data.nodeType !== "pole" + ? ` + + + ` + : "" + } + + +Node Info
+Type: ${ + obj.data.nodeType === "cable_box" + ? "Cable Box" + : obj.data.nodeType === "pole" + ? "Pole" + : "End Connection" + }
+ID: ${obj.id}
+Position: (${Math.round(obj.x)}, ${Math.round(obj.y)})
+ ${ + obj.data.nodeType !== "pole" && obj.data.powerKW > 0 + ? `Power: ${obj.data.powerKW} kW
` + : "" + } +Inputs: ${obj.connections.inputs.length}${ + obj.data.nodeType === "end_connection" ? "" : "/1" + }
+Outputs: ${obj.connections.outputs.length}${ + obj.data.nodeType === "end_connection" ? "/0" : "" + }
+Actions
+ +Connection Properties
- - - - - - - - -Connection Info
-ID: ${conn.id}
-From: ${conn.from.data.name} (${ - conn.from.type - })
-To: ${conn.to.data.name} (${ - conn.to.type - })
-Flow Direction: ${conn.from.data.name} → ${ - conn.to.data.name +
Power Cable Properties
+ + + + + + + + + + +Cable Info
+ID: ${conn.id}
+Type: ${conn.data.cableType} ${ + isOverheadCable ? "(Overhead)" : "(Ground)" }
-Actions
- -From: ${conn.from.data.name} (${ + conn.from.type === "triangle" + ? "Transformer" + : this.getNodeDisplayType(conn.from.data.nodeType) + })
+To: ${conn.to.data.name} (${ + conn.to.type === "triangle" + ? "Transformer" + : this.getNodeDisplayType(conn.to.data.nodeType) + })
+Capacity: ${conn.data.crossSection} mm² × ${ + conn.data.length + } m
+ ${ + isOverheadCable + ? '⚠️ Overhead cables can only connect to poles or end connections!
' + : "" + } +