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