mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-20 00:36:44 +02:00
Prettify
This commit is contained in:
@@ -1,23 +1,22 @@
|
|||||||
<!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>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<title>States Mermaid Quick Test Page</title>
|
||||||
|
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
|
||||||
|
<style>
|
||||||
|
div.mermaid {
|
||||||
|
/* font-family: 'trebuchet ms', verdana, arial; */
|
||||||
|
font-family: 'Courier New', Courier, monospace !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
<head>
|
<body>
|
||||||
<meta charset="utf-8" />
|
<h1>Sankey diagram demos</h1>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<h2>Simple example</h2>
|
||||||
<title>States Mermaid Quick Test Page</title>
|
<pre class="mermaid">
|
||||||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
|
|
||||||
<style>
|
|
||||||
div.mermaid {
|
|
||||||
/* font-family: 'trebuchet ms', verdana, arial; */
|
|
||||||
font-family: 'Courier New', Courier, monospace !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<h1>Sankey diagram demos</h1>
|
|
||||||
<h2>Simple example</h2>
|
|
||||||
<pre class="mermaid">
|
|
||||||
sankey
|
sankey
|
||||||
|
|
||||||
node[title="hello, how are you?"]
|
node[title="hello, how are you?"]
|
||||||
@@ -26,11 +25,12 @@
|
|||||||
First -> 30 -> Second
|
First -> 30 -> Second
|
||||||
First -> 10 -> Third
|
First -> 10 -> Third
|
||||||
Second -> 20 -> Third
|
Second -> 20 -> Third
|
||||||
</pre>
|
</pre
|
||||||
<!-- node[title="hello, mister "sankey", backslash for you "] -->
|
>
|
||||||
|
<!-- node[title="hello, mister "sankey", backslash for you "] -->
|
||||||
|
|
||||||
<h2>Energy flow</h2>
|
<h2>Energy flow</h2>
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
sankey
|
sankey
|
||||||
|
|
||||||
"Agricultural 'waste'" -> 124.729 -> "Bio-conversion"
|
"Agricultural 'waste'" -> 124.729 -> "Bio-conversion"
|
||||||
@@ -101,19 +101,19 @@
|
|||||||
"UK land based bioenergy" -> 182.01 -> "Bio-conversion"
|
"UK land based bioenergy" -> 182.01 -> "Bio-conversion"
|
||||||
"Wave" -> 19.013 -> "Electricity grid"
|
"Wave" -> 19.013 -> "Electricity grid"
|
||||||
"Wind" -> 289.366 -> "Electricity grid"
|
"Wind" -> 289.366 -> "Electricity grid"
|
||||||
</pre>
|
</pre
|
||||||
|
>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
theme: 'default',
|
theme: 'default',
|
||||||
logLevel: 3,
|
logLevel: 3,
|
||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
flowchart: { curve: 'basis' },
|
flowchart: { curve: 'basis' },
|
||||||
gantt: { axisFormat: '%m/%d/%Y' },
|
gantt: { axisFormat: '%m/%d/%Y' },
|
||||||
sequence: { actorMargin: 50 },
|
sequence: { actorMargin: 50 },
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
</html>
|
||||||
</html>
|
|
||||||
|
3
run
3
run
@@ -47,6 +47,7 @@ Run commonly used commands within docker containers
|
|||||||
\033[1m$name dev\033[0m # Run dev server with examples, open http://localhost:9000
|
\033[1m$name dev\033[0m # Run dev server with examples, open http://localhost:9000
|
||||||
|
|
||||||
$name add # Add package, 'run add d3-sankey'
|
$name add # Add package, 'run add d3-sankey'
|
||||||
|
$name prettier # Prettify a file 'run prettier <path-to-file>'
|
||||||
$name lint # Equvalent of pnpm -w run lint:fix
|
$name lint # Equvalent of pnpm -w run lint:fix
|
||||||
$name test # Run unit tests
|
$name test # Run unit tests
|
||||||
$name vitest # Run watcher for unit tests
|
$name vitest # Run watcher for unit tests
|
||||||
@@ -65,4 +66,4 @@ echo -n -e "$usage"
|
|||||||
$name help
|
$name help
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user