mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Lint fixes
This commit is contained in:
parent
5610185050
commit
2cb54293f8
@ -13,9 +13,18 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="mermaid">
|
||||
info
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
graph TD
|
||||
subgraph one
|
||||
1
|
||||
end
|
||||
</div>
|
||||
<!-- <div class="mermaid">
|
||||
graph TD
|
||||
A --> B --> C
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<script src="./mermaid.js"></script>
|
||||
<script>
|
||||
|
@ -373,8 +373,8 @@ export const addSubGraph = function (_id, list, _title) {
|
||||
let nodeList = []
|
||||
|
||||
nodeList = uniq(nodeList.concat.apply(nodeList, list))
|
||||
for(let i=0;i<nodeList.length;i++){
|
||||
if(nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i];
|
||||
for (let i = 0; i < nodeList.length; i++) {
|
||||
if (nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i]
|
||||
}
|
||||
|
||||
id = id || ('subGraph' + subCount)
|
||||
|
Loading…
x
Reference in New Issue
Block a user