elk icon indicating copy to clipboard operation
elk copied to clipboard

Add support for individual spacing in layered algorithm

Open gfox1984 opened this issue 3 years ago • 2 comments

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

gfox1984 avatar May 20 '22 12:05 gfox1984

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

ahumellihuk avatar Jul 29 '24 10:07 ahumellihuk

Sadly not.

soerendomroes avatar Jul 29 '24 14:07 soerendomroes