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

elk layout engine sometimes doesn't manage to untangle lines, which causes some undesirable imagery to appear #1662

Closed
SandaruKasa opened this issue Oct 12, 2023 · 1 comment

Comments

@SandaruKasa
Copy link

direction: right
Block: {
  1
  2
  3
  4
  1 -> 4
  2 -> 3
}

Compile with d2 -l elk.
The result:
卐
Yeah

@cyborg-ts cyborg-ts added this to D2 Oct 12, 2023
@alixander
Copy link
Collaborator

this is desired behavior. ELK tries to maintain order top-down, so since 3 is defined before 4, it appears on top. Switching 3 and 4 gets:

Screen Shot 2023-10-12 at 3 02 24 PM

@github-project-automation github-project-automation bot moved this to Done in D2 Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants