eclipse / elk

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

Add support for individual spacing in layered algorithm #839

Open gfox1984 opened 2 years ago

gfox1984 commented 2 years ago

I would like to be able to control the individual spacing between certain nodes when using the layered algorithm.

As mentioned in these two elkjs issues, this is not implemented: https://github.com/kieler/elkjs/issues/89 https://github.com/kieler/elkjs/issues/123

Is there any plan for supporting this feature?

Eg: live example

{
  id: "root",
  layoutOptions: { 'algorithm': 'layered', 'elk.direction': 'DOWN', 'spacing.nodeNodeBetweenLayers': 80.0 },
  children: [
    { id: "n1", width: 30, height: 30, individualSpacings: { 'spacing.nodeNodeBetweenLayers': '40.0' }},
    { id: "n2", width: 30, height: 30 },
    { id: "n3", width: 30, height: 30 },
    { id: "n4", width: 30, height: 30 },
  ],
  edges: [
    { id: "e1", sources: [ "n1" ], targets: [ "n2" ] },
    { id: "e2", sources: [ "n2" ], targets: [ "n3" ] },
    { id: "e3", sources: [ "n3" ], targets: [ "n4" ] }
  ]
}

image

ahumellihuk commented 4 months ago

Would love to see this implemented for the layered algorithm. Has there been any progress made towards this?

soerendomroes commented 4 months ago

Sadly not.