Pretty much every schematic software and visual code editor in the world uses straight lines and right angles to display wire connections. Node Red uses some nonstandard 3rd degree polynomial to render wires which makes it really hard to make flows look clean.
Please support rendering wires as straight lines and right angles for bends. It simply makes more sense.
I apologize i dont quite understand what you mean when you ask "how would you rubber band he connections between nodes"
I'm just asking for the wires to be rendered as straight lines so this situation doesnt happen so often where wires are hidden by blocks. Do you see how the 60m block has a wire exiting to the debug node that is covered up by the function block?
If the wires could be straight lines they'd turn upwards at a right angle quickly and then turn to the right to go into the same debug node
Well, I've used a lot of visual tools and actually they nearly all support BOTH styles. Actually, that is 3 styles: straight, angled and spline. But then, it is complex to support multiple styles. As soon as you go down that route, you also immediately have to handle far more wire data in order to support additional wire nodes and possibly rotating wire nodes (to support changes in spline routing). Someone needs to program it all and maintain it. I'm pretty sure it can all be done with the underlying library that Node-RED uses.
I'm sure that there would be interest in a contribution to Node-RED to enable other line routing patterns. Until then, many of us would probably agree that there are more pressing enhancements that are needed.
You can already do that using junctions of course. Not as seamless as a full wire routing capability but it gets the job done
And if you've ever used a diagramming tool, you will know that immediately brings other issues of routing. Those issues need the wire nodes I've already mentioned that let you move each horizontal and vertical line out of the way where needed.
Not saying it wouldn't be nice - it certainly would. But a lot of work with a lot of consequences not only for the visual programming but also the complexity of the stored flow data which would grow a lot.
Even so, I'd probably applaud a contribution to Node-RED to do it.
Actually junctions don't really help with nodes overlaying the wires.
here are a couple of simple ways to alleviate the problem though:
Leave slightly more horizontal space between nodes.
Don't align all nodes vertically.
In more complex cases, use link in-out nodes.
it's still not right angles and makes a mess if you want to make flows that are spaced out a bunch... I just tried it and if if i didnt put at least a full two grid squares between blocks i the junction curls and makes a mess.
The curves are currently part of the "look and feel" of Node-RED, and are indeed somewhat hardcoded (inside view.js) . Indeed once upon a time we didn't have a snap-to-grid so it was all a lot more free form. Just because other tools do force things to 90 degrees doesn't necessarily make it right :-)... but yes I can see it does make sense for circuit diagrams where you can overlap wires in a bus - though they also sometimes have jumps and junctions to indicate whether they should connect or not.
Note, Node-RED wires do not have properties (they are just an array of endpoints on nodes) so saving things like how many pixels to go before turning 90 degrees etc (ie the geometry) would need serious thinking about, if it isn't going to break things.
While i certainly can respect the "look and feel" branding argument for the curvy wires, it feels a little detrimental to not at least give users the choice.
But yes, i can understand the development work involved. That said, there are many open source apps which can be referenced such as draw.io which does the logic for "when to turn" very well imo, i've used this tool for many different design docs i've written and it seems to always preform fairly well with the placement of wires and angles.
Anyway, like i said, i definitely can respect that it's a non-insignificant amount of work to implement, I just started using node red and was very turned off by the look and feel of the wiggly wires. Coming from an electronics engineer background - having spent many hours in altium/kicad and doing block diagrams with the above tool) it just didn't jive with my brain
I must say I love the curvy line style.
I was used to the straight lines and angles of my PLC software, which has it's own overlap issues and it's own ways to make a mess.
Careful placement of nodes, and the use of junction and link nodes helps a lot.