microsoft / automatic-graph-layout

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

Viewer.AddNode(dNode, true); => slow node drag and drop #284

Closed khoailangdo closed 2 years ago

khoailangdo commented 3 years ago

I add node in the following way:

IViewerNode dNode = Viewer.CreateIViewerNode(node, pos, null);

Viewer.AddNode(dNode, true);

When dragging and dropping the node is very slow. But I add node by: Graph.AddNode() and drag and drop is very smooth. Did I do anything wrong?

MVoloshin commented 2 years ago

I confirm that issue. Happens even in GraphEditor.cs sample

levnach commented 2 years ago

Fixed by https://github.com/microsoft/automatic-graph-layout/commit/8b9f6c2d924ed20f95a6c4b819e2ff3ab757b8fb