Sequence diagram arrows only go left to right
See original GitHub issueArrows must be left to right, trying to do right to left causes errors:
sequenceDiagram
A -> B: Thing
A <- B: Return
Parse error on line 3:
... A -> B: Thing A <- B: Return
----------------------^
Expecting 'NL', 'AS', ',', 'SOLID_OPEN_ARROW', 'DOTTED_OPEN_ARROW', 'SOLID_ARROW', 'DOTTED_ARROW', 'SOLID_CROSS', 'DOTTED_CROSS', 'TXT', got '-'
This is something I was using in my PlantUML diagrams but it seems like Mermaid doesn’t like it. Is this something you’d like to see added?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Sequence diagram arrows only go left to right · Issue #825
I'd be happy to work on this. I need some validation in how the right to left arrows will stack with the shortcut...
Read more >Left-to-right bias in UML sequence diagrams
This article discusses how UML sequence diagrams are biased towards left-to-right readers and shows how Trace Modeler solves this problem.
Read more >UML 2 Tutorial - Sequence Diagram
Messages are displayed as arrows. Messages can be complete, lost or found; synchronous or asynchronous; call or signal. In the following diagram, the...
Read more >Sequence Diagram Tutorial - Complete Guide ... - Creately
Message Arrows An arrow from the Message Caller to the Message Receiver specifies a message in a sequence diagram. A message can flow...
Read more >Sequence Diagram syntax and features
Note that this is only true for sequence diagrams, rules are different for the other ... Text alignment on arrows can be set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
I was actually trying in a flow chart to have an arrow in the opposite direction, and finally found this issue.
My view and suggestion is that “logically” it could be a forward arrow, in how the layout and internal logic is handled, but the feature could perhaps simply be to enable ability to render an arrow in the opposite direction?
That makes sense for compatability. Ideally mermaid should handle the PlantUML syntax. I will add this to the “backlog” but I cant promise any release date. This is a good starter task.