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: 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

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

View File

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