mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Updated readme and changes to the coverage setting on the ci server
This commit is contained in:
parent
12fdc9f10d
commit
f1bffb5814
@ -4,5 +4,5 @@
|
|||||||
addons:
|
addons:
|
||||||
code_climate:
|
code_climate:
|
||||||
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
|
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
|
||||||
after_script:
|
after_script:
|
||||||
- cat coverage/lcov.info | codeclimate
|
- cat coverage/lcov.info | codeclimate
|
@ -238,11 +238,15 @@ It is possible to style links for instance a link that is going back in the flow
|
|||||||
|
|
||||||
```
|
```
|
||||||
linkStyle 3 stroke:#ff3,stroke-width:4px;
|
linkStyle 3 stroke:#ff3,stroke-width:4px;
|
||||||
``
|
```
|
||||||
|
|
||||||
## Interaction
|
## Interaction
|
||||||
|
|
||||||
It is possible to bind a click event to a node: click nodeId callback.
|
It is possible to bind a click event to a node:
|
||||||
|
|
||||||
|
```
|
||||||
|
click nodeId callback
|
||||||
|
```
|
||||||
|
|
||||||
* nodeId is the id of the node
|
* nodeId is the id of the node
|
||||||
* callback is the name of a javascript function defined on the page displaying the graph, the function will be called with the nodeId as parameter.
|
* callback is the name of a javascript function defined on the page displaying the graph, the function will be called with the nodeId as parameter.
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="mermaid">
|
<div class="mermaid2">
|
||||||
sequence TB
|
sequence TB
|
||||||
apa:Apanhoppar
|
apa:Apanhoppar
|
||||||
bapa:Server
|
bapa:Server
|
||||||
chimp:Chimpansenhoppar
|
chimp:Chimpansenhoppar
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid">
|
<div class="mermaid2">
|
||||||
graph TB;A(Astrid <br> b)-->B[Irene];
|
graph TB;A(Astrid <br> b)-->B[Irene];
|
||||||
A-->C[Christer];
|
A-->C[Christer];
|
||||||
B-->D[Micke];
|
B-->D[Micke];
|
||||||
@ -36,14 +36,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mermaid">
|
<div class="mermaid">
|
||||||
graph TD;
|
graph TD;
|
||||||
eag[Läsa bok 2]-->b;
|
id1>This is the text in the box];
|
||||||
b{Fundera}---|Klocka|c(Vidar);
|
|
||||||
b-->|Lego text|d(Bjarke går);
|
|
||||||
e(orphan);
|
|
||||||
style eag red;
|
|
||||||
</div>
|
</div>
|
||||||
<h1>Shapes</h1>
|
<h1>Shapes</h1>
|
||||||
<div class="mermaid">
|
<div class="mermaidw">
|
||||||
graph TD;
|
graph TD;
|
||||||
sq[Square shape]-->ci((Circle shape));
|
sq[Square shape]-->ci((Circle shape));
|
||||||
od>Odd shape]---|Two line<br>edge comment|ro;
|
od>Odd shape]---|Two line<br>edge comment|ro;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user