jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.61k stars 721 forks source link

How to make connection starting from input circle and ending on output circle? #162

Closed princeyogesh closed 3 years ago

jerosoler commented 3 years ago

uhmmm reverse connection method? Or two methods?

princeyogesh commented 3 years ago

yes @jerosoler kind of reverse connection i am looking for,

princeyogesh commented 3 years ago

currently i am not able to start connection drag from input circle. as well as cannot drop the connection on output circle.

please help me how can achieve this

princeyogesh commented 3 years ago

I just want to draw connection from any node to any other node, without caring whether input or output circle

jerosoler commented 3 years ago

You are requesting three changes.

1: That a connection can be made in reverse. 2: That an output can be disconnected from output. 3: That an input can be connected to an input or an output to an output or input to an output. What no longer makes sense that they are called like that. And it also comes into conflict with the second question it raises.

For all these changes you will have to modify the library.

It is just a javascript file. You can take a look at it: https://github.com/jerosoler/Drawflow/blob/master/src/drawflow.js

I think the best option is to modify the library with a single type of input and that it allows the connection itself.

What you want to create is a diagram right? Don't use the json that to create a workflow.