-
-
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
Feature/4051 sequence diagram multi directional arrow #5209
Feature/4051 sequence diagram multi directional arrow #5209
Conversation
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5209 +/- ##
==========================================
- Coverage 5.73% 5.73% -0.01%
==========================================
Files 278 277 -1
Lines 41999 42013 +14
Branches 490 515 +25
==========================================
Hits 2409 2409
- Misses 39590 39604 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice work :)
Please add corresponding rendering tests as well in cypress/integration/rendering/sequencediagram.spec.js
@sidharthv96 I added e2e test and modified the syntax, since the Should I add documentation in a separate PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, the changes are perfect.
The only concern is the proposed syntax. It's unfortunate that we can't use <
.
Is -*>
and --*>
better, so that we don't go into 5 character arrows?
Agree that |
https://mermaid.js.org/syntax/flowchart.html#multi-directional-arrows We are using |
@sidharthv96 Yes, from what I can see the |
@sidharthv96 would love to make progress with this PR, could you please help me tag the correct people for the second review you requested? |
I know we've gone back and forth on this for a while, but this seems like the best option for our users. Initially I thought we could never use @mermaid-js/atlantians thoughts? |
@Ronid1 Thanks for adding this feature. One of the challenges for Mermaid is to keep the syntaxes coherent between the different diagrams. The proposed syntax offers better readability and stays pretty consistent with the flowchart syntax for multi-directional arrows. |
@Ronid1 can you please resolve the conflicts? |
08e4142
to
e852156
Compare
@sidharthv96 should be good to go now |
@sidharthv96 arrow pointer position fixed |
@sidharthv96 bumping |
…feature/4051_sequence_diagram-multi-directional-arrow
I think the auto-numbering should be solved as a separate issue. Seems to me that the approach to fixing that has to do with moving the position of the number, and not with the arrowhead. Happy to open an issue and work on it. |
…feature/4051_sequence_diagram-multi-directional-arrow
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
bumping @sidharthv96 |
📑 Summary
Added Bi-directional arrow support for dotted and solid lines in sequence diagram
Resolves #4051
📏 Design Decisions
Added new syntax
<<->>
for solid bidirectional arrowAdded new syntax
<<-->>
for dotted bidirectional arrowPlease approve new syntax.
Added unit tests for both arrows.
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch