ZiyiUSST commited on
Commit
ff74631
·
1 Parent(s): 6473878

style(mermaid): 更新登录流程图样式和主题配置

Browse files
mermaid/login-flow.png CHANGED
mermaid/login-flow.svg CHANGED
mermaid/mermaid.ipynb CHANGED
@@ -2,20 +2,20 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 37,
6
  "id": "ead9ae3f",
7
  "metadata": {},
8
  "outputs": [
9
  {
10
  "data": {
11
  "text/html": [
12
- "<svg id=\"mermaid-svg\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 330px;\" viewBox=\"0 0 330 390.90625\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><style xmlns=\"http://www.w3.org/1999/xhtml\">@import url(\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css\");</style><style>#mermaid-svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg .error-icon{fill:#552222;}#mermaid-svg .error-text{fill:#552222;stroke:#552222;}#mermaid-svg .edge-thickness-normal{stroke-width:1px;}#mermaid-svg .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg .marker{fill:#000000;stroke:#000000;}#mermaid-svg .marker.cross{stroke:#000000;}#mermaid-svg svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg p{margin:0;}#mermaid-svg .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#000000;}#mermaid-svg .cluster-label text{fill:#333;}#mermaid-svg .cluster-label span{color:#333;}#mermaid-svg .cluster-label span p{background-color:transparent;}#mermaid-svg .label text,#mermaid-svg span{fill:#000000;color:#000000;}#mermaid-svg .node rect,#mermaid-svg .node circle,#mermaid-svg .node ellipse,#mermaid-svg .node polygon,#mermaid-svg .node path{fill:#cde498;stroke:#13540c;stroke-width:1px;}#mermaid-svg .rough-node .label text,#mermaid-svg .node .label text,#mermaid-svg .image-shape .label,#mermaid-svg .icon-shape .label{text-anchor:middle;}#mermaid-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg .rough-node .label,#mermaid-svg .node .label,#mermaid-svg .image-shape .label,#mermaid-svg .icon-shape .label{text-align:center;}#mermaid-svg .node.clickable{cursor:pointer;}#mermaid-svg .root .anchor path{fill:#000000!important;stroke-width:0;stroke:#000000;}#mermaid-svg .arrowheadPath{fill:green;}#mermaid-svg .edgePath .path{stroke:#000000;stroke-width:2.0px;}#mermaid-svg .flowchart-link{stroke:#000000;fill:none;}#mermaid-svg .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg .edgeLabel p{background-color:#e8e8e8;}#mermaid-svg .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg .cluster rect{fill:#cdffb2;stroke:#6eaa49;stroke-width:1px;}#mermaid-svg .cluster text{fill:#333;}#mermaid-svg .cluster span{color:#333;}#mermaid-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(78.1578947368, 58.4615384615%, 84.5098039216%);border:1px solid #6eaa49;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#mermaid-svg rect.text{fill:none;stroke-width:0;}#mermaid-svg .icon-shape,#mermaid-svg .image-shape{background-color:#e8e8e8;text-align:center;}#mermaid-svg .icon-shape p,#mermaid-svg .image-shape p{background-color:#e8e8e8;padding:2px;}#mermaid-svg .icon-shape rect,#mermaid-svg .image-shape rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}</style><g><marker id=\"mermaid-svg_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"/></marker><g class=\"root\"><g class=\"clusters\"/><g class=\"edgePaths\"><path d=\"M161,62L161,66.167C161,70.333,161,78.667,161,86.333C161,94,161,101,161,104.5L161,108\" id=\"L_A_B_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTYxLCJ5Ijo2Mn0seyJ4IjoxNjEsInkiOjg3fSx7IngiOjE2MSwieSI6MTEyfV0=\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/><path d=\"M128.4,222.306L118.666,233.906C108.933,245.506,89.467,268.706,79.733,285.806C70,302.906,70,313.906,70,319.406L70,324.906\" id=\"L_B_C_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MTI4LjM5OTY4NjY0MzE2NDksInkiOjIyMi4zMDU5MzY2NDMxNjQ5fSx7IngiOjcwLCJ5IjoyOTEuOTA2MjV9LHsieCI6NzAsInkiOjMyOC45MDYyNX1d\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/><path d=\"M193.6,222.306L203.334,233.906C213.067,245.506,232.533,268.706,242.267,285.806C252,302.906,252,313.906,252,319.406L252,324.906\" id=\"L_B_D_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_D_0\" data-points=\"W3sieCI6MTkzLjYwMDMxMzM1NjgzNTEsInkiOjIyMi4zMDU5MzY2NDMxNjQ5fSx7IngiOjI1MiwieSI6MjkxLjkwNjI1fSx7IngiOjI1MiwieSI6MzI4LjkwNjI1fV0=\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(70, 291.90625)\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(-8, -12)\"><foreignObject width=\"16\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"><p>是</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(252, 291.90625)\"><g class=\"label\" data-id=\"L_B_D_0\" transform=\"translate(-8, -12)\"><foreignObject width=\"16\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"><p>否</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default \" id=\"flowchart-A-0\" transform=\"translate(161, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-46\" y=\"-27\" width=\"92\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-16, -12)\"><rect/><foreignObject width=\"32\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>开始</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-B-1\" transform=\"translate(161, 183.453125)\"><polygon points=\"71.453125,0 142.90625,-71.453125 71.453125,-142.90625 0,-71.453125\" class=\"label-container\" transform=\"translate(-70.953125, 71.453125)\"/><g class=\"label\" style=\"\" transform=\"translate(-44.453125, -12)\"><rect/><foreignObject width=\"88.90625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>是否已登录?</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-C-3\" transform=\"translate(70, 355.90625)\"><rect class=\"basic label-container\" style=\"\" x=\"-62\" y=\"-27\" width=\"124\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-32, -12)\"><rect/><foreignObject width=\"64\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>进入主页</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-D-5\" transform=\"translate(252, 355.90625)\"><rect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-40, -12)\"><rect/><foreignObject width=\"80\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>跳转登录页</p></span></div></foreignObject></g></g></g></g></g></svg>"
13
  ],
14
  "text/plain": [
15
- "<mermaid.__main__.Mermaid at 0x11e6e27d0>"
16
  ]
17
  },
18
- "execution_count": 37,
19
  "metadata": {},
20
  "output_type": "execute_result"
21
  }
@@ -24,13 +24,18 @@
24
  "import mermaid as md\n",
25
  "from mermaid.graph import Graph\n",
26
  "\n",
27
- "flowchart_code = \"\"\"---\n",
28
- "config:\n",
29
- " theme: forest\n",
30
- " themeVariables:\n",
31
- " primaryColor: \"#4a9eff\"\n",
32
- " primaryTextColor: \"#fff\"\n",
33
- "---\n",
 
 
 
 
 
34
  "graph TD\n",
35
  " A[开始] --> B{是否已登录?}\n",
36
  " B -->|是| C[进入主页]\n",
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 42,
6
  "id": "ead9ae3f",
7
  "metadata": {},
8
  "outputs": [
9
  {
10
  "data": {
11
  "text/html": [
12
+ "<svg id=\"mermaid-svg\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 330px;\" viewBox=\"0 0 330 390.90625\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><style xmlns=\"http://www.w3.org/1999/xhtml\">@import url(\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css\");</style><style>#mermaid-svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#fff;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg .error-icon{fill:#fff;}#mermaid-svg .error-text{fill:#000000;stroke:#000000;}#mermaid-svg .edge-thickness-normal{stroke-width:1px;}#mermaid-svg .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg .marker{fill:#F8B229;stroke:#F8B229;}#mermaid-svg .marker.cross{stroke:#F8B229;}#mermaid-svg svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg p{margin:0;}#mermaid-svg .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#fff;}#mermaid-svg .cluster-label text{fill:#000000;}#mermaid-svg .cluster-label span{color:#000000;}#mermaid-svg .cluster-label span p{background-color:transparent;}#mermaid-svg .label text,#mermaid-svg span{fill:#fff;color:#fff;}#mermaid-svg .node rect,#mermaid-svg .node circle,#mermaid-svg .node ellipse,#mermaid-svg .node polygon,#mermaid-svg .node path{fill:#BB2528;stroke:#7C0000;stroke-width:1px;}#mermaid-svg .rough-node .label text,#mermaid-svg .node .label text,#mermaid-svg .image-shape .label,#mermaid-svg .icon-shape .label{text-anchor:middle;}#mermaid-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg .rough-node .label,#mermaid-svg .node .label,#mermaid-svg .image-shape .label,#mermaid-svg .icon-shape .label{text-align:center;}#mermaid-svg .node.clickable{cursor:pointer;}#mermaid-svg .root .anchor path{fill:#F8B229!important;stroke-width:0;stroke:#F8B229;}#mermaid-svg .arrowheadPath{fill:#0b0b0b;}#mermaid-svg .edgePath .path{stroke:#F8B229;stroke-width:2.0px;}#mermaid-svg .flowchart-link{stroke:#F8B229;fill:none;}#mermaid-svg .edgeLabel{background-color:#006100;text-align:center;}#mermaid-svg .edgeLabel p{background-color:#006100;}#mermaid-svg .edgeLabel rect{opacity:0.5;background-color:#006100;fill:#006100;}#mermaid-svg .labelBkg{background-color:rgba(0, 97, 0, 0.5);}#mermaid-svg .cluster rect{fill:#fff;stroke:hsl(0, 0%, 90%);stroke-width:1px;}#mermaid-svg .cluster text{fill:#000000;}#mermaid-svg .cluster span{color:#000000;}#mermaid-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:#fff;border:1px solid hsl(0, 0%, 90%);border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#fff;}#mermaid-svg rect.text{fill:none;stroke-width:0;}#mermaid-svg .icon-shape,#mermaid-svg .image-shape{background-color:#006100;text-align:center;}#mermaid-svg .icon-shape p,#mermaid-svg .image-shape p{background-color:#006100;padding:2px;}#mermaid-svg .icon-shape rect,#mermaid-svg .image-shape rect{opacity:0.5;background-color:#006100;fill:#006100;}#mermaid-svg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}</style><g><marker id=\"mermaid-svg_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"/></marker><marker id=\"mermaid-svg_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"/></marker><g class=\"root\"><g class=\"clusters\"/><g class=\"edgePaths\"><path d=\"M161,62L161,66.167C161,70.333,161,78.667,161,86.333C161,94,161,101,161,104.5L161,108\" id=\"L_A_B_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTYxLCJ5Ijo2Mn0seyJ4IjoxNjEsInkiOjg3fSx7IngiOjE2MSwieSI6MTEyfV0=\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/><path d=\"M128.4,222.306L118.666,233.906C108.933,245.506,89.467,268.706,79.733,285.806C70,302.906,70,313.906,70,319.406L70,324.906\" id=\"L_B_C_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MTI4LjM5OTY4NjY0MzE2NDksInkiOjIyMi4zMDU5MzY2NDMxNjQ5fSx7IngiOjcwLCJ5IjoyOTEuOTA2MjV9LHsieCI6NzAsInkiOjMyOC45MDYyNX1d\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/><path d=\"M193.6,222.306L203.334,233.906C213.067,245.506,232.533,268.706,242.267,285.806C252,302.906,252,313.906,252,319.406L252,324.906\" id=\"L_B_D_0\" class=\" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_D_0\" data-points=\"W3sieCI6MTkzLjYwMDMxMzM1NjgzNTEsInkiOjIyMi4zMDU5MzY2NDMxNjQ5fSx7IngiOjI1MiwieSI6MjkxLjkwNjI1fSx7IngiOjI1MiwieSI6MzI4LjkwNjI1fV0=\" marker-end=\"url(#mermaid-svg_flowchart-v2-pointEnd)\"/></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(70, 291.90625)\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(-8, -12)\"><foreignObject width=\"16\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"><p>是</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(252, 291.90625)\"><g class=\"label\" data-id=\"L_B_D_0\" transform=\"translate(-8, -12)\"><foreignObject width=\"16\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel \"><p>否</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default \" id=\"flowchart-A-0\" transform=\"translate(161, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-46\" y=\"-27\" width=\"92\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-16, -12)\"><rect/><foreignObject width=\"32\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>开始</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-B-1\" transform=\"translate(161, 183.453125)\"><polygon points=\"71.453125,0 142.90625,-71.453125 71.453125,-142.90625 0,-71.453125\" class=\"label-container\" transform=\"translate(-70.953125, 71.453125)\"/><g class=\"label\" style=\"\" transform=\"translate(-44.453125, -12)\"><rect/><foreignObject width=\"88.90625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>是否已登录?</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-C-3\" transform=\"translate(70, 355.90625)\"><rect class=\"basic label-container\" style=\"\" x=\"-62\" y=\"-27\" width=\"124\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-32, -12)\"><rect/><foreignObject width=\"64\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>进入主页</p></span></div></foreignObject></g></g><g class=\"node default \" id=\"flowchart-D-5\" transform=\"translate(252, 355.90625)\"><rect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\"/><g class=\"label\" style=\"\" transform=\"translate(-40, -12)\"><rect/><foreignObject width=\"80\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel \"><p>跳转登录页</p></span></div></foreignObject></g></g></g></g></g></svg>"
13
  ],
14
  "text/plain": [
15
+ "<mermaid.__main__.Mermaid at 0x11f6573d0>"
16
  ]
17
  },
18
+ "execution_count": 42,
19
  "metadata": {},
20
  "output_type": "execute_result"
21
  }
 
24
  "import mermaid as md\n",
25
  "from mermaid.graph import Graph\n",
26
  "\n",
27
+ "flowchart_code = \"\"\"\n",
28
+ "%%{init: {\n",
29
+ " 'theme': 'base',\n",
30
+ " 'themeVariables': {\n",
31
+ " 'primaryColor': '#BB2528',\n",
32
+ " 'primaryTextColor': '#fff',\n",
33
+ " 'primaryBorderColor': '#7C0000',\n",
34
+ " 'lineColor': '#F8B229',\n",
35
+ " 'secondaryColor': '#006100',\n",
36
+ " 'tertiaryColor': '#fff'\n",
37
+ " }\n",
38
+ "}}%%\n",
39
  "graph TD\n",
40
  " A[开始] --> B{是否已登录?}\n",
41
  " B -->|是| C[进入主页]\n",