microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.35k stars 302 forks source link

Dragging Nodes inside Subgraph ignores its Edges #314

Open Brains opened 2 years ago

Brains commented 2 years ago

During #313 spotted a bug on master in WpfApplicationSample. The edge created by

graph.AddEdge("58", subgraph2.Id);

is not updated during dragging nested Nodes in a Cluster

1

Brains commented 2 years ago

From my little experience here I might assume GeometryGraphEditor.DragEdgesAsStraighLines should call a new method to recalculate edges of outer clusters, similar to PropagateChangesToClusterParents which calls Cluster.CalculateBoundsFromChildren

Brains commented 2 years ago

Noticed that with Rectilinear edges it works fine Tried to experiment to fix the bug, but no luck

1