You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I don't define the edges as child edges in the input graph, their positioning is still offset, so I'd have to walk the graph to find the edge's source node's parent's offset. This seems like a bug: edges defined on the root node should be positioned relative to the root.
The calculated coordinates correspond to elk's coordinate system, in which the positions of an edge are relative to the edge's source node (with one exception).
It's somewhat of a peculiarity of the js json version that edges can be specified anywhere (instead of as children of the source node).
While I see your point, I'm not sure if it's a good idea to become inconsistent with the coordinate system used in the java version.
We are currently changing the graph data structure in the ELK project. This issue is in fact one we're addressing there. We haven't decided yet whether the changes will find their way into the JSON specification of graphs.
In klayjs-svg, child edges are rendered as children of the translated group. This means that the edges are layered behind other groups.
If I don't define the edges as child edges in the input graph, their positioning is still offset, so I'd have to walk the graph to find the edge's source node's parent's offset. This seems like a bug: edges defined on the root node should be positioned relative to the root.
The text was updated successfully, but these errors were encountered: