microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.34k stars 301 forks source link

How to set space between points where Edges connected to Shape #366

Closed lukasLata closed 3 months ago

lukasLata commented 3 months ago

Hi, When multiple Edges connected into one Shape, I have very small space between Edges points on the Shape border. It is possible set larger space? My layout setup: LayoutHelpers.CalculateLayout(graph, new FastIncrementalLayoutSettings { EdgeRoutingSettings = { EdgeRoutingMode = EdgeRoutingMode.Rectilinear, CornerRadius = 0 }, NodeSeparation = 50, // Minimum space between nodes AvoidOverlaps = true, }, null);

image

Thanks a lot.

levnach commented 3 months ago

I pushed a change. Try LayoutHelpers.CalculateLayout(graph, new FastIncrementalLayoutSettings { EdgeRoutingSettings = { EdgeRoutingMode = EdgeRoutingMode.Rectilinear, CornerRadius = 0, EdgeSeparationRectilinear = yourEdgeSeparation }

lukasLata commented 3 months ago

Thanks, it looks like ok.