Skip to content

Prettify Sequence diagrams #84

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

mr-mocap
Copy link

@mr-mocap mr-mocap commented May 11, 2025

I've only really touched the Sequence diagrams.

Added a UNICODE filled arrowhead (both left & right), A vertical bar with either a left or right fork, and updated the 'dashed' character(s) for a little bit of a prettier look.

Also modified Screen::ASCIIfy() to include the newly added UNICODE chars and substitutions. Changed ASCIIfication of the vertical-t to just a plain vertical bar, matching the same done with the horizontal-t being replaced with a minus sign.

Added dotted lines to the last two examples (run "diagon Sequence --examples" to see).

Some Images

UNICODE (in VSCODE in WSL2)
Screenshot 2025-05-13 100059

ASCII
Screenshot 2025-05-11 175431

Screenshot 2025-05-11 183958

mr-mocap added 5 commits May 11, 2025 18:25
Don't substiture dashed corners, since there aren't any to draw.
This seems to look better and more consistent because the vertical-t breaks up the dotted vertical line.
@ArthurSonzogni
Copy link
Owner

Thanks! I am working in this review. I am also traveling at the moment, so please expect some delay.

- Update tests expectations.
- Add an entry to the CHANGELOG.
- Revert change to examples.
- Add dashed arrow examples.
- Add an entry to the CHANGELOG.
- Revert changes to the lines.
@mr-mocap
Copy link
Author

Apologies for leaving a bit too much in. I was hoping you would see the direction I was wanting to go with this, and decided to leave it in for you to decide.

Another part, Message::Draw() (beginning), I forgot about because I've made so many experiments.

Perhaps I should open a Discussion for these other improvements instead.

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.

2 participants