-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubleshooting user interaction doesn't seem trivial #60
Comments
I found out, by studying the imnodes source code, that I can use |
Hi @beddueimpossibile ! Indeed, figuring out how user interaction is supposed to work isn't the easiest thing at the moment 😞 By default, the user is responsible for deleting links. The idea is that you can delete a link by simply removing the link from your internal data structures. Nothing else needs to be done, since by default, the link is fixed in place.
Hope this helped! And I'll try to get around to writing a bigger tutorial covering all the user interaction modes available currently. |
Now it's clear, thank you for the prompt reply and the explanation! |
Yeah, we can keep it open for now. It'd be great to have a new example submission if you have some code lying around 👍 |
I wonder if making using user supplied unique ids, instead of grabbing them from the pointer would help (along with other things) ? As suggested here by @sonoro1234 |
This was a suggestion for rokups implementation as Nelarius already takes user supplied unique ids. |
Oops, the names are so similar I got confused about which one I was reading, apologies for the noise ! |
Where to find / how to understand the default user interaction commands?
I just started exploring imnodes and successfully used
IsLinkCreated
to create links with drag and drop from one pin to an other one, but on the other side, I don't find a way to makeIsLinkDestroyed
returntrue
. I tried to push the DELETE key selecting the link and also to drag the link away from a pin without success. I don't know how to proceed in order to understand if I am not pushing the right key or if in my software the event is not triggered because of an issue or misconfiguration.The text was updated successfully, but these errors were encountered: