mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix issues of last PR
This commit is contained in:
parent
8edd89c665
commit
8848203d90
@ -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
15
dist/index.html
vendored
@ -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>
|
||||||
|
@ -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": [
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user