Debian Codegraph @

docs/src/markdown/.snippets/uml.md

raw
1 <script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script>
2 <script>
3 // Our loader looks for `mermaidConfig` and will load the the appropriate
4 // config based on our current scheme: light, dark, etc.
5 window.mermaidConfig = {
6 dracula: {
7 startOnLoad: false,
8 theme: "base",
9 themeCSS: "\
10 {\
11 --drac-page-bg: hsl(233, 15%, 23%);\
12 --drac-white-fg: hsl(60, 30%, 96%);\
13 --drac-purple-fg: hsl(265, 89%, 78%);\
14 --drac-purple-bg: hsl(265, 25%, 39%);\
15 --drac-yellow-fg: hsl(65, 92%, 76%);\
16 }\
17 \
18 /* General */\
19 {\
20 background-color: var(--drac-page-bg);\
21 }\
22 \
23 /* Entity Relationship */\
24 defs marker#ZERO_OR_MORE_END circle {\
25 fill: var(--drac-page-bg) !important;\
26 stroke: var(--drac-purple-fg) !important;\
27 }\
28 defs marker#ZERO_OR_MORE_END path {\
29 stroke: var(--drac-purple-fg) !important;\
30 }\
31 defs marker#ZERO_OR_MORE_START circle{\
32 fill: var(--drac-page-bg) !important;\
33 stroke: var(--drac-purple-fg) !important;\
34 }\
35 defs marker#ZERO_OR_MORE_START path {\
36 stroke: var(--drac-purple-fg) !important;\
37 }\
38 defs marker#ONLY_ONE_START path {\
39 stroke: var(--drac-purple-fg) !important;\
40 }\
41 defs marker#ONLY_ONE_END path {\
42 stroke: var(--drac-purple-fg) !important;\
43 }\
44 defs marker#ZERO_OR_ONE_START path {\
45 stroke: var(--drac-purple-fg) !important;\
46 }\
47 defs marker#ZERO_OR_ONE_END path {\
48 stroke: var(--drac-purple-fg) !important;\
49 }\
50 defs marker#ONE_OR_MORE_START path {\
51 stroke: var(--drac-purple-fg) !important;\
52 }\
53 defs marker#ONE_OR_MORE_END path {\
54 stroke: var(--drac-purple-fg) !important;\
55 }\
56 \
57 /* Flowchart */\
58 .labelText,\
59 .label text {\
60 fill: var(--drac-purple-fg);\
61 }\
62 \
63 .edgeLabel text {\
64 fill: var(--drac-purple-fg) !important;\
65 }\
66 .edgeLabel rect {\
67 opacity: 0.5 !important;\
68 fill: var(--drac-purple-bg) !important;\
69 }\
70 \
71 /* Sequence */\
72 .noteText {\
73 fill: var(--drac-yellow-fg);\
74 }\
75 \
76 /* Gantt */\
77 .sectionTitle {\
78 fill: var(--drac-purple-fg) !important;\
79 }\
80 \
81 .grid .tick line {\
82 stroke: var(--drac-blue-fg) !important;\
83 }\
84 \
85 .grid .tick text {\
86 fill: var(--drac-purple-fg);\
87 }\
88 \
89 /* Class Diagram */\
90 .statediagram-state rect.divider {\
91 fill: transparent !important;\
92 }\
93 \
94 /* State Diagram */\
95 .stateGroup circle[style$=\"fill: black;\"] {\
96 fill: var(--drac-purple-bg) !important;\
97 stroke: var(--drac-purple-bg) !important;\
98 }\
99 \
100 .stateGroup circle[style$=\"fill: white;\"] {\
101 fill: var(--drac-purple-bg) !important;\
102 stroke: var(--drac-purple-fg) !important;\
103 }\
104 \
105 .stateGroup .composit {\
106 fill: var(--drac-page-bg);\
107 }\
108 /* Pie */\
109 text.slice {\
110 fill: var(--drac-white-fg) !important;\
111 }\
112 ",
113 themeVariables: {
114 darkMode: true,
115 background: "#323443",
116 mainBkg: "#604b7d",
117 textColor: "#bf95f9",
118 lineColor: "#bf95f9",
119 errorBkgColor: "#802c2c",
120 errorTextColor: "#ff5757",
121 primaryColor: "#604b7d",
122 primaryTextColor: "#bf95f9",
123 primaryBorderColor: "#bf95f9",
124 secondaryColor: "#297d3e",
125 secondaryTextColor: "#52fa7c",
126 secondaryBorderColor: "#52fa7c",
127 tertiaryColor: "#303952",
128 tertiaryTextColor: "#6071a4",
129 tertiaryBorderColor: "#6071a4",
130 noteBkgColor: "#797d45",
131 noteTextColor: "#f1fa89",
132 noteBorderColor: "#f1fa89",
133 edgeLabelBackground: "#604b7d",
134 edgeLabelText: "#604b7d",
135
136 actorLineColor: "#6071a4",
137
138 activeTaskBkgColor: "#803d63",
139 activeTaskBorderColor: "#ff7ac6",
140 doneTaskBkgColor: "#297d3e",
141 doneTaskBorderColor: "#52fa7c",
142 critBkgColor: "#802c2c",
143 critBorderColor: "#ff5757",
144 taskTextColor: "#bf95f9",
145 taskTextOutsideColor: "#bf95f9",
146 taskTextLightColor: "#bf95f9",
147 sectionBkgColor: "#bf95f9b3",
148 sectionBkgColor2: "#bf95f966",
149 altSectionBkgColor: "#323443",
150 todayLineColor: "#ff7ac6",
151 gridColor: "#6071a4",
152 defaultLinkColor: "#8be8fd",
153
154 altBackground: "#bf95f9",
155
156 classText: "#bf95f9",
157
158 fillType0: "#406080",
159 fillType1: "#46747f",
160 fillType2: "#297d3e",
161 fillType3: "#805c36",
162 fillType4: "#803d63",
163 fillType5: "#604b7d",
164 fillType6: "#802c2c",
165 fillType7: "#797d45",
166 fillType8: "#7c7c79"
167 },
168 flowchart: {
169 htmlLabels: false
170 },
171 er: {
172 useMaxWidth: false
173 },
174 sequence: {
175 useMaxWidth: false,
176 // Mermaid handles Firefox a little different.
177 // For some reason, it doesn't attach font sizes to the labels in Firefox.
178 // If we specify the documented defaults, font sizes are written to the labels in Firefox.
179 noteFontWeight: "14px",
180 actorFontSize: "14px",
181 messageFontSize: "16px"
182 }
183 },
184
185 default: {
186 startOnLoad: false,
187 theme: "default",
188 flowchart: {
189 htmlLabels: false
190 },
191 er: {
192 useMaxWidth: false
193 },
194 sequence: {
195 useMaxWidth: false,
196 noteFontWeight: "14px",
197 actorFontSize: "14px",
198 messageFontSize: "16px"
199 }
200 },
201
202 slate: {
203 startOnLoad: false,
204 theme: "dark",
205 flowchart: {
206 htmlLabels: false
207 },
208 er: {
209 useMaxWidth: false
210 },
211 sequence: {
212 useMaxWidth: false,
213 noteFontWeight: "14px",
214 actorFontSize: "14px",
215 messageFontSize: "16px"
216 }
217 }
218 }
219 </script>