Gentlymad-Studios / NewGraph

A general node graph solution centered on data management. This is based on the idea to visualize complex data structures as graph networks without having to modify already established data classes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edges connecting to nodes below and left from a node intersect the nodes

leissler opened this issue · comments

When connecting nodes and starting another row in a layout as shown below should somehow be drawn around nodes without intersecting the node space.
image

Examples of proper behavior and rendering are:
image
splines

Won't be able to work on a more sophisticated edge draw solution any time soon, so if someone wants to take a shot at this you are welcome to do so :)

Edge drawing is done by https://github.com/Gentlymad-Studios/GraphViewBase. So any proposed changes should probably go into this repository.

The class of interest here is https://github.com/Gentlymad-Studios/GraphViewBase/blob/main/Editor/Elements/Graph/Edge.cs
As this is what handles the visualization of edges using the Painter2D class (https://docs.unity3d.com/2022.2/Documentation/ScriptReference/UIElements.Painter2D.html)

I guess this one can be closed.