Closed atoav closed 2 years ago
I found a solution whilst browsing the pw-viz source code (not by me - just found it when looking for examples)
Apparently you can configure the context to allow node removal, by dragging the connection:
let mut context = egui_nodes::Context::default()
// configures the link drag to remove feature
context.attribute_flag_push(egui_nodes::AttributeFlags::EnableLinkDetachWithDragClick);
I'm using configuring it like this in my project and it works for me.
I just noticed that this flag is documented here
EDIT: Added reference to docs
This can be closed then
First of all thanks for the great work! Maybe it is just me, but I wasn't able to figure out how to remove connections. I tried dragging them "away", rightclicking, "cutting" them off with all kind of modifier + click combinations etc.
Is this just not implemented yet, or am I missing something here?