flowhub / the-graph

SVG custom elements for FBP graph editing and visualization. Used in noflo/noflo-ui
https://flowhub.github.io/the-graph/demo-full.html
MIT License
1.01k stars 179 forks source link

Visualize addressability of ArrayPorts #51

Open bergie opened 10 years ago

bergie commented 10 years ago

With ArrayPorts we should, instead of having multiple wires going to a single port, have them each connect to a different port.

So, instead of multiple connections to a in port, you'd have a connection to in[0], another to in[1] etc.

See noflo/noflo-ui#14

forresto commented 10 years ago

Need this for IIPs: https://github.com/bergie/flowcopter/blob/master/graphs/RouteCommands.fbp

forresto commented 10 years ago

This will also help with autolayout sorting of nodes connected to an arrayport.

As a hack for now, @automata do you think if we fake the port position (portY + (arrayportIndex * 0.01)) Klay will sort the upstream nodes better? Eg: screen shot 2014-06-18 at 11 30 10 am (point could be above curve, b/c it is connected to arrayport 0)

bergie commented 10 years ago

@forresto just keep in mind that we have both kinds of connections:

automata commented 10 years ago

@forresto now that we have FIXED_POS as default port constraint, I think it can helps.

If we have arrayportIndex in portInfo it is easy to test. I can give it a try.