patternfly / react-topology

MIT License
10 stars 19 forks source link

Using the same source and target node leads to disconnected/hidden edge #85

Closed jpuzz0 closed 11 months ago

jpuzz0 commented 1 year ago

Describe the problem Edge that has source and target as the same node leads to edge being disconnected, overlapped and somewhat hidden.

How do you reproduce the problem? Use an edge with the same source and target

Expected behavior Edge is fully visible and not hidden behind node

Screenshots

image image

What is your environment?

What is your product and what release date are you targeting? 5.0.0

Any other information? Using TaskNode, DefaultEdge, BreadthFirstLayout, but the layout type doesn't seem to have much of an impact.

jeff-phillips-18 commented 11 months ago

By default, edges draw on the layer below nodes intentionally so that nodes are not overdrawn by edges that pass thru them due to layout positioning. If a particular application needs to draw edges that need to draw over nodes, they can set those particular edges to draw on a layer above the default layer (TOP_LAYER or a custom defined layer).