Actor type in sequence diagram has wrong ordering #5525
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
When using the
actor
participant type, z-ordering is incorrect, showing the line above other elements like notes.Steps to reproduce
actor
https://develop.git.mermaid.live/edit#pako:eNpdkD0OwjAMha9ieWEpF4hEJX4GmFmzmMS0EUlc0hQJIe5OKEVUeHLee5-d5IFGLKPCnq8DR8M7R02ioCOUIpMlwdo7w3NhI6fPsaOUnXEdxQzblpJ3U25ElnVdkgr27keUpsijPRqz2VEyg9x4WljBCK--BdKWCPc_5R-bbqDgsAhA3kMjYrHCwCmQs-WRjzeiMbccWKMqraV00ajjs-RoyHK8R4Mqp4ErHDpL-fshqM7ke36-AL2pYU4
Screenshots
Code Sample
Setup
Suggested Solutions
I'm not super familiar with how the svg code works, but from an initial glace it seems suspicious that this line calls
lower
directly onelem
mermaid/packages/mermaid/src/diagrams/sequence/svgDraw.js
Line 418 in 7bcba29
This is opposed to how it works in the participant function, in which a
g
is created first to contain the elements:mermaid/packages/mermaid/src/diagrams/sequence/svgDraw.js
Line 333 in 7bcba29
Additional Context
No response
The text was updated successfully, but these errors were encountered: