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:
|
||||
code_climate:
|
||||
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
|
||||
after_script:
|
||||
- cat coverage/lcov.info | codeclimate
|
||||
after_script:
|
||||
- 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;
|
||||
``
|
||||
```
|
||||
|
||||
## 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
|
||||
* 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>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mermaid">
|
||||
<div class="mermaid2">
|
||||
sequence TB
|
||||
apa:Apanhoppar
|
||||
bapa:Server
|
||||
chimp:Chimpansenhoppar
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
<div class="mermaid2">
|
||||
graph TB;A(Astrid <br> b)-->B[Irene];
|
||||
A-->C[Christer];
|
||||
B-->D[Micke];
|
||||
@ -36,14 +36,10 @@
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
graph TD;
|
||||
eag[Läsa bok 2]-->b;
|
||||
b{Fundera}---|Klocka|c(Vidar);
|
||||
b-->|Lego text|d(Bjarke går);
|
||||
e(orphan);
|
||||
style eag red;
|
||||
id1>This is the text in the box];
|
||||
</div>
|
||||
<h1>Shapes</h1>
|
||||
<div class="mermaid">
|
||||
<div class="mermaidw">
|
||||
graph TD;
|
||||
sq[Square shape]-->ci((Circle shape));
|
||||
od>Odd shape]---|Two line<br>edge comment|ro;
|
||||
|
Loading…
x
Reference in New Issue
Block a user