react-dag icon indicating copy to clipboard operation
react-dag copied to clipboard

how to add two Souce Endporint

Open madadimy opened this issue 8 years ago • 7 comments

how to add two Souce Endporint and two Sink Endporint in type of 'transform'? like this demo

madadimy avatar Aug 31 '17 02:08 madadimy

@madadimy I am not sure if I understand your question. Today we have a node type transform that will have two endpoints. One will accept incoming connections and one will have connections going out from it. Does your use case require something different?

In the demo that you have linked each node has 4 endpoints with connections going in and coming out. The existing transform type nodes have only 2.

Is your question Can a transform node have 4 endpoints?

ajainarayanan avatar Aug 31 '17 21:08 ajainarayanan

@ajainarayanan yes i want know how to add 4 endporint in a transform node . there have two endpoints can accept incoming connections and two endpoints can connections going out from it.

madadimy avatar Sep 05 '17 01:09 madadimy

@madadimy Sorry for the extremely delayed response. Been busy at work. Right now you can't do that. I need to come up with a design for that. Will update this thread once I have a design and a PR for it.

ajainarayanan avatar Nov 22 '17 18:11 ajainarayanan

@madadimy I have re-written react-dag and the new design allows user to add N number of endpoints to a node. You can achieve this using the new design (version 2.0.0.alpha.1) from npm (https://www.npmjs.com/package/react-dag)

Please check the README for documentation.

ajainarayanan avatar Jan 09 '18 08:01 ajainarayanan

http://react-dag-app.surge.sh/complexdag

can you show me the source code ? thanks -_- !

rankyangel2014 avatar Feb 27 '18 03:02 rankyangel2014

@rankyangel2014 Sorry didn't realize I didn't push the branch to github. Here you go https://github.com/ajainarayanan/react-dag-app/tree/feature/ui-2.0.0.alpha.1

ajainarayanan avatar Feb 28 '18 00:02 ajainarayanan

thanks a lot

rankyangel2014 avatar Feb 28 '18 05:02 rankyangel2014