kieler / klighd-vscode

Eclipse Public License 2.0
8 stars 6 forks source link

Hierarchic edges may be drawn beneath elements they should be atop of #118

Open NiklasRentzCAU opened 1 year ago

NiklasRentzCAU commented 1 year ago

View this graph:

properties: org.eclipse.elk.hierarchyHandling=INCLUDE_CHILDREN

knode p1 {
  knode c1 {
    kport port1
    kedge (:port1 -> c2:port2)
  }
}

knode p2 {
  knode c2 {
    kport port2
  }
}

Here, the edge will be drawn atop of its source node p1, but beneath the parent of the target node p2.

Hierarchic edges need a different SVG rendering order to ensure the edges always being drawn on top of their source/target nodes.