Merlive

The library / State diagrams

State diagrams, drawn twice

Read into the same boxes and links as a flowchart, so it is placed by the same rules and steps through the same way.

27 samples: 19 drawn as written, 8 drawn less something. Mermaid’s side is mermaid-cli 12.2.0 as it comes, on white. Merlive’s is 0.6.1 in its own look. What is read of a state diagram.

Transitions

Drawn

Mermaid
Transitions, as Mermaid draws it
Merlive
Transitions, as Merlive draws it
The Mermaid
stateDiagram-v2
  Draft --> Submitted
  Submitted --> Approved
  Submitted --> Draft
Draw it yourself

Where it starts and where it ends

Drawn, less something Where it starts and where it ends are pills that say so, not dots

Mermaid
Where it starts and where it ends, as Mermaid draws it
Merlive
Where it starts and where it ends, as Merlive draws it
The Mermaid
stateDiagram-v2
  [*] --> Draft
  Draft --> Delivered
  Draft --> Cancelled
  Delivered --> [*]
  Cancelled --> [*]
Draw it yourself

A composite state

Drawn, less something A transition to a composite state is drawn to where it starts inside, and one from it from where it ends

Mermaid
A composite state, as Mermaid draws it
Merlive
A composite state, as Merlive draws it
The Mermaid
stateDiagram-v2
  [*] --> Draft
  Draft --> Review
  state Review {
    [*] --> Screening
    Screening --> Decision
    Decision --> [*]
  }
  Review --> Published
Draw it yourself

A composite state named on a line of its own

Drawn, less something A transition to a composite state is drawn to where it starts inside, and one from it from where it ends

Mermaid
A composite state named on a line of its own, as Mermaid draws it
Merlive
A composite state named on a line of its own, as Merlive draws it
The Mermaid
stateDiagram-v2
  Checks : Checks before sending
  state Checks {
    Credit --> Stock
  }
  Draft --> Checks
Draw it yourself

A choice

Drawn, less something A choice is a decision the size of every box, with its name in it; Mermaid draws a small diamond with none

Mermaid
A choice, as Mermaid draws it
Merlive
A choice, as Merlive draws it
The Mermaid
stateDiagram-v2
  state enough <<choice>>
  Checked --> enough
  enough --> Approved : in budget
  enough --> Held : over budget
Draw it yourself

A fork and a join

Drawn

Mermaid
A fork and a join, as Mermaid draws it
Merlive
A fork and a join, as Merlive draws it
The Mermaid
stateDiagram-v2
  state split <<fork>>
  state together <<join>>
  Approved --> split
  split --> Picking
  split --> Invoicing
  Picking --> together
  Invoicing --> together
  together --> Sent
Draw it yourself

A note on one line, on either side

Drawn, less something A note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry it

Mermaid
A note on one line, on either side, as Mermaid draws it
Merlive
A note on one line, on either side, as Merlive draws it
The Mermaid
stateDiagram-v2
  Draft --> Sent
  note right of Draft : Only its author sees it.
  note left of Sent : Sent by email.
Draw it yourself

A note written over several lines

Drawn, less something A note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry it

Mermaid
A note written over several lines, as Mermaid draws it
Merlive
A note written over several lines, as Merlive draws it
The Mermaid
stateDiagram-v2
  Draft --> Sent
  note right of Sent
    Sent to the supplier
    by email.
  end note
Draw it yourself

A title and settings in front matter

Drawn, less something Mermaid's own settings are read past: the look is the design's

Mermaid
A title and settings in front matter, as Mermaid draws it
Merlive
A title and settings in front matter, as Merlive draws it
The Mermaid
---
title: An order
config:
  theme: default
  look: classic
  layout: dagre
---
stateDiagram-v2
  Draft --> Sent
Draw it yourself