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

near and grid makes connections draw as straight lines (Dagre/ELK) #1994

Open
terlar opened this issue Jul 8, 2024 · 0 comments
Open

near and grid makes connections draw as straight lines (Dagre/ELK) #1994

terlar opened this issue Jul 8, 2024 · 0 comments

Comments

@terlar
Copy link

terlar commented Jul 8, 2024

It seems that when you use near or grid it changes the connection style of the lines, to be straight diagonal lines instead of the curvy (dagre) and orthogonal (elk). It would be nice if it was possible to retain the line style when using these methods.

Example (near):
https://play.d2lang.com/?script=Sq1IzC3ISdXNy9fNS00s0jW0UqjmUlDISUxKzbFS8MtX8EtNLFIw5Krl4kJXaoRVqRGK0tTEIlRVqYlFXAoKEPGS_ALdosz0jBKQlpLEovTUEi4uLQVdOwUoBxAAAP__&layout=elk

example-no-near-1: {
  label: No Near 1
}

example-no-near-2: {
  label: No Near 2
}

example-near: {
  label: Near
  near: top-right
}

target

* -> target

Example (grid):
https://play.d2lang.com/?script=Sq1IzC3ISdUtSUzKSbVSqOZSUEgvykzRLcovL7ZSMORSUMhJTErNsVIIASngUlBIzsjMSeGq5eKC6czLh2jWNYRoh6r3y4doAZuBW5MRdk1GyJpKEovSU0u4uLT0tBR07RSgXEAAAAD__w%3D%3D&layout=elk

example-table: {
  grid-rows: 1
  label: Table
  child
}

example-no-table-1: {
  label: No Table 1
  child
}

example-no-table-2: {
  label: No Table 2
  child
}

target

*.* -> target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant