eclipse / elk

Eclipse Layout Kernel - Automatic layout for Java applications.
https://www.eclipse.org/elk/
Other
259 stars 86 forks source link

compaction.connectedComponents does not respect edge labels #953

Open soerendomroes opened 1 year ago

soerendomroes commented 1 year ago

This model

node main_x {
  elk.direction: RIGHT
  compaction.connectedComponents: true
  port p0
  node main_x_src {
    port p1
  }
  edge e0: main_x_src.p1 -> p0 {
    label "0"
  }
}

draws the label outside the drawing.

This model

node main_x {
  elk.direction: RIGHT
  compaction.connectedComponents: true
  portConstraints: FIXED_POS
  port p0
  node main_x_src {
    port p1
  }
  edge e0: main_x_src.p1 -> p0 {
    label "0"
  }
}

somehow does not since the fixed port position seems to however rescue it.

It seems that connected components compaction does somehow disrespect the edge label.

soerendomroes commented 1 year ago

lf-issue1624-bad lf-issue1624-good