[Feature Request]Little tweak on wires

I'm just wondering if a little tweak could be made to the wire routing just to put a gap between the wires and node statuses when looping back from right top left


[edit]
Don't need as much room as this workaround - just enough so that the wire isn't touching the status text/indicator

8 Likes

Whilst I fully understand the desire, this isn't a 'little tweak'.

We have to consider all the cases based on the relative Y-position of the two nodes. You've highlighted the 'easy' case where the nodes are level. But as soon as they are more staggered, there are lots of cases where this isn't an obvious 'better' route.

The last time this was suggested and discussed (can't find the thread, but it definitely has had come up before), it was decided against as it would make the cases where nodes don't have status (which, lets be honest, is most of them), less space efficient.

For example, you wouldn't be able to do something like this:

Any change would have to make the wiring path conditional on whether a node has status or not - which is something we'd tried to avoid doing.

Still - without promising anything - it's about time for my annual session of trying to make the wiring a bit more aesthetically pleasing...

2 Likes

arrow heads to indicate flow direction?

How does this look:

When the nodes are horizontally level (with a little bit of grace for those who don't snap to grid :scream:):

  • smoother curves coming out of the nodes
  • if either end has status, give a bit more room

For reference, here is what that exact arrangement looks like in NR 3.x:


c

7 Likes

Oooh they are smooooth. That's looks really nice. Especially compared to previous.

If I were to nitpick anything, the gap looks like it could be slightly reduced without hitting the status - but it's personal.

2 Likes

@Steve-Mcl yup agreed - will pull it in a little bit.

Also noting it doesn't do anything for nodes with multi-line comments.... that'll be next year's wiring improvement task.

2 Likes

Yes. I Agree with Steve.

The more nearly semicircular curves are more comfortable to look at.
How does a node with two outputs (and a status?) fare in this scheme?

I sometimes wish the wire could fit between the node and it's status.

and push status text a tad bit lower

TBH, it can never be catered for in all eventualities so my personal wishlist would be the status shape/text would have a +1 z on all the wires & have a "frosted glass" background so that the text "pops" regardless of wiring.

image


actually, I prefer it when the "frosting" hugs the letering like a drop shadow - but I think you get the point :slight_smile:

2 Likes

Hmm well "I sometimes wish" does not really translate to "Make it so".
In case of doubt, I think the editor appearance is really excellent. It shows that the product is made by people with an appreciation of graphic design and amazingly they are prepared to discuss possible enhancements with plebeian users (cf Raspberry Pi forums)

Now then, WIndows Vista "Aero" node statuses. I'm sure something could be done with CSS. I don't have any cufflinks for the background though. :upside_down_face:

ah, (bad) memories

That was :smiley: codepen

Just remember that "clever" layouts also need more work around accessibility. :slight_smile:

The amount of work required can escalate real quick.

Done

image

20 Likes

its so pretty

bugs-life-i-cant-help-it

4 Likes

That is definitely one of those “yeah! Obvious now you see it” things. So much better !

3 Likes

Just seeing this… I’ve had similar “feedback’ routing issues where wires propagate across a flow right to left.

At one point I tried using a junction, which enables the user to determine the spacing between nodes and wires based on placement of the junction. However, a junction only allows inputs on the left and outputs on the right, which results in a wired crossover. It occurred to me that if a junction could be mirrored horizontally (i.e. inputs on the right and outputs on the left it would work well.

I’m not saying this is trivial to implement as I lack knowledge of the implementation of Node-red graphics but it would address this issue.

I step further would be to enable mirroring any node. While signal paths conventionally flow left to right, control feedback diagrams, schematics, and flow charts often have paths that flow right to left. This would cleanup such flows.

I'm not sure I get your point.
Could you create an example (screenshot) that shows the issue you try to address with this proposal?

@ralphwetzel, not very well drawn, but here is a hacked up image of a simple example of what i am suggesting...

Hmm yeah, not something I would vote for tbh. The current method of a "message flows from left to right" is 100% unambiguous. This is a recipe for confusion IMO.

Ps, if you feel strongly about this FR, then I suggest you start a new feature request thread and state your case - see what traction you get.

4 Likes