Merlive

The library / Flowcharts

Flowcharts, drawn twice

Boxes and links, placed by the eight placement rules: the main path in one straight line, every box one size, lines that turn at right angles and go round boxes.

70 samples: 49 drawn as written, 20 drawn less something, 1 partly read. 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 flowchart.

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: Order to cash
config:
  look: handDrawn
  theme: neutral
---
flowchart LR
  A[Order] --> B[Cash]
Draw it yourself

Settings in an init directive

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

Mermaid
Settings in an init directive, as Mermaid draws it
Merlive
Settings in an init directive, as Merlive draws it
The Mermaid
%%{init: {"flowchart": {"curve": "basis"}, "theme": "forest"} }%%
flowchart LR
  A[Order] --> B[Cash]
Draw it yourself

A Font Awesome icon in a label

Drawn, less something The icons are Merlive's own drawings of a truck and a tick, not Font Awesome's

Mermaid
A Font Awesome icon in a label, as Mermaid draws it
Merlive
A Font Awesome icon in a label, as Merlive draws it
The Mermaid
flowchart LR
  A["fa:fa-truck Shipped"] --> B[fa:fa-check Delivered]
Draw it yourself

Shape: Round edges

Drawn, less something Its corners are the design's, the same as every box

Mermaid
Shape: Round edges, as Mermaid draws it
Merlive
Shape: Round edges, as Merlive draws it
The Mermaid
flowchart LR
  A[Before] --> B(Checked) --> C[After]
Draw it yourself

Shape: Circle

Drawn, less something Drawn as a pill: a circle the height of a box would hold three letters

Mermaid
Shape: Circle, as Mermaid draws it
Merlive
Shape: Circle, as Merlive draws it
The Mermaid
flowchart LR
  A[Before] --> B((Hub)) --> C[After]
Draw it yourself

Shapes written as @{ shape: … }, with a label

Partly read its shapes are read as box, diamond, cylinder, document, pill

Mermaid
Shapes written as @{ shape: … }, with a label, as Mermaid draws it
Merlive
Shapes written as @{ shape: … }, with a label, as Merlive draws it
The Mermaid
flowchart TD
  A@{ shape: rect, label: "Take the order" } --> B@{ shape: diam, label: "In stock?" }
  B --> C@{ shape: cyl, label: "Orders" }
  B --> D@{ shape: doc, label: "Back order note" }
  D --> E@{ shape: stadium, label: "Done" }
Draw it yourself

Every one of the 53 newer shapes

Drawn, less something Those Merlive has a drawing for are drawn as themselves; the rest are boxes

Mermaid
Every one of the 53 newer shapes, as Mermaid draws it
Merlive
Every one of the 53 newer shapes, as Merlive draws it
The Mermaid
flowchart TD
  n0@{ shape: bang, label: "bang" }
  n1@{ shape: browser, label: "browser" }
  n2@{ shape: bucket, label: "bucket" }
  n3@{ shape: notch-rect, label: "notch-rect" }
  n4@{ shape: cloud, label: "cloud" }
  n5@{ shape: hourglass, label: "hourglass" }
  n6@{ shape: bolt, label: "bolt" }
  n7@{ shape: brace, label: "brace" }
  n8@{ shape: brace-r, label: "brace-r" }
  n9@{ shape: braces, label: "braces" }
  n10@{ shape: console, label: "console" }
  n11@{ shape: lean-r, label: "lean-r" }
  n12@{ shape: lean-l, label: "lean-l" }
  n13@{ shape: datastore, label: "datastore" }
  n14@{ shape: cyl, label: "cyl" }
  n15@{ shape: diam, label: "diam" }
  n16@{ shape: delay, label: "delay" }
  n17@{ shape: h-cyl, label: "h-cyl" }
  n18@{ shape: lin-cyl, label: "lin-cyl" }
  n19@{ shape: curv-trap, label: "curv-trap" }
  n20@{ shape: div-rect, label: "div-rect" }
  n21@{ shape: doc, label: "doc" }
  n22@{ shape: rounded, label: "rounded" }
  n23@{ shape: tri, label: "tri" }
  n24@{ shape: folder, label: "folder" }
  n25@{ shape: fork, label: "fork" }
  n26@{ shape: win-pane, label: "win-pane" }
  n27@{ shape: f-circ, label: "f-circ" }
  n28@{ shape: lin-doc, label: "lin-doc" }
  n29@{ shape: lin-rect, label: "lin-rect" }
  n30@{ shape: notch-pent, label: "notch-pent" }
  n31@{ shape: flip-tri, label: "flip-tri" }
  n32@{ shape: sl-rect, label: "sl-rect" }
  n33@{ shape: trap-t, label: "trap-t" }
  n34@{ shape: docs, label: "docs" }
  n35@{ shape: st-rect, label: "st-rect" }
  n36@{ shape: odd, label: "odd" }
  n37@{ shape: flag, label: "flag" }
  n38@{ shape: person, label: "person" }
  n39@{ shape: hex, label: "hex" }
  n40@{ shape: trap-b, label: "trap-b" }
  n41@{ shape: rect, label: "rect" }
  n42@{ shape: circle, label: "circle" }
  n43@{ shape: sm-circ, label: "sm-circ" }
  n44@{ shape: dbl-circ, label: "dbl-circ" }
  n45@{ shape: fr-circ, label: "fr-circ" }
  n46@{ shape: bow-rect, label: "bow-rect" }
  n47@{ shape: fr-rect, label: "fr-rect" }
  n48@{ shape: cross-circ, label: "cross-circ" }
  n49@{ shape: tag-doc, label: "tag-doc" }
  n50@{ shape: tag-rect, label: "tag-rect" }
  n51@{ shape: stadium, label: "stadium" }
  n52@{ shape: text, label: "text" }
  n0 --> n9
  n1 --> n10
  n2 --> n11
  n3 --> n12
  n4 --> n13
  n5 --> n14
  n6 --> n15
  n7 --> n16
  n8 --> n17
  n9 --> n18
  n10 --> n19
  n11 --> n20
  n12 --> n21
  n13 --> n22
  n14 --> n23
  n15 --> n24
  n16 --> n25
  n17 --> n26
  n18 --> n27
  n19 --> n28
  n20 --> n29
  n21 --> n30
  n22 --> n31
  n23 --> n32
  n24 --> n33
  n25 --> n34
  n26 --> n35
  n27 --> n36
  n28 --> n37
  n29 --> n38
  n30 --> n39
  n31 --> n40
  n32 --> n41
  n33 --> n42
  n34 --> n43
  n35 --> n44
  n36 --> n45
  n37 --> n46
  n38 --> n47
  n39 --> n48
  n40 --> n49
  n41 --> n50
  n42 --> n51
  n43 --> n52
