zakarumych / egui-snarl

Customizable egui node-graph library
https://crates.io/crates/egui-snarl
MIT License
287 stars 28 forks source link

Ability to put nodes inside of a node #35

Open Quick-Flash opened 2 months ago

Quick-Flash commented 2 months ago

For better organization and for a project I am working on, the ability to put nodes inside of nodes would be quite useful. I'm basically thinking that you can "combine" various nodes together to create a larger node. This could encapsulate a lot of complexity down into a much smaller place. Then it would be possible to combine these nodes together.

virtualritz commented 2 months ago

While I think this is a cool feature, in any node-based app I used, opening a node that is actually a sub-network opens the latter in a new view/replaces the current view. So I'd argue this is already possible.

dignifiedquire commented 2 months ago

I am building sth like this, where I open the group for editing in a new tab, and on close save it. Works pretty well overall but it would be nice of having a helper that takes the current selection and removes it from the current Snarl putting it into a new one