mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-26 02:39:41 +02:00
New docs and updated dist
This commit is contained in:
50
test/examples/issue_211.html
Normal file
50
test/examples/issue_211.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<script src="../../dist/mermaid.js"></script>
|
||||
<script>
|
||||
var config = {
|
||||
startOnLoad:true,
|
||||
callback:function(id){
|
||||
console.log(id,' rendered');
|
||||
},
|
||||
flowchart:{
|
||||
useMaxWidth:true,
|
||||
htmlLabels:true
|
||||
}
|
||||
};
|
||||
mermaid.initialize(config);
|
||||
</script>
|
||||
<script>
|
||||
function coolAction(){
|
||||
console.log('Got callback in user defined function');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.cluster {
|
||||
fill: #fcac93;
|
||||
rx:4px;
|
||||
stroke: grey;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../../dist/mermaid.forest.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Issue 211</h1>
|
||||
|
||||
<div class="mermaid" id="i211">
|
||||
|
||||
graph TD
|
||||
subgraph A
|
||||
B
|
||||
subgraph C
|
||||
D
|
||||
end
|
||||
end
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
28
test/examples/simpleBasteTag.html
Normal file
28
test/examples/simpleBasteTag.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="https://rawgit.com/knsv/mermaid/master/dist/mermaid.css">
|
||||
<base href="XXX"/>
|
||||
<script src="../../dist/mermaid.js"></script>
|
||||
</head><body>
|
||||
<script>
|
||||
mermaid.startOnLoad=true;
|
||||
//mermaid.initialize();
|
||||
</script>
|
||||
<div class="mermaid">
|
||||
graph LR;
|
||||
A-->B;
|
||||
B-->C;
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
sequenceDiagram
|
||||
Merchant->>Customer: foo
|
||||
Note right of Person: Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row. Bob thinks a long long time, so long that the text does not fit In a row.
|
||||
|
||||
Person-->>Customer: bar
|
||||
|
||||
Note left of Person: Foo checks up on him
|
||||
</div>
|
||||
</body></html>
|
Reference in New Issue
Block a user