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

sequence_diagram: Fix span size #397

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

ejulio-ts
Copy link
Contributor

Fixes #391

Span size wasn't computed correctly for self edges. It was considering the first route point instead of the last one for the maximum edge Y.

Added a new regression case. Below is a more convolute one

Diagram of the issue
_Users_juliobatista_Projects_terrastruct_d2_sequence svg (11)

Nested self edges test
_Users_juliobatista_Projects_terrastruct_d2_sequence svg (12)

@ejulio-ts ejulio-ts merged commit cb414e5 into terrastruct:master Dec 7, 2022
@ejulio-ts ejulio-ts deleted the gh-391-spans branch December 7, 2022 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sequence_diagram: span doesn't cover
2 participants