-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Improve arrow positions on sequence diagrams #4691
Labels
Area: Development
Graph: Sequence
Internals: Renderer
Status: Approved
Is ready to be worked on
Status: Awaiting PR
Type: Bug / Error
Something isn't working or is incorrect
Comments
simonborje
added
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
labels
Aug 1, 2023
sidharthv96
added
Status: Approved
Is ready to be worked on
Graph: Sequence
Area: Development
Status: Awaiting PR
Internals: Renderer
and removed
Status: Triage
Needs to be verified, categorized, etc
labels
Aug 1, 2023
I solved the bug for sequence diagrams |
@mastersibin, Wonderful! Can you raise a PR? Thank you :) |
@sidharthv96 done. |
Thank you for looking into the issue! |
sidharthv96
added a commit
that referenced
this issue
Sep 2, 2023
sidharthv96
added a commit
that referenced
this issue
Sep 6, 2023
* develop: (56 commits) chore: Fix unit tests chore(deps): update all patch dependencies chore: Update docs Update docs New Mermaid Live Editor for Confluence Cloud (#4814) Update link to Discourse theme component (#4811) Update flowchart.md (#4810) chore: remove unneeded `CommomDB` chore: Update docs "CSS" instead of "css" in flowchart.md (#4797) Update CONTRIBUTING.md Update CONTRIBUTING.md fix: typos (#4801) chore: Align with convention chore: Add JSDoc to apply in sequenceDB refactor: Tidy up direction handling chore: Fix flowchart arrow chore: Add test to verify activate chore: Update tests snapshot fix: #4691 Align arrowheads properly in sequenceDiagram ...
sidharthv96
added a commit
to sidharthv96/mermaid
that referenced
this issue
Sep 6, 2023
* develop: (26 commits) chore: Fix unit tests chore(deps): update all patch dependencies Update docs chore: remove unneeded `CommomDB` fix: Add support for `~test Array~string~` chore: Add JSDoc to apply in sequenceDB refactor: Tidy up direction handling chore: Fix flowchart arrow chore: Add test to verify activate chore: Update tests snapshot fix: mermaid-js#4691 Align arrowheads properly in sequenceDiagram chore: move `commonDb` into `diagrams/common/commonDb` Update docs run prettier fix Apply suggestions from code review chore: Add comments in edge handling chore: Make aggregation arrow transparent chore: Remove structuredClone chore: Make extension arrow transparent chore: Align edge markers properly in class ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: Development
Graph: Sequence
Internals: Renderer
Status: Approved
Is ready to be worked on
Status: Awaiting PR
Type: Bug / Error
Something isn't working or is incorrect
Description
Compared to most other sequence diagrams I've seen generated by other software, arrow heads in mermaid sequence diagrams are positioned differently. I would not necessarily say that the mermaid way is "wrong", but at least to my eyes it does look a bit "off" compared to what I'm used to seeing.
The largest difference is that arrow heads extend into activation boxes rather than end at the border of the box.
Also, at larger scales, the tip of the arrow heads seem to slightly shoot past the line that they point to when no activation box exist.
I have added two screenshots to illustrate how it looks now and how it might look if it was drawn like most examples I could find.
Steps to reproduce
Link to the example used for the screenshots: mermaid.live
Screenshots
Current look:
Mock-up:
Code Sample
No response
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: