Skip to content
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

Notes positionning in state diagram does not respect syntax #6108

Open
FlorentP42 opened this issue Dec 3, 2024 · 0 comments
Open

Notes positionning in state diagram does not respect syntax #6108

FlorentP42 opened this issue Dec 3, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@FlorentP42
Copy link

Description

When asking to draw a note "left of" or "right of" some other object, it appears to work the opposite way that you would expect.

I assume "Note right of Block" means the note should be drawn on the right of the block: it is drawn on the left.

On top of that most of the time the note is drawn on top or under the actual block when I would expect it to be inline (centered vertically) with the block, or if it's not the expected default behavior, to have a way to enforce that behavior.

Steps to reproduce

  1. Go the the main documentation example of State Diagrams and look at the Notes section.
  2. Notice that it renders the wrong way :
    image

Screenshots

No response

Code Sample

stateDiagram-v2
        State1: The state with a note
        note right of State1
            Important information! You can write
            notes.
        end note
        State1 --> State2
        note left of State2 : This is the note to the left.

Setup

  • Mermaid version: 11.4.1 (according to the documentation website)
  • Browser and Version: Any (tested on Firefox 132.0.2 and Edge 131.0.2903.70)

Suggested Solutions

No response

Additional Context

No response

@FlorentP42 FlorentP42 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 3, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant