retejs / connection-plugin

https://retejs.org
MIT License
15 stars 36 forks source link

Disconnect a specific connection from the input with a large number of connections #5

Closed Ni55aN closed 5 years ago

Ni55aN commented 5 years ago

We need a convenient way in terms of UX how to pick a certain connection. Any suggestions ?

Clasen00 commented 5 years ago

Can also someone make some example please, to see what we are talking about? To watch the problem) If I understand right, to solve the problem we can handle dblick on each socket line to show menu with moves: "delete", "change color, "change name" for example...

Ni55aN commented 5 years ago

Does anyone have suggestions or remarks on this approach: https://github.com/retejs/rete/issues/177#issuecomment-436452579 ?

RostyslavBaldovskyi commented 5 years ago

I think will be good to have "sub" component with one input and N outputs (after adding first will created second etc.) which will attached to node and forbid multiple connections for one slocket. https://c2n.me/40dlqoh

Similar to hub Using this component will help for managing connections.

Additionally about sockets. Similar to "hub" (maybe it is not related to connections) For me it will be good to have socket with sub sockets like in menu. And i will have possibility to open it and see children. Socket can contains value (as it is now) or object with values (as tree). Example: https://c2n.me/40dlnEf

I can close or open "subsockets". In case for example onFocus & onChange connected in closed mode it can be displayed with small dots with different colors.

It will be not so easy to implement but it can be helpful for further reflection :)

Ni55aN commented 5 years ago

I think will be good to have "sub" component with one input and N outputs (after adding first will created second etc.) which will attached to node and forbid multiple connections for one slocket.

I don’t quite understand why an additional node is needed, since this is about the multiple connections at the entrance, not the exit

For me it will be good to have socket with sub sockets like in menu. And i will have possibility to open it and see children. Socket can contains value (as it is now) or object with values (as tree).

This will lead to complication. Why not just keep a single list of sockets or create additional node?

Ni55aN commented 5 years ago

Any UX improvements to the connection-plugin can be implemented in a single plugin.

Suggest name https://github.com/retejs/rete/issues/261#issuecomment-467164852

Ni55aN commented 5 years ago

https://github.com/retejs/rete/issues/261#issuecomment-504767429