Closed Atlas16A closed 11 months ago
Hey! Sorry for long response. You can check examples/custom_draw
Graph::from
is used there with NodeShapeAnimated
. All you need to do is to explicitly set NodeShapeAnimated
in the Graph
signature. Please check example. If this does not help please post here your code with this error.
Ah, I wasnt very clear, what i mean to say is that Ive already used NodeShapeAnimated and modified it some, what Im currently working on is EdgeShape and changing that, I copied the defaultedgeshape and applyed it to the same formating that NodeShapeAnimated has.
You can view my code here https://github.com/Atlas16A/LSegui/blob/master/src/main.rs The relevant lines are, 14-19, 517, and 946, in the main.rs file and 14, 25, and 41 in the edge.rs file.
My NodeShape works perfectly fine by itself however my EdgeShape creates the error above, when added, on all the Graph::from() functions.
Yep, this is the bug. I ' ve already fixed it. Please check master.
Using the NodeShapeAnimated example I tried to apply a similar setup to edges but im getting a type error on every use of Graph::from() and is clear its trying to return one with a default edge.