mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Fix linters
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
@@ -12,6 +13,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Sankey diagram demos</h1>
|
<h1>Sankey diagram demos</h1>
|
||||||
<h2>Simple flow</h2>
|
<h2>Simple flow</h2>
|
||||||
@@ -36,4 +38,5 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@@ -42,7 +42,7 @@ export const draw = function (text: string, id: string, _version: string, diagOb
|
|||||||
}
|
}
|
||||||
// Launch parsing
|
// Launch parsing
|
||||||
diagObj.parser.parse(text);
|
diagObj.parser.parse(text);
|
||||||
debugger;
|
// debugger;
|
||||||
log.debug('Parsed sankey diagram');
|
log.debug('Parsed sankey diagram');
|
||||||
|
|
||||||
// Figure out what is happening there
|
// Figure out what is happening there
|
||||||
@@ -86,7 +86,7 @@ export const draw = function (text: string, id: string, _version: string, diagOb
|
|||||||
// ]
|
// ]
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
let graph = {
|
const graph = {
|
||||||
nodes: [],
|
nodes: [],
|
||||||
links: []
|
links: []
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,7 @@ export const draw = function (text: string, id: string, _version: string, diagOb
|
|||||||
graph.links.push({ source: link.source.ID, target: link.target.ID, value: link.value });
|
graph.links.push({ source: link.source.ID, target: link.target.ID, value: link.value });
|
||||||
});
|
});
|
||||||
|
|
||||||
debugger;
|
// debugger;
|
||||||
// const graph = {
|
// const graph = {
|
||||||
// nodes: [
|
// nodes: [
|
||||||
// { id: 'Alice' },
|
// { id: 'Alice' },
|
||||||
|
Reference in New Issue
Block a user