Draw it yourself

A box that is an icon

Drawn, less something The icon is Merlive's own drawing of a user, beside the label and not above it

Mermaid
A box that is an icon, as Mermaid draws it
Merlive
A box that is an icon, as Merlive draws it
The Mermaid
flowchart LR
  A@{ icon: "fa:user", form: "square", label: "Buyer", pos: "t", h: 60 } --> B[Approve]
Draw it yourself

A box that is an image

Drawn, less something The image is left out (a page of Merlive fetches nothing); its label is kept

Mermaid

Mermaid could not draw this: DOMException: EncodingError: The source image cannot be decoded.

Merlive
A box that is an image, as Merlive draws it
The Mermaid
flowchart LR
  A@{ img: "https://example.com/logo.svg", label: "Supplier", pos: "t", w: 60, h: 60, constraint: "on" } --> B[Order]
Draw it yourself

Boxes given a row and a column

Drawn, less something The rows and columns are read past: placement is Merlive's

Mermaid
Boxes given a row and a column, as Mermaid draws it
Merlive
Boxes given a row and a column, as Merlive draws it
The Mermaid
flowchart TB
  A[Quote]@{ row: 1, column: 1 } --> B[Order]@{ row: 1, column: 2 }
  B --> C[Invoice]@{ row: 2, column: 2 }
Draw it yourself

A group inside a group

Drawn

Mermaid
A group inside a group, as Mermaid draws it
Merlive
A group inside a group, as Merlive draws it
The Mermaid
flowchart TB
  subgraph site [Site]
    A[Receive]
    subgraph wh [Warehouse]
      B[Pick] --> C[Pack]
    end
    A --> B
  end
  C --> D[Ship]
Draw it yourself

A group shown collapsed

Drawn, less something Drawn open: a picture cannot be opened and closed

Mermaid
A group shown collapsed, as Mermaid draws it
Merlive
A group shown collapsed, as Merlive draws it
The Mermaid
flowchart TD
  Start --> one
  subgraph one [Checks]
    A[Credit] --> B[Stock]
  end
  one --> End
  one@{ view: collapsed }
Draw it yourself

A box styled on its own

Drawn, less something Its outline is broken, heavy and red as written, in the design's own red; its fill is the design's

Mermaid
A box styled on its own, as Mermaid draws it
Merlive
A box styled on its own, as Merlive draws it
The Mermaid
flowchart LR
  A[Order] --> B[On hold]
  style B fill:#fde,stroke:#c00,stroke-width:3px,stroke-dasharray: 5 5
Draw it yourself

A class given with :::

Drawn

Mermaid
A class given with :::, as Mermaid draws it
Merlive
A class given with :::, as Merlive draws it
The Mermaid
flowchart LR
  A[Order]:::fresh --> B[On hold]:::stopped
  classDef fresh stroke:#2e7d32
  classDef stopped stroke:#c62828
Draw it yourself

A default class for every box

Drawn, less something The default class is read past: the look is the design's

Mermaid
A default class for every box, as Mermaid draws it
Merlive
A default class for every box, as Merlive draws it
The Mermaid
flowchart LR
  A[Order] --> B[Pick]
  classDef default fill:#f9f,stroke:#333,stroke-width:2px
Draw it yourself

A box that calls a function when clicked

Drawn, less something The click is left out: a page of Merlive runs no code of yours

Mermaid
A box that calls a function when clicked, as Mermaid draws it
Merlive
A box that calls a function when clicked, as Merlive draws it
The Mermaid
flowchart LR
  A[Order] --> B[Pick]
  click A callback "Open the order"
  click B call showPick() "Show the pick list"
Draw it yourself