rete icon indicating copy to clipboard operation
rete copied to clipboard

Create bidirectional io/socket

Open AmannHolen opened this issue 3 years ago • 2 comments

Is there a way to create an bidirectional i/socket? For example, I want to connect input to another input or output to another output. Can I use controls to do that or is it better way to do it ?

AmannHolen avatar Sep 07 '21 15:09 AmannHolen

When I remember the code is something not intended. The directional approach is needed for the worker. Maybe you can elaborate your problem with a sample to see if there are other ways around it.

creadicted avatar Sep 08 '21 07:09 creadicted

Here a sample : https://codesandbox.io/s/blueprints-test-forked-cfkv1

To resolve my case we can thought of 2 ideas:

  • Check the ReteStart.vue file. There is an attributes devices (this is the main object I want to render in the rete graph).I want to have 3 types of elements : Input, output (that can be create with node.addInput or node.addOutput methods) and bidirectional . This new element must be an input and an output but not already exist.
  • Input can be linked to another input and output can be linked to another output.

AmannHolen avatar Sep 08 '21 10:09 AmannHolen

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

rete-js[bot] avatar Jul 13 '23 10:07 rete-js[bot]