From 6e234f135d51707b4d7787bf6319d563ff052ac0 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Fri, 18 Nov 2022 01:13:44 +0000 Subject: [PATCH] docs: create some basic mermaid mindmap demos --- demos/index.html | 3 ++ demos/mindmap.html | 108 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 demos/mindmap.html diff --git a/demos/index.html b/demos/index.html index a65681ddf..da27cdcff 100644 --- a/demos/index.html +++ b/demos/index.html @@ -48,6 +48,9 @@
  • Journey

  • +
  • +

    Mindmap

    +
  • Pie

  • diff --git a/demos/mindmap.html b/demos/mindmap.html new file mode 100644 index 000000000..a5b554a1a --- /dev/null +++ b/demos/mindmap.html @@ -0,0 +1,108 @@ + + + + + + Mindmap Mermaid Quick Test Page + + + + + +

    Mindmap diagram demo

    +
    +        mindmap
    +        root
    +            child1((Circle))
    +                grandchild 1
    +                grandchild 2
    +            child2(Round rectangle)
    +                grandchild 3
    +                grandchild 4
    +            child3[Square]
    +                grandchild 5
    +                ::icon(mdi mdi-fire)
    +                gc6((grand
    child 6)) + ::icon(mdi mdi-fire) + gc7((grand
    grand
    child 8)) +
    + +

    Mindmap with root wrapping text and a shape

    +
    +        mindmap
    +            root[A root with a long text that wraps to keep the node size in check]
    +    
    + + + +