-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Can I move multiple nodes at once? #7
Comments
Right, it'd be nice feature to have. Do you have an idea how it can be controlled? I also want to create control map to not make a mess of weird combinations which library user can't modify. |
I actually tried to use https://github.com/setzer22/egui_node_graph before using snarl. The project doesn't seem to be active, and it's a bit difficult to use. If you look at the egui_node_graph, you can select multiple nodes by dragging. https://github.com/Sollimann/bonsai I'm trying to use this bt, but json edit is too hard, so I'm trying to make an internal tool with snarl. After reading from the json, I added the node and added the connection information, but it was harder than I thought because I tried to position the node beautifully. It would be nice to have a function that automatically aligns them, so I thought about it, but I didn't come up with a good idea. |
By automatic aligning do you mean something like snapping to common coordinates? |
I've attached a screenshot of my implementation. When nodes are added by reading them from BT JSON rather than adding them in the editor, it's hard to determine their location. https://www.youtube.com/watch?v=JKk7LRGJrfQ |
I see, so pick a few nodes and align them in certain way once. That seems doable when we have multi selection. And your use case requires auto-layout to place nodes nicely after creating them from some description with no positions. Maybe some iterative algorithm that would push nodes away from each other and attempt to keep them on the same height if connected. |
Node selection feature added and moving selected node moves all selected nodes at once. |
Hello. It's a good library.
I'm doing some testing and it would be nice to have the ability to drag and select multiple nodes to move them all at once.
I just want to make sure I'm not missing something.
The text was updated successfully, but these errors were encountered: