The order of svg is reversed for sequence diagram participant nodes #4946
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
Hi team we are using this package to support mermaid in Excalidraw. To compute the position and dimensions I am using the SVG rendered by mermaid.
However when updating from
10.2.3
to10.3.0
(so I can get the Actor Creation and Destruction supported 10.3.0 onwards), the order participant nodes is reversed and its only reversed for actor type Participant which makes the migration tricky.Eg let's consider this diagram
The indexes in the diagram resembles the order of nodes on the DOM
Further more the order when mixing actor symbols and participants is even more confusing
Was there any specific reason for this change ?
Also I would like to know if the team is open to storing the dimensions and coordinates when using the API
mermaid.mermaidAPI.getDiagramFromText
? That would help us in not being dependent on SVG for calculating positions / dimensions.Steps to reproduce
Try in different versions (10.2.3 vs 10.3.0)
Screenshots
Shared above
Code Sample
No response
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: