question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sequence diagram arrows only go left to right

See original GitHub issue

Arrows 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
whitelizardcommented, Nov 10, 2020

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?

3reactions
knsvcommented, Jul 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found