jagenjo / litegraph.js

A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.
MIT License
5.33k stars 602 forks source link

Feature Request: Flip I/O #435

Closed Immac closed 4 months ago

Immac commented 4 months ago

Being able to flip a node I/O. Adding a property flip_io that can be toggled per individual node so workflows can be done towards any direction and not just left to right/ up to down.
Mostly clarity increase change. (Just take into account in simple cases like this the clarity improvements are not so obvious) image vs image

atlasan commented 4 months ago

There is an option to use top-down slots, that would eventually solve your case maintaining the general rule left to right / top to down reading convention. If would implement something like that, the flow direction should probably be visible.

jagenjo commented 4 months ago

reversing the flow would be very confusing to the readability of the graph, and imply lots of conditioning in the system so it is not a valid feature.