Fix issues of last PR

This commit is contained in:
Tyler Long 2017-12-26 20:58:54 +08:00
parent 8edd89c665
commit 8848203d90
4 changed files with 11 additions and 14 deletions

View File

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

15
dist/index.html vendored
View File

@ -101,20 +101,17 @@ Class08 <--> C2: Cool label
</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>

View File

@ -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": [

View File

@ -11,6 +11,10 @@
stroke-width: 1px;
}
.node.clickable {
cursor: pointer;
}
.edgePath .path {
stroke: @lineColor;
stroke-width: 1.5px;