Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for individual spacing in layered algorithm #839

Open
gfox1984 opened this issue May 20, 2022 · 2 comments
Open

Add support for individual spacing in layered algorithm #839

gfox1984 opened this issue May 20, 2022 · 2 comments
Labels
enhancement An improvement to existing functionality.

Comments

@gfox1984
Copy link

gfox1984 commented May 20, 2022

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:
kieler/elkjs#89
kieler/elkjs#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

@soerendomroes soerendomroes added the enhancement An improvement to existing functionality. label Dec 5, 2023
@soerendomroes soerendomroes added this to the Release 0.10.0 milestone Dec 5, 2023
@ahumellihuk
Copy link

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

@soerendomroes
Copy link
Contributor

Sadly not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to existing functionality.
Projects
None yet
Development

No branches or pull requests

3 participants