Skip to content

mermaid-text: activation bar missing on rows a note occupies #54

Closed

Description

@jserv

At 83bc806 (mermaid-text 0.57.4), an activation bar is not drawn on the rows a note occupies, nor on the row between activate and the note. The bar only starts at the next message, so the participant looks inactive while the note is shown.

sequenceDiagram
    participant A
    participant B
    A->>B: start
    activate B
    Note right of B: thinking
    B-->>A: reply
    deactivate B
Loading

mermaid_text::render gives:

 ┌──────┐       ┌──────┐
 │  A   │       │  B   │
 └──────┘       └──────┘
     ┆ start        ┆
     ───────────────▸
     ┆              ┆
     ┆              ┆   ╭──────────╮
     ┆              ┆   │ thinking │
     ┆              ┆   ╰──────────╯
     ┆ reply        ██
     ◂┄┄┄┄┄┄┄┄┄┄┄┄┄┄██
     ┆              ┆
 ┌──────┐       ┌──────┐
 │  A   │       │  B   │
 └──────┘       └──────┘

Expected: B's bar (██) runs continuously from the row after start through reply, covering the four rows where it currently shows ┆. The same happens in ASCII mode with ##.

Without the note, the bar does start straight after the activating message, so the gap seems specific to note rows. That may be a case #53's activation-lane change missed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions