plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
483 stars 68 forks source link

Drag line #10

Closed kwnkouts closed 5 years ago

kwnkouts commented 6 years ago

Hi, I would like to ask if it is possible, using this library, for the user to drag lines from a node to another in order to create the edges. Thank you in advance!

xhluca commented 5 years ago

It is likely possible to do so with the cy prop, but it will a fairly advanced usage, and the nodes will likely need to be immutable. Check out event listener in Cytoscape.js http://js.cytoscape.org/#core/events

maxkfranz commented 5 years ago

You can register extensions like edgehandles using the cy ref, as mentioned.