Closed XertroV closed 1 month ago
Hi! Sorry for the long answer. This is totally a bug. I will address it soon in the upcoming Layout feature and support implicit binding or change the mechanic completely.
no worries. As a workaround I forked master and removed the (crate)
in pub(crate) fn bind
.
Hi, @XertroV! I fixed this bug, removing bind mechanic in general. This is a breaking fix.
Fix is in master now.
I have some code that uses add_node_custom / add_edge_custom. While updating egui_graphs, I had to comment .bind b/c it's not public anymore. Now that it compiles, I get a crash on
self.id.unwrap()
(particularly inNode::id
).Looking at
default_node_transform
and the one for edges, it still calls.bind
.So it seems like the intent is still for the transform function to call .bind, but that's no longer possible with it being
pub(crate)
. This doesn't seem like something I can fix from my end, and theg.add_node/edge
function families don't seem to help with custom transforms.