Updated readme and changes to the coverage setting on the ci server

This commit is contained in:
knsv 2014-11-27 19:34:35 +01:00
parent 12fdc9f10d
commit f1bffb5814
3 changed files with 12 additions and 12 deletions

View File

@ -4,5 +4,5 @@
addons:
code_climate:
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
after_script:
- cat coverage/lcov.info | codeclimate
after_script:
- cat coverage/lcov.info | codeclimate

View File

@ -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.

View File

@ -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;