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.
MIT License
246 stars 19 forks source link

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

Open leissler opened 1 year ago

leissler commented 1 year ago

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

Doppelkeks commented 1 year ago

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)

leissler commented 10 months ago

I guess this one can be closed.