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 ## Build
yarn build
If you want real time incremental build:
yarn build:watch yarn build:watch

15
dist/index.html vendored
View File

@ -101,20 +101,17 @@ Class08 <--> C2: Cool label
</div> </div>
<script src="./mermaid.js"></script> <script src="./mermaid.js"></script>
<script> <script>
mermaid.initialize({startOnLoad: true, theme: 'forest'}); mermaid.initialize({ theme: 'forest' });
</script> </script>
<script> <script>
function testClick(nodeId) { function testClick(nodeId) {
console.log("clicked", nodeId); console.log("clicked", nodeId)
var originalBgColor = document.querySelector('body').style.backgroundColor; var originalBgColor = document.querySelector('body').style.backgroundColor
document.querySelector('body').style.backgroundColor = 'yellow'; document.querySelector('body').style.backgroundColor = 'yellow'
setTimeout(function() { setTimeout(function() {
document.querySelector('body').style.backgroundColor = originalBgColor; document.querySelector('body').style.backgroundColor = originalBgColor
}, 100); }, 100)
} }
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
{ {
"name": "mermaid", "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.", "description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"main": "dist/mermaid.core.js", "main": "dist/mermaid.core.js",
"keywords": [ "keywords": [

View File

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