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

Including a sequence diagram in layers #1692

Closed
SayChi opened this issue Oct 31, 2023 · 0 comments · Fixed by #2093
Closed

Including a sequence diagram in layers #1692

SayChi opened this issue Oct 31, 2023 · 0 comments · Fixed by #2093

Comments

@SayChi
Copy link

SayChi commented Oct 31, 2023

When I include a sequence diagram in a layer from another file, it renders very different from when rendering the sequence diagram itselfs

with a file seq.d2:

shape: sequence_diagram

a: me
b: github.com/terrastruct/d2

a -> b: issue about a bug
a."some note about the bug"

if i'm right: {
	a <- b: fix
}

if i'm wrong: {
	a <- b: nah, intended
}

and overview.d2:

layers {
	seq: @seq
}

I run d2 seq.d2 seq.svg giving a good looking result:
seq

while running d2 overview.d2 overview.pdf results in:
overview.pdf

The svg looks as expected, but the groups get broken in the overview.pdf (I think these groups breaking might also be what cause things to overlap)

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

Successfully merging a pull request may close this issue.

1 participant