-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Multi directional arrows have heads of different sizes #4195
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Comments
I'm hitting this as well. The problem appears to worse the deeper the graph is. Here's an example on the live editor: (And when you go deep enough, one side of the arrowheads end up becoming almost entirely invisible.) |
Still an issue in 10.0.2: live editor and Mermaid documentation website, Firefox. |
legonigel
added a commit
to legonigel/mermaid
that referenced
this issue
Apr 10, 2023
In mermaid-js#3938, it appears that the marker sizes for pointEnd was unintentionally changed. This reverts the change in marker size. It is also possible that the intention was to change the viewBox size for both start and end, but I doubt this since it makes the arrows significantly smaller than other markers.
4 tasks
sidharthv96
added a commit
that referenced
this issue
Apr 13, 2023
Fix #4195 start and end arrow have different sizes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
In a simple flowchart with multi-directional (bidirectional) arrows, the left arrow head is about 2x the width and height each of the right head.
Steps to reproduce
Create a graph or flowchart with a double-ended arrow:
like so
but on the live demo or using the cli
Screenshots
renders like this for me:
Using the linux CLI on my real graph:

Code Sample
Setup
CLI:
mmdc version: 10.0.0
Live demo:
Mermaid version: 10.0.0
Browser and Version: Chrome Version 110.0.5481.178 (Official Build) (64-bit)
Additional Context
generated svg taken from the live demo. Notice the viewBoxes are different sizes. Changing the
pointEnd
viewBox in developer tools to0 0 10 10
results in an arrow of the same size as the large left arrow. Similarly, changing thepointStart
to0 0 12 20
results in the arrow shrinking to the same size as the right arrow.The text was updated successfully, but these errors were encountered: