From 701e638907f557a53fe6c57514604a7d2c5b4a01 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Sun, 16 Apr 2017 17:30:40 +0800 Subject: [PATCH] Add demo for all the 5 diagram types --- dist/demo/index.html | 42 +++++++++++++++++++++++++++++++++++++++++- src/test.html | 39 --------------------------------------- todo.md | 3 ++- 3 files changed, 43 insertions(+), 41 deletions(-) delete mode 100644 src/test.html diff --git a/dist/demo/index.html b/dist/demo/index.html index 816215554..baa3d968f 100644 --- a/dist/demo/index.html +++ b/dist/demo/index.html @@ -5,7 +5,7 @@ Mermaid Quick Test Page - +
@@ -59,6 +59,46 @@ Add gantt diagram to demo page : 20h Add another diagram to demo page : 48h
+
+ +
+gitGraph : +options +{ + "key": "value", + "nodeWidth": 150, + "nodeSpacing" : 150 +} +end + commit + branch newbranch + checkout newbranch + commit + commit + checkout master + commit + commit + merge newbranch +
+ +
+ +
+classDiagram + Class01 <|-- AveryLongClass : Cool + Class03 *-- Class04 + Class05 o-- Class06 + Class07 .. Class08 + Class09 --> C2 : Where am i? + Class09 --* C3 + Class09 --|> Class07 + Class07 : equals() + Class07 : Object[] elementData + Class01 : size() + Class01 : int chimp + Class01 : int gorilla + Class08 <--> C2: Cool label +
- - - - -
-gitGraph : -options -{"key": "value", -"nodeWidth": 150 -} -end - commit - commit - commit - branch newbranch - checkout newbranch - commit - commit - merge master - checkout master - commit - commit -
- - diff --git a/todo.md b/todo.md index 72c2bc429..04deef43b 100644 --- a/todo.md +++ b/todo.md @@ -1,4 +1,5 @@ -- Upgrade d3 to version 4 +- upgrade d3 to version 4 - use external d3-textwrap library - Problem is it's for d3 v4 only - node console output colors like Chrome console +- default theme doesn't work for class diagram