elk
elk copied to clipboard
Add support for individual spacing in layered algorithm
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" ] }
]
}

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