Closed wanderernxa closed 1 year ago
Hi @wanderernxa, I apologize that it has been quite some time since you asked that question. It may not be useful anymore, but I have created a example and share it below.
https://github.com/dash14/v-network-graph/assets/24878247/4ebb799f-d7f8-4362-8cf8-9e82eae62fd6
It uses the layer feature, specifying raw event handlers for nodes, and the coordinate transformation feature. See the examples below for more details on each of these features.
I am not familiar with Visio so this may not be the behavior you expect. Sorry if that is the case. Best regards.
This is perfect, thank you so much!
Hello there! Thanks for your work @dash14 ! We all appreciate it! I was trying to create a graph where the user can drag and drop nodes, and also link them according to the above examples. I was getting a nasty bug: the drag and drop functionality was working perfectly, until the first edge be drawn. Then the dropped nodes were placed in the center (default behaviour). I tried to replicate the error in a sandbox, but i failed as it works as expected: sandbox <- select the open in a new tab in the upper right corner Fortunately I found the solution and I'm noting it here to help someone else. The solution is to avoid using reactive layouts and instead use simple ref. Then all works perfect! Cheers!
Hi, Thank you for the fantastic tool. Is it possible to do drag and drop of nodes from a pallette and then draw the connections(edge) between them? Like Visio for example?
thanks