Skip to content

Commit

Permalink
Fix issues of last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Dec 26, 2017
1 parent 8edd89c commit 8848203
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@ Make sure you have Chrome browser installed, this project uses Chrome headless t

## Build

yarn build

If you want real time incremental build:

yarn build:watch


Expand Down
15 changes: 6 additions & 9 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,17 @@
</div>
<script src="./mermaid.js"></script>
<script>
mermaid.initialize({startOnLoad: true, theme: 'forest'});
mermaid.initialize({ theme: 'forest' });
</script>
<script>
function testClick(nodeId) {
console.log("clicked", nodeId);
var originalBgColor = document.querySelector('body').style.backgroundColor;
document.querySelector('body').style.backgroundColor = 'yellow';
console.log("clicked", nodeId)
var originalBgColor = document.querySelector('body').style.backgroundColor
document.querySelector('body').style.backgroundColor = 'yellow'
setTimeout(function() {
document.querySelector('body').style.backgroundColor = originalBgColor;
}, 100);

document.querySelector('body').style.backgroundColor = originalBgColor
}, 100)
}

</script>

</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "7.1.1",
"version": "7.1.2",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"main": "dist/mermaid.core.js",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions src/less/neutral/flow.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
stroke-width: 1px;
}

.node.clickable {
cursor: pointer;
}

.edgePath .path {
stroke: @lineColor;
stroke-width: 1.5px;
Expand Down

0 comments on commit 8848203

Please sign in to comment.