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 · 2 comments
Open

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

VictorPato opened this issue Jan 30, 2024 · 2 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
@github-project-automation github-project-automation bot moved this to Done in D2 Feb 19, 2025
@alixander
Copy link
Collaborator

@VictorPato Why was this closed?

@VictorPato
Copy link
Author

VictorPato commented Feb 19, 2025

@alixander I was just closing old issues, AFAIK this is still a problem as I can still reproduce it on the playground. I'll reopen the issue.

@VictorPato VictorPato reopened this Feb 19, 2025
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