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

outside-x label position on elk causes slanted lines #1822

Open
VictorPato opened this issue Jan 30, 2024 · 0 comments
Open

outside-x label position on elk causes slanted lines #1822

VictorPato opened this issue Jan 30, 2024 · 0 comments

Comments

@VictorPato
Copy link

On the current version of D2 (0.6.3) we're finding a problem that wasn't an issue on 0.6.1

When attaching a label to a container on the outside (example: outside-left-center), lines to and from that container render slanted

For example:

b: {
  label.near: outside-left-center
  label: Some Label
  c
}
d
a -> b.c
b.c -> d

image

D2 Playground

This also holds when using direction: right

direction: right
b: {
  label.near: outside-top-left
  label: Some Label
  c
}
d
a->b.c
b.c->d

image
D2 Playground

@cyborg-ts cyborg-ts added this to D2 Jan 30, 2024
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