Skip to content

Commit

Permalink
Updated readme and changes to the coverage setting on the ci server
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Nov 27, 2014
1 parent 12fdc9f commit f1bffb5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
addons:
code_climate:
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
after_script:
- cat coverage/lcov.info | codeclimate
after_script:
- cat coverage/lcov.info | codeclimate
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 4 additions & 8 deletions test/web.html
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
Expand Down

0 comments on commit f1bffb5

Please sign in to comment.