mermaid 10.2.4 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/accessibility.d.ts +9 -9
- package/dist/{arc-8bacdbdb.js → arc-9d741495.js} +1 -1
- package/dist/arc-da8fd8d8.js +84 -0
- package/dist/{c4Diagram-060e9a0e.js → c4Diagram-0115bee6.js} +6 -6
- package/dist/{c4Diagram-80a4d5b6.js → c4Diagram-1bdb45a8.js} +3 -3
- package/dist/{c4Diagram-73a25429.js → c4Diagram-36d27044.js} +2 -2
- package/dist/{classDiagram-440b88cd.js → classDiagram-185c1a10.js} +5 -5
- package/dist/{classDiagram-d26c05e1.js → classDiagram-5e843ae7.js} +3 -3
- package/dist/{classDiagram-50a13b48.js → classDiagram-819d3ad4.js} +7 -7
- package/dist/{classDiagram-v2-d771589e.js → classDiagram-v2-6dc3b9c3.js} +14 -14
- package/dist/{classDiagram-v2-656fc6c4.js → classDiagram-v2-8c3b3e6a.js} +6 -6
- package/dist/{classDiagram-v2-3bf7b8a0.js → classDiagram-v2-c4607319.js} +10 -10
- package/dist/config.type.d.ts +939 -40
- package/dist/{createText-a49d2d2a.js → createText-285e50b4.js} +84 -38
- package/dist/{createText-f11497a7.js → createText-2c3b104b.js} +84 -38
- package/dist/{createText-7fe61f7a.js → createText-94e3ebbf.js} +649 -620
- package/dist/defaultConfig.d.ts +5 -28
- package/dist/diagrams/gantt/ganttDb.d.ts +4 -0
- package/dist/diagrams/quadrant-chart/quadrantBuilder.d.ts +2 -2
- package/dist/diagrams/sankey/sankeyDB.d.ts +36 -0
- package/dist/diagrams/sankey/sankeyDetector.d.ts +3 -0
- package/dist/diagrams/sankey/sankeyDiagram.d.ts +2 -0
- package/dist/diagrams/sankey/sankeyRenderer.d.ts +14 -0
- package/dist/diagrams/sankey/sankeyUtils.d.ts +1 -0
- package/dist/diagrams/sequence/sequenceDb.d.ts +4 -0
- package/dist/diagrams/sequence/sequenceRenderer.d.ts +2 -2
- package/dist/diagrams/sequence/svgDraw.d.ts +2 -1
- package/dist/{edges-1ceb0db9.js → edges-558884ee.js} +219 -212
- package/dist/{edges-66ea8538.js → edges-b00f0ec2.js} +18 -9
- package/dist/{edges-1a997dfb.js → edges-df708b89.js} +35 -26
- package/dist/{erDiagram-731c3598.js → erDiagram-0ccc0425.js} +2 -2
- package/dist/{erDiagram-7c3fcf92.js → erDiagram-97139f44.js} +17 -17
- package/dist/{erDiagram-96f6e417.js → erDiagram-de1b0455.js} +6 -6
- package/dist/{flowDb-cec399e2.js → flowDb-7a27455c.js} +11 -8
- package/dist/{flowDb-9e6c6aac.js → flowDb-8f9fc471.js} +6 -3
- package/dist/{flowDb-5c3f1e8c.js → flowDb-a4faf166.js} +168 -167
- package/dist/{flowDiagram-b66fcae9.js → flowDiagram-698c8d5d.js} +7 -12
- package/dist/{flowDiagram-23e30ac7.js → flowDiagram-786cd8ff.js} +25 -31
- package/dist/{flowDiagram-cee391fd.js → flowDiagram-ccbbb58d.js} +111 -117
- package/dist/{flowDiagram-v2-586230f7.js → flowDiagram-v2-65161881.js} +9 -10
- package/dist/flowDiagram-v2-79ccd6da.js +23 -0
- package/dist/{flowDiagram-v2-fe64f300.js → flowDiagram-v2-d6437390.js} +7 -7
- package/dist/{flowchart-elk-definition-7a16b501.js → flowchart-elk-definition-3f2388fe.js} +10 -10
- package/dist/{flowchart-elk-definition-ec654d50.js → flowchart-elk-definition-6f4e6aa0.js} +5 -5
- package/dist/{flowchart-elk-definition-8bb5cff5.js → flowchart-elk-definition-7863a61f.js} +6 -6
- package/dist/ganttDiagram-3eff0dd8.js +2548 -0
- package/dist/{ganttDiagram-55b9c28c.js → ganttDiagram-60845bff.js} +127 -71
- package/dist/{ganttDiagram-4bd7e5ed.js → ganttDiagram-f2041c70.js} +138 -82
- package/dist/{gitGraphDiagram-1476080d.js → gitGraphDiagram-5269e1d6.js} +125 -37
- package/dist/{gitGraphDiagram-566a7451.js → gitGraphDiagram-a13ae597.js} +125 -37
- package/dist/{gitGraphDiagram-9c32cfbe.js → gitGraphDiagram-c3fe571f.js} +440 -425
- package/dist/{index-e316e81a.js → index-4ba10627.js} +6 -6
- package/dist/{index-1e7f2254.js → index-4c4adb72.js} +3 -3
- package/dist/{index-745c9ffe.js → index-d0b453e2.js} +4 -4
- package/dist/{infoDiagram-12c593c2.js → infoDiagram-3fa6ea12.js} +3 -3
- package/dist/{infoDiagram-8f094d68.js → infoDiagram-9c10eab1.js} +1 -1
- package/dist/{infoDiagram-f43c69c6.js → infoDiagram-c976a9ed.js} +1 -1
- package/dist/{journeyDiagram-4f4351b8.js → journeyDiagram-5120ee2f.js} +1 -3
- package/dist/{journeyDiagram-bd53a0e6.js → journeyDiagram-9f355b40.js} +5 -7
- package/dist/{journeyDiagram-cea58833.js → journeyDiagram-b6904cec.js} +156 -159
- package/dist/{layout-b178bd1a.js → layout-c5a37d74.js} +1 -1
- package/dist/{layout-de394db2.js → layout-cc6d5710.js} +1 -1
- package/dist/{line-cdde0d11.js → line-cdadca5f.js} +1 -1
- package/dist/{line-d1abfd73.js → line-ce5d1152.js} +1 -1
- package/dist/{linear-740b9032.js → linear-32da3f07.js} +1 -1
- package/dist/{linear-d8b7ca63.js → linear-db016d0c.js} +100 -100
- package/dist/{mermaid-be6aa4a6.js → mermaid-42f7bf2b.js} +1626 -3089
- package/dist/{mermaid-bf016224.js → mermaid-766fee4c.js} +648 -2109
- package/dist/{mermaid-aad43469.js → mermaid-a98f434b.js} +572 -2033
- package/dist/mermaid.core.mjs +1 -1
- package/dist/mermaid.esm.min.mjs +1 -1
- package/dist/mermaid.esm.mjs +1 -1
- package/dist/mermaid.js +4295 -4216
- package/dist/mermaid.min.js +188 -177
- package/dist/{mindmap-definition-89ece3a3.js → mindmap-definition-0ab67801.js} +3 -5
- package/dist/{mindmap-definition-814021a8.js → mindmap-definition-35a1e92c.js} +38 -40
- package/dist/{mindmap-definition-976fcb28.js → mindmap-definition-a9d0f378.js} +4 -4
- package/dist/ordinal-475e0c0c.js +82 -0
- package/dist/ordinal-5695958c.js +65 -0
- package/dist/{pieDiagram-c8640b32.js → pieDiagram-5efcb91d.js} +1 -4
- package/dist/{pieDiagram-6cdb9dc1.js → pieDiagram-6d9582b9.js} +6 -86
- package/dist/{pieDiagram-c8232900.js → pieDiagram-fd367f1f.js} +205 -267
- package/dist/{quadrantDiagram-073c0def.js → quadrantDiagram-1763608a.js} +8 -8
- package/dist/{quadrantDiagram-f7a9076b.js → quadrantDiagram-559115c7.js} +1 -1
- package/dist/{quadrantDiagram-ddc12d4e.js → quadrantDiagram-a1c81500.js} +4 -4
- package/dist/rendering-util/createText.d.ts +9 -1
- package/dist/rendering-util/handle-markdown-text.d.ts +4 -7
- package/dist/rendering-util/splitText.d.ts +24 -0
- package/dist/rendering-util/splitText.spec.d.ts +1 -0
- package/dist/rendering-util/uid.d.ts +8 -0
- package/dist/{requirementDiagram-30be3ce3.js → requirementDiagram-3256a2fe.js} +5 -7
- package/dist/{requirementDiagram-9d898ddc.js → requirementDiagram-779d93b3.js} +64 -64
- package/dist/{requirementDiagram-429b9d18.js → requirementDiagram-b2d6a344.js} +1 -3
- package/dist/sankeyDiagram-86a66bae.js +822 -0
- package/dist/sankeyDiagram-e679478d.js +649 -0
- package/dist/sankeyDiagram-ebb0d63f.js +1194 -0
- package/dist/sequenceDiagram-169f11ec.js +2210 -0
- package/dist/{sequenceDiagram-25e2353a.js → sequenceDiagram-25152a15.js} +344 -178
- package/dist/{sequenceDiagram-9506b40c.js → sequenceDiagram-583eee82.js} +341 -174
- package/dist/{stateDiagram-eb70e1ce.js → stateDiagram-693ac5fb.js} +6 -16
- package/dist/{stateDiagram-cb3c1d96.js → stateDiagram-6f4bb19d.js} +119 -127
- package/dist/{stateDiagram-0dc7ce84.js → stateDiagram-b1c07dc6.js} +2 -12
- package/dist/{stateDiagram-v2-e65458cd.js → stateDiagram-v2-7c93469e.js} +6 -6
- package/dist/{stateDiagram-v2-d433c073.js → stateDiagram-v2-8f2bb0da.js} +10 -10
- package/dist/{stateDiagram-v2-fab09385.js → stateDiagram-v2-d72c79bd.js} +13 -13
- package/dist/{styles-41b45f07.js → styles-3814544c.js} +58 -55
- package/dist/{styles-be2d7003.js → styles-3fb7b9cf.js} +1 -1
- package/dist/{styles-ca8ceaa2.js → styles-659d7242.js} +138 -138
- package/dist/{styles-ee63b5dc.js → styles-68f7452d.js} +107 -102
- package/dist/{styles-a893c203.js → styles-88ad4441.js} +102 -97
- package/dist/{styles-452f304a.js → styles-8ef4cf23.js} +19 -16
- package/dist/{styles-ebc10a39.js → styles-f19653ad.js} +1 -1
- package/dist/{styles-b820c189.js → styles-f626f8de.js} +1 -1
- package/dist/{styles-7882abfe.js → styles-ff678862.js} +3 -3
- package/dist/{svgDraw-95adee0a.js → svgDraw-5d8a058e.js} +1 -1
- package/dist/{svgDraw-51404f3b.js → svgDraw-af99a425.js} +14 -14
- package/dist/{svgDraw-3835dd7e.js → svgDraw-f57324fe.js} +2 -2
- package/dist/{svgDrawCommon-98448648.js → svgDrawCommon-ce5062a7.js} +1 -1
- package/dist/{svgDrawCommon-bca3f7ce.js → svgDrawCommon-ebe6c236.js} +1 -1
- package/dist/tests/MockedD3.d.ts +24 -23
- package/dist/{timeline-definition-d8415767.js → timeline-definition-0c903a0d.js} +8 -10
- package/dist/{timeline-definition-46a17596.js → timeline-definition-491ea63c.js} +4 -6
- package/dist/{timeline-definition-2ae65266.js → timeline-definition-65183566.js} +185 -186
- package/package.json +28 -17
- package/dist/arc-3976c622.js +0 -84
- package/dist/docs.d.mts +0 -30
- package/dist/flowDiagram-v2-ccf242f5.js +0 -24
- package/dist/ganttDiagram-770f21fb.js +0 -2499
- package/dist/selectAll-8725692e.js +0 -7
- package/dist/selectAll-b44befab.js +0 -7
- package/dist/sequenceDiagram-8f3ae6b9.js +0 -2103
- /package/dist/{diagrams/class/classDiagramGrammar.spec.d.ts → config.spec.d.ts} +0 -0
- /package/dist/{docs.spec.d.ts → diagrams/sankey/parser/sankey.spec.d.ts} +0 -0
package/dist/config.type.d.ts
CHANGED
|
@@ -1,19 +1,126 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Configuration options to pass to the `dompurify` library.
|
|
8
|
+
*/
|
|
9
|
+
export type DOMPurifyConfiguration = import("dompurify").Config;
|
|
10
|
+
/**
|
|
11
|
+
* JavaScript function that returns a `FontConfig`.
|
|
12
|
+
*
|
|
13
|
+
* By default, these return the appropriate `*FontSize`, `*FontFamily`, `*FontWeight`
|
|
14
|
+
* values.
|
|
15
|
+
*
|
|
16
|
+
* For example, the font calculator called `boundaryFont` might be defined as:
|
|
17
|
+
*
|
|
18
|
+
* ```javascript
|
|
19
|
+
* boundaryFont: function () {
|
|
20
|
+
* return {
|
|
21
|
+
* fontFamily: this.boundaryFontFamily,
|
|
22
|
+
* fontSize: this.boundaryFontSize,
|
|
23
|
+
* fontWeight: this.boundaryFontWeight,
|
|
24
|
+
* };
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
30
|
+
* via the `definition` "FontCalculator".
|
|
31
|
+
*/
|
|
32
|
+
export type FontCalculator = () => Partial<FontConfig>;
|
|
33
|
+
/**
|
|
34
|
+
* Picks the color of the sankey diagram links, using the colors of the source and/or target of the links.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
38
|
+
* via the `definition` "SankeyLinkColor".
|
|
39
|
+
*/
|
|
40
|
+
export type SankeyLinkColor = "source" | "target" | "gradient";
|
|
41
|
+
/**
|
|
42
|
+
* Controls the alignment of the Sankey diagrams.
|
|
43
|
+
*
|
|
44
|
+
* See <https://github.com/d3/d3-sankey#alignments>.
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
48
|
+
* via the `definition` "SankeyNodeAlignment".
|
|
49
|
+
*/
|
|
50
|
+
export type SankeyNodeAlignment = "left" | "right" | "center" | "justify";
|
|
51
|
+
/**
|
|
52
|
+
* The font size to use
|
|
53
|
+
*/
|
|
54
|
+
export type CSSFontSize = string | number;
|
|
2
55
|
export interface MermaidConfig {
|
|
3
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Theme, the CSS style sheet.
|
|
58
|
+
* You may also use `themeCSS` to override this value.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
theme?: string | "default" | "forest" | "dark" | "neutral" | "null";
|
|
4
62
|
themeVariables?: any;
|
|
5
63
|
themeCSS?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The maximum allowed size of the users text diagram
|
|
66
|
+
*/
|
|
6
67
|
maxTextSize?: number;
|
|
7
68
|
darkMode?: boolean;
|
|
8
69
|
htmlLabels?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the font to be used in the rendered diagrams.
|
|
72
|
+
* Can be any possible CSS `font-family`.
|
|
73
|
+
* See https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
9
76
|
fontFamily?: string;
|
|
10
77
|
altFontFamily?: string;
|
|
11
|
-
|
|
12
|
-
|
|
78
|
+
/**
|
|
79
|
+
* This option decides the amount of logging to be used by mermaid.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
logLevel?: number | string | 0 | 2 | 1 | "trace" | "debug" | "info" | "warn" | "error" | "fatal" | 3 | 4 | 5 | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Level of trust for parsed diagram
|
|
85
|
+
*/
|
|
86
|
+
securityLevel?: string | "strict" | "loose" | "antiscript" | "sandbox" | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Dictates whether mermaid starts on Page load
|
|
89
|
+
*/
|
|
13
90
|
startOnLoad?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Controls whether or arrow markers in html code are absolute paths or anchors.
|
|
93
|
+
* This matters if you are using base tag settings.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
14
96
|
arrowMarkerAbsolute?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* This option controls which `currentConfig` keys are considered secure and
|
|
99
|
+
* can only be changed via call to `mermaidAPI.initialize`.
|
|
100
|
+
* Calls to `mermaidAPI.reinitialize` cannot make changes to the secure keys
|
|
101
|
+
* in the current `currentConfig`.
|
|
102
|
+
*
|
|
103
|
+
* This prevents malicious graph directives from overriding a site's default security.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
15
106
|
secure?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* This option controls if the generated ids of nodes in the SVG are
|
|
109
|
+
* generated randomly or based on a seed.
|
|
110
|
+
* If set to `false`, the IDs are generated based on the current date and
|
|
111
|
+
* thus are not deterministic. This is the default behavior.
|
|
112
|
+
*
|
|
113
|
+
* This matters if your files are checked into source control e.g. git and
|
|
114
|
+
* should not change unless content is changed.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
16
117
|
deterministicIds?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* This option is the optional seed for deterministic ids.
|
|
120
|
+
* If set to `undefined` but deterministicIds is `true`, a simple number iterator is used.
|
|
121
|
+
* You can set this attribute to base the seed on a static string.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
17
124
|
deterministicIDSeed?: string;
|
|
18
125
|
flowchart?: FlowchartDiagramConfig;
|
|
19
126
|
sequence?: SequenceDiagramConfig;
|
|
@@ -29,92 +136,342 @@ export interface MermaidConfig {
|
|
|
29
136
|
mindmap?: MindmapDiagramConfig;
|
|
30
137
|
gitGraph?: GitGraphDiagramConfig;
|
|
31
138
|
c4?: C4DiagramConfig;
|
|
32
|
-
|
|
139
|
+
sankey?: SankeyDiagramConfig;
|
|
140
|
+
dompurifyConfig?: DOMPurifyConfiguration;
|
|
33
141
|
wrap?: boolean;
|
|
34
142
|
fontSize?: number;
|
|
35
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
146
|
+
* via the `definition` "BaseDiagramConfig".
|
|
147
|
+
*/
|
|
36
148
|
export interface BaseDiagramConfig {
|
|
37
149
|
useWidth?: number;
|
|
150
|
+
/**
|
|
151
|
+
* When this flag is set to `true`, the height and width is set to 100%
|
|
152
|
+
* and is then scaled with the available space.
|
|
153
|
+
* If set to `false`, the absolute space required is used.
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
38
156
|
useMaxWidth?: boolean;
|
|
39
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* The object containing configurations specific for c4 diagrams
|
|
160
|
+
*
|
|
161
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
162
|
+
* via the `definition` "C4DiagramConfig".
|
|
163
|
+
*/
|
|
40
164
|
export interface C4DiagramConfig extends BaseDiagramConfig {
|
|
165
|
+
/**
|
|
166
|
+
* Margin to the right and left of the c4 diagram, must be a positive value.
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
41
169
|
diagramMarginX?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Margin to the over and under the c4 diagram, must be a positive value.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
42
174
|
diagramMarginY?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Margin between shapes
|
|
177
|
+
*/
|
|
43
178
|
c4ShapeMargin?: number;
|
|
179
|
+
/**
|
|
180
|
+
* Padding between shapes
|
|
181
|
+
*/
|
|
44
182
|
c4ShapePadding?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Width of person boxes
|
|
185
|
+
*/
|
|
45
186
|
width?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Height of person boxes
|
|
189
|
+
*/
|
|
46
190
|
height?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Margin around boxes
|
|
193
|
+
*/
|
|
47
194
|
boxMargin?: number;
|
|
195
|
+
/**
|
|
196
|
+
* How many shapes to place in each row.
|
|
197
|
+
*/
|
|
48
198
|
c4ShapeInRow?: number;
|
|
49
199
|
nextLinePaddingX?: number;
|
|
200
|
+
/**
|
|
201
|
+
* How many boundaries to place in each row.
|
|
202
|
+
*/
|
|
50
203
|
c4BoundaryInRow?: number;
|
|
204
|
+
/**
|
|
205
|
+
* This sets the font size of Person shape for the diagram
|
|
206
|
+
*/
|
|
51
207
|
personFontSize?: string | number;
|
|
208
|
+
/**
|
|
209
|
+
* This sets the font weight of Person shape for the diagram
|
|
210
|
+
*/
|
|
52
211
|
personFontFamily?: string;
|
|
212
|
+
/**
|
|
213
|
+
* This sets the font weight of Person shape for the diagram
|
|
214
|
+
*/
|
|
53
215
|
personFontWeight?: string | number;
|
|
216
|
+
/**
|
|
217
|
+
* This sets the font size of External Person shape for the diagram
|
|
218
|
+
*/
|
|
54
219
|
external_personFontSize?: string | number;
|
|
220
|
+
/**
|
|
221
|
+
* This sets the font family of External Person shape for the diagram
|
|
222
|
+
*/
|
|
55
223
|
external_personFontFamily?: string;
|
|
224
|
+
/**
|
|
225
|
+
* This sets the font weight of External Person shape for the diagram
|
|
226
|
+
*/
|
|
56
227
|
external_personFontWeight?: string | number;
|
|
228
|
+
/**
|
|
229
|
+
* This sets the font size of System shape for the diagram
|
|
230
|
+
*/
|
|
57
231
|
systemFontSize?: string | number;
|
|
232
|
+
/**
|
|
233
|
+
* This sets the font family of System shape for the diagram
|
|
234
|
+
*/
|
|
58
235
|
systemFontFamily?: string;
|
|
236
|
+
/**
|
|
237
|
+
* This sets the font weight of System shape for the diagram
|
|
238
|
+
*/
|
|
59
239
|
systemFontWeight?: string | number;
|
|
240
|
+
/**
|
|
241
|
+
* This sets the font size of External System shape for the diagram
|
|
242
|
+
*/
|
|
60
243
|
external_systemFontSize?: string | number;
|
|
244
|
+
/**
|
|
245
|
+
* This sets the font family of External System shape for the diagram
|
|
246
|
+
*/
|
|
61
247
|
external_systemFontFamily?: string;
|
|
248
|
+
/**
|
|
249
|
+
* This sets the font weight of External System shape for the diagram
|
|
250
|
+
*/
|
|
62
251
|
external_systemFontWeight?: string | number;
|
|
252
|
+
/**
|
|
253
|
+
* This sets the font size of System DB shape for the diagram
|
|
254
|
+
*/
|
|
63
255
|
system_dbFontSize?: string | number;
|
|
256
|
+
/**
|
|
257
|
+
* This sets the font family of System DB shape for the diagram
|
|
258
|
+
*/
|
|
64
259
|
system_dbFontFamily?: string;
|
|
260
|
+
/**
|
|
261
|
+
* This sets the font weight of System DB shape for the diagram
|
|
262
|
+
*/
|
|
65
263
|
system_dbFontWeight?: string | number;
|
|
264
|
+
/**
|
|
265
|
+
* This sets the font size of External System DB shape for the diagram
|
|
266
|
+
*/
|
|
66
267
|
external_system_dbFontSize?: string | number;
|
|
268
|
+
/**
|
|
269
|
+
* This sets the font family of External System DB shape for the diagram
|
|
270
|
+
*/
|
|
67
271
|
external_system_dbFontFamily?: string;
|
|
272
|
+
/**
|
|
273
|
+
* This sets the font weight of External System DB shape for the diagram
|
|
274
|
+
*/
|
|
68
275
|
external_system_dbFontWeight?: string | number;
|
|
276
|
+
/**
|
|
277
|
+
* This sets the font size of System Queue shape for the diagram
|
|
278
|
+
*/
|
|
69
279
|
system_queueFontSize?: string | number;
|
|
280
|
+
/**
|
|
281
|
+
* This sets the font family of System Queue shape for the diagram
|
|
282
|
+
*/
|
|
70
283
|
system_queueFontFamily?: string;
|
|
284
|
+
/**
|
|
285
|
+
* This sets the font weight of System Queue shape for the diagram
|
|
286
|
+
*/
|
|
71
287
|
system_queueFontWeight?: string | number;
|
|
288
|
+
/**
|
|
289
|
+
* This sets the font size of External System Queue shape for the diagram
|
|
290
|
+
*/
|
|
72
291
|
external_system_queueFontSize?: string | number;
|
|
292
|
+
/**
|
|
293
|
+
* This sets the font family of External System Queue shape for the diagram
|
|
294
|
+
*/
|
|
73
295
|
external_system_queueFontFamily?: string;
|
|
296
|
+
/**
|
|
297
|
+
* This sets the font weight of External System Queue shape for the diagram
|
|
298
|
+
*/
|
|
74
299
|
external_system_queueFontWeight?: string | number;
|
|
300
|
+
/**
|
|
301
|
+
* This sets the font size of Boundary shape for the diagram
|
|
302
|
+
*/
|
|
75
303
|
boundaryFontSize?: string | number;
|
|
304
|
+
/**
|
|
305
|
+
* This sets the font family of Boundary shape for the diagram
|
|
306
|
+
*/
|
|
76
307
|
boundaryFontFamily?: string;
|
|
308
|
+
/**
|
|
309
|
+
* This sets the font weight of Boundary shape for the diagram
|
|
310
|
+
*/
|
|
77
311
|
boundaryFontWeight?: string | number;
|
|
312
|
+
/**
|
|
313
|
+
* This sets the font size of Message shape for the diagram
|
|
314
|
+
*/
|
|
78
315
|
messageFontSize?: string | number;
|
|
316
|
+
/**
|
|
317
|
+
* This sets the font family of Message shape for the diagram
|
|
318
|
+
*/
|
|
79
319
|
messageFontFamily?: string;
|
|
320
|
+
/**
|
|
321
|
+
* This sets the font weight of Message shape for the diagram
|
|
322
|
+
*/
|
|
80
323
|
messageFontWeight?: string | number;
|
|
324
|
+
/**
|
|
325
|
+
* This sets the font size of Container shape for the diagram
|
|
326
|
+
*/
|
|
81
327
|
containerFontSize?: string | number;
|
|
328
|
+
/**
|
|
329
|
+
* This sets the font family of Container shape for the diagram
|
|
330
|
+
*/
|
|
82
331
|
containerFontFamily?: string;
|
|
332
|
+
/**
|
|
333
|
+
* This sets the font weight of Container shape for the diagram
|
|
334
|
+
*/
|
|
83
335
|
containerFontWeight?: string | number;
|
|
336
|
+
/**
|
|
337
|
+
* This sets the font size of External Container shape for the diagram
|
|
338
|
+
*/
|
|
84
339
|
external_containerFontSize?: string | number;
|
|
340
|
+
/**
|
|
341
|
+
* This sets the font family of External Container shape for the diagram
|
|
342
|
+
*/
|
|
85
343
|
external_containerFontFamily?: string;
|
|
344
|
+
/**
|
|
345
|
+
* This sets the font weight of External Container shape for the diagram
|
|
346
|
+
*/
|
|
86
347
|
external_containerFontWeight?: string | number;
|
|
348
|
+
/**
|
|
349
|
+
* This sets the font size of Container DB shape for the diagram
|
|
350
|
+
*/
|
|
87
351
|
container_dbFontSize?: string | number;
|
|
352
|
+
/**
|
|
353
|
+
* This sets the font family of Container DB shape for the diagram
|
|
354
|
+
*/
|
|
88
355
|
container_dbFontFamily?: string;
|
|
356
|
+
/**
|
|
357
|
+
* This sets the font weight of Container DB shape for the diagram
|
|
358
|
+
*/
|
|
89
359
|
container_dbFontWeight?: string | number;
|
|
360
|
+
/**
|
|
361
|
+
* This sets the font size of External Container DB shape for the diagram
|
|
362
|
+
*/
|
|
90
363
|
external_container_dbFontSize?: string | number;
|
|
364
|
+
/**
|
|
365
|
+
* This sets the font family of External Container DB shape for the diagram
|
|
366
|
+
*/
|
|
91
367
|
external_container_dbFontFamily?: string;
|
|
368
|
+
/**
|
|
369
|
+
* This sets the font weight of External Container DB shape for the diagram
|
|
370
|
+
*/
|
|
92
371
|
external_container_dbFontWeight?: string | number;
|
|
372
|
+
/**
|
|
373
|
+
* This sets the font size of Container Queue shape for the diagram
|
|
374
|
+
*/
|
|
93
375
|
container_queueFontSize?: string | number;
|
|
376
|
+
/**
|
|
377
|
+
* This sets the font family of Container Queue shape for the diagram
|
|
378
|
+
*/
|
|
94
379
|
container_queueFontFamily?: string;
|
|
380
|
+
/**
|
|
381
|
+
* This sets the font weight of Container Queue shape for the diagram
|
|
382
|
+
*/
|
|
95
383
|
container_queueFontWeight?: string | number;
|
|
384
|
+
/**
|
|
385
|
+
* This sets the font size of External Container Queue shape for the diagram
|
|
386
|
+
*/
|
|
96
387
|
external_container_queueFontSize?: string | number;
|
|
388
|
+
/**
|
|
389
|
+
* This sets the font family of External Container Queue shape for the diagram
|
|
390
|
+
*/
|
|
97
391
|
external_container_queueFontFamily?: string;
|
|
392
|
+
/**
|
|
393
|
+
* This sets the font weight of External Container Queue shape for the diagram
|
|
394
|
+
*/
|
|
98
395
|
external_container_queueFontWeight?: string | number;
|
|
396
|
+
/**
|
|
397
|
+
* This sets the font size of Component shape for the diagram
|
|
398
|
+
*/
|
|
99
399
|
componentFontSize?: string | number;
|
|
400
|
+
/**
|
|
401
|
+
* This sets the font family of Component shape for the diagram
|
|
402
|
+
*/
|
|
100
403
|
componentFontFamily?: string;
|
|
404
|
+
/**
|
|
405
|
+
* This sets the font weight of Component shape for the diagram
|
|
406
|
+
*/
|
|
101
407
|
componentFontWeight?: string | number;
|
|
408
|
+
/**
|
|
409
|
+
* This sets the font size of External Component shape for the diagram
|
|
410
|
+
*/
|
|
102
411
|
external_componentFontSize?: string | number;
|
|
412
|
+
/**
|
|
413
|
+
* This sets the font family of External Component shape for the diagram
|
|
414
|
+
*/
|
|
103
415
|
external_componentFontFamily?: string;
|
|
416
|
+
/**
|
|
417
|
+
* This sets the font weight of External Component shape for the diagram
|
|
418
|
+
*/
|
|
104
419
|
external_componentFontWeight?: string | number;
|
|
420
|
+
/**
|
|
421
|
+
* This sets the font size of Component DB shape for the diagram
|
|
422
|
+
*/
|
|
105
423
|
component_dbFontSize?: string | number;
|
|
424
|
+
/**
|
|
425
|
+
* This sets the font family of Component DB shape for the diagram
|
|
426
|
+
*/
|
|
106
427
|
component_dbFontFamily?: string;
|
|
428
|
+
/**
|
|
429
|
+
* This sets the font weight of Component DB shape for the diagram
|
|
430
|
+
*/
|
|
107
431
|
component_dbFontWeight?: string | number;
|
|
432
|
+
/**
|
|
433
|
+
* This sets the font size of External Component DB shape for the diagram
|
|
434
|
+
*/
|
|
108
435
|
external_component_dbFontSize?: string | number;
|
|
436
|
+
/**
|
|
437
|
+
* This sets the font family of External Component DB shape for the diagram
|
|
438
|
+
*/
|
|
109
439
|
external_component_dbFontFamily?: string;
|
|
440
|
+
/**
|
|
441
|
+
* This sets the font weight of External Component DB shape for the diagram
|
|
442
|
+
*/
|
|
110
443
|
external_component_dbFontWeight?: string | number;
|
|
444
|
+
/**
|
|
445
|
+
* This sets the font size of Component Queue shape for the diagram
|
|
446
|
+
*/
|
|
111
447
|
component_queueFontSize?: string | number;
|
|
448
|
+
/**
|
|
449
|
+
* This sets the font family of Component Queue shape for the diagram
|
|
450
|
+
*/
|
|
112
451
|
component_queueFontFamily?: string;
|
|
452
|
+
/**
|
|
453
|
+
* This sets the font weight of Component Queue shape for the diagram
|
|
454
|
+
*/
|
|
113
455
|
component_queueFontWeight?: string | number;
|
|
456
|
+
/**
|
|
457
|
+
* This sets the font size of External Component Queue shape for the diagram
|
|
458
|
+
*/
|
|
114
459
|
external_component_queueFontSize?: string | number;
|
|
460
|
+
/**
|
|
461
|
+
* This sets the font family of External Component Queue shape for the diagram
|
|
462
|
+
*/
|
|
115
463
|
external_component_queueFontFamily?: string;
|
|
464
|
+
/**
|
|
465
|
+
* This sets the font weight of External Component Queue shape for the diagram
|
|
466
|
+
*/
|
|
116
467
|
external_component_queueFontWeight?: string | number;
|
|
468
|
+
/**
|
|
469
|
+
* This sets the auto-wrap state for the diagram
|
|
470
|
+
*/
|
|
117
471
|
wrap?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* This sets the auto-wrap padding for the diagram (sides only)
|
|
474
|
+
*/
|
|
118
475
|
wrapPadding?: number;
|
|
119
476
|
person_bg_color?: string;
|
|
120
477
|
person_border_color?: string;
|
|
@@ -179,7 +536,14 @@ export interface C4DiagramConfig extends BaseDiagramConfig {
|
|
|
179
536
|
boundaryFont?: FontCalculator;
|
|
180
537
|
messageFont?: FontCalculator;
|
|
181
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
541
|
+
* via the `definition` "GitGraphDiagramConfig".
|
|
542
|
+
*/
|
|
182
543
|
export interface GitGraphDiagramConfig extends BaseDiagramConfig {
|
|
544
|
+
/**
|
|
545
|
+
* Margin top for the text over the diagram
|
|
546
|
+
*/
|
|
183
547
|
titleTopMargin?: number;
|
|
184
548
|
diagramPadding?: number;
|
|
185
549
|
nodeLabel?: NodeLabel;
|
|
@@ -188,14 +552,29 @@ export interface GitGraphDiagramConfig extends BaseDiagramConfig {
|
|
|
188
552
|
showCommitLabel?: boolean;
|
|
189
553
|
showBranches?: boolean;
|
|
190
554
|
rotateCommitLabel?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
* Controls whether or arrow markers in html code are absolute paths or anchors.
|
|
557
|
+
* This matters if you are using base tag settings.
|
|
558
|
+
*
|
|
559
|
+
*/
|
|
191
560
|
arrowMarkerAbsolute?: boolean;
|
|
192
561
|
}
|
|
562
|
+
/**
|
|
563
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
564
|
+
* via the `definition` "NodeLabel".
|
|
565
|
+
*/
|
|
193
566
|
export interface NodeLabel {
|
|
194
567
|
width?: number;
|
|
195
568
|
height?: number;
|
|
196
569
|
x?: number;
|
|
197
570
|
y?: number;
|
|
198
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* The object containing configurations specific for req diagrams
|
|
574
|
+
*
|
|
575
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
576
|
+
* via the `definition` "RequirementDiagramConfig".
|
|
577
|
+
*/
|
|
199
578
|
export interface RequirementDiagramConfig extends BaseDiagramConfig {
|
|
200
579
|
rect_fill?: string;
|
|
201
580
|
text_color?: string;
|
|
@@ -207,46 +586,163 @@ export interface RequirementDiagramConfig extends BaseDiagramConfig {
|
|
|
207
586
|
rect_padding?: number;
|
|
208
587
|
line_height?: number;
|
|
209
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* The object containing configurations specific for mindmap diagrams
|
|
591
|
+
*
|
|
592
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
593
|
+
* via the `definition` "MindmapDiagramConfig".
|
|
594
|
+
*/
|
|
210
595
|
export interface MindmapDiagramConfig extends BaseDiagramConfig {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
maxNodeWidth: number;
|
|
596
|
+
padding?: number;
|
|
597
|
+
maxNodeWidth?: number;
|
|
214
598
|
}
|
|
599
|
+
/**
|
|
600
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
601
|
+
* via the `definition` "PieDiagramConfig".
|
|
602
|
+
*/
|
|
215
603
|
export interface PieDiagramConfig extends BaseDiagramConfig {
|
|
604
|
+
/**
|
|
605
|
+
* Axial position of slice's label from zero at the center to 1 at the outside edges.
|
|
606
|
+
*
|
|
607
|
+
*/
|
|
216
608
|
textPosition?: number;
|
|
217
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
612
|
+
* via the `definition` "QuadrantChartConfig".
|
|
613
|
+
*/
|
|
218
614
|
export interface QuadrantChartConfig extends BaseDiagramConfig {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
615
|
+
/**
|
|
616
|
+
* Width of the chart
|
|
617
|
+
*/
|
|
618
|
+
chartWidth?: number;
|
|
619
|
+
/**
|
|
620
|
+
* Height of the chart
|
|
621
|
+
*/
|
|
622
|
+
chartHeight?: number;
|
|
623
|
+
/**
|
|
624
|
+
* Chart title top and bottom padding
|
|
625
|
+
*/
|
|
626
|
+
titleFontSize?: number;
|
|
627
|
+
/**
|
|
628
|
+
* Padding around the quadrant square
|
|
629
|
+
*/
|
|
630
|
+
titlePadding?: number;
|
|
631
|
+
/**
|
|
632
|
+
* quadrant title padding from top if the quadrant is rendered on top
|
|
633
|
+
*/
|
|
634
|
+
quadrantPadding?: number;
|
|
635
|
+
/**
|
|
636
|
+
* Padding around x-axis labels
|
|
637
|
+
*/
|
|
638
|
+
xAxisLabelPadding?: number;
|
|
639
|
+
/**
|
|
640
|
+
* Padding around y-axis labels
|
|
641
|
+
*/
|
|
642
|
+
yAxisLabelPadding?: number;
|
|
643
|
+
/**
|
|
644
|
+
* x-axis label font size
|
|
645
|
+
*/
|
|
646
|
+
xAxisLabelFontSize?: number;
|
|
647
|
+
/**
|
|
648
|
+
* y-axis label font size
|
|
649
|
+
*/
|
|
650
|
+
yAxisLabelFontSize?: number;
|
|
651
|
+
/**
|
|
652
|
+
* quadrant title font size
|
|
653
|
+
*/
|
|
654
|
+
quadrantLabelFontSize?: number;
|
|
655
|
+
/**
|
|
656
|
+
* quadrant title padding from top if the quadrant is rendered on top
|
|
657
|
+
*/
|
|
658
|
+
quadrantTextTopPadding?: number;
|
|
659
|
+
/**
|
|
660
|
+
* padding between point and point label
|
|
661
|
+
*/
|
|
662
|
+
pointTextPadding?: number;
|
|
663
|
+
/**
|
|
664
|
+
* point title font size
|
|
665
|
+
*/
|
|
666
|
+
pointLabelFontSize?: number;
|
|
667
|
+
/**
|
|
668
|
+
* radius of the point to be drawn
|
|
669
|
+
*/
|
|
670
|
+
pointRadius?: number;
|
|
671
|
+
/**
|
|
672
|
+
* position of x-axis labels
|
|
673
|
+
*/
|
|
674
|
+
xAxisPosition?: "top" | "bottom";
|
|
675
|
+
/**
|
|
676
|
+
* position of y-axis labels
|
|
677
|
+
*/
|
|
678
|
+
yAxisPosition?: "left" | "right";
|
|
679
|
+
/**
|
|
680
|
+
* stroke width of edges of the box that are inside the quadrant
|
|
681
|
+
*/
|
|
682
|
+
quadrantInternalBorderStrokeWidth?: number;
|
|
683
|
+
/**
|
|
684
|
+
* stroke width of edges of the box that are outside the quadrant
|
|
685
|
+
*/
|
|
686
|
+
quadrantExternalBorderStrokeWidth?: number;
|
|
237
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* The object containing configurations specific for entity relationship diagrams
|
|
690
|
+
*
|
|
691
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
692
|
+
* via the `definition` "ErDiagramConfig".
|
|
693
|
+
*/
|
|
238
694
|
export interface ErDiagramConfig extends BaseDiagramConfig {
|
|
695
|
+
/**
|
|
696
|
+
* Margin top for the text over the diagram
|
|
697
|
+
*/
|
|
239
698
|
titleTopMargin?: number;
|
|
699
|
+
/**
|
|
700
|
+
* The amount of padding around the diagram as a whole so that embedded
|
|
701
|
+
* diagrams have margins, expressed in pixels.
|
|
702
|
+
*
|
|
703
|
+
*/
|
|
240
704
|
diagramPadding?: number;
|
|
241
|
-
|
|
705
|
+
/**
|
|
706
|
+
* Directional bias for layout of entities
|
|
707
|
+
*/
|
|
708
|
+
layoutDirection?: string | "TB" | "BT" | "LR" | "RL";
|
|
709
|
+
/**
|
|
710
|
+
* The minimum width of an entity box. Expressed in pixels.
|
|
711
|
+
*/
|
|
242
712
|
minEntityWidth?: number;
|
|
713
|
+
/**
|
|
714
|
+
* The minimum height of an entity box. Expressed in pixels.
|
|
715
|
+
*/
|
|
243
716
|
minEntityHeight?: number;
|
|
717
|
+
/**
|
|
718
|
+
* The minimum internal padding between text in an entity box and the enclosing box borders.
|
|
719
|
+
* Expressed in pixels.
|
|
720
|
+
*
|
|
721
|
+
*/
|
|
244
722
|
entityPadding?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Stroke color of box edges and lines.
|
|
725
|
+
*/
|
|
245
726
|
stroke?: string;
|
|
727
|
+
/**
|
|
728
|
+
* Fill color of entity boxes
|
|
729
|
+
*/
|
|
246
730
|
fill?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Font size (expressed as an integer representing a number of pixels)
|
|
733
|
+
*/
|
|
247
734
|
fontSize?: number;
|
|
248
735
|
}
|
|
736
|
+
/**
|
|
737
|
+
* The object containing configurations specific for entity relationship diagrams
|
|
738
|
+
*
|
|
739
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
740
|
+
* via the `definition` "StateDiagramConfig".
|
|
741
|
+
*/
|
|
249
742
|
export interface StateDiagramConfig extends BaseDiagramConfig {
|
|
743
|
+
/**
|
|
744
|
+
* Margin top for the text over the diagram
|
|
745
|
+
*/
|
|
250
746
|
titleTopMargin?: number;
|
|
251
747
|
arrowMarkerAbsolute?: boolean;
|
|
252
748
|
dividerMargin?: number;
|
|
@@ -258,142 +754,545 @@ export interface StateDiagramConfig extends BaseDiagramConfig {
|
|
|
258
754
|
forkWidth?: number;
|
|
259
755
|
forkHeight?: number;
|
|
260
756
|
miniPadding?: number;
|
|
757
|
+
/**
|
|
758
|
+
* Font size factor, this is used to guess the width of the edges labels
|
|
759
|
+
* before rendering by dagre layout.
|
|
760
|
+
* This might need updating if/when switching font
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
261
763
|
fontSizeFactor?: number;
|
|
262
764
|
fontSize?: number;
|
|
263
765
|
labelHeight?: number;
|
|
264
766
|
edgeLengthFactor?: string;
|
|
265
767
|
compositTitleSize?: number;
|
|
266
768
|
radius?: number;
|
|
267
|
-
|
|
769
|
+
/**
|
|
770
|
+
* Decides which rendering engine that is to be used for the rendering.
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
defaultRenderer?: string | "dagre-d3" | "dagre-wrapper" | "elk";
|
|
268
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
777
|
+
* via the `definition` "ClassDiagramConfig".
|
|
778
|
+
*/
|
|
269
779
|
export interface ClassDiagramConfig extends BaseDiagramConfig {
|
|
780
|
+
/**
|
|
781
|
+
* Margin top for the text over the diagram
|
|
782
|
+
*/
|
|
270
783
|
titleTopMargin?: number;
|
|
784
|
+
/**
|
|
785
|
+
* Controls whether or arrow markers in html code are absolute paths or anchors.
|
|
786
|
+
* This matters if you are using base tag settings.
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
271
789
|
arrowMarkerAbsolute?: boolean;
|
|
272
790
|
dividerMargin?: number;
|
|
273
791
|
padding?: number;
|
|
274
792
|
textHeight?: number;
|
|
275
|
-
|
|
793
|
+
/**
|
|
794
|
+
* Decides which rendering engine that is to be used for the rendering.
|
|
795
|
+
*
|
|
796
|
+
*/
|
|
797
|
+
defaultRenderer?: string | "dagre-d3" | "dagre-wrapper" | "elk";
|
|
276
798
|
nodeSpacing?: number;
|
|
277
799
|
rankSpacing?: number;
|
|
800
|
+
/**
|
|
801
|
+
* The amount of padding around the diagram as a whole so that embedded
|
|
802
|
+
* diagrams have margins, expressed in pixels.
|
|
803
|
+
*
|
|
804
|
+
*/
|
|
278
805
|
diagramPadding?: number;
|
|
279
806
|
htmlLabels?: boolean;
|
|
280
807
|
}
|
|
808
|
+
/**
|
|
809
|
+
* The object containing configurations specific for journey diagrams
|
|
810
|
+
*
|
|
811
|
+
*
|
|
812
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
813
|
+
* via the `definition` "JourneyDiagramConfig".
|
|
814
|
+
*/
|
|
281
815
|
export interface JourneyDiagramConfig extends BaseDiagramConfig {
|
|
816
|
+
/**
|
|
817
|
+
* Margin to the right and left of the c4 diagram, must be a positive value.
|
|
818
|
+
*
|
|
819
|
+
*/
|
|
282
820
|
diagramMarginX?: number;
|
|
821
|
+
/**
|
|
822
|
+
* Margin to the over and under the c4 diagram, must be a positive value.
|
|
823
|
+
*
|
|
824
|
+
*/
|
|
283
825
|
diagramMarginY?: number;
|
|
826
|
+
/**
|
|
827
|
+
* Margin between actors
|
|
828
|
+
*/
|
|
284
829
|
leftMargin?: number;
|
|
830
|
+
/**
|
|
831
|
+
* Width of actor boxes
|
|
832
|
+
*/
|
|
285
833
|
width?: number;
|
|
834
|
+
/**
|
|
835
|
+
* Height of actor boxes
|
|
836
|
+
*/
|
|
286
837
|
height?: number;
|
|
838
|
+
/**
|
|
839
|
+
* Margin around loop boxes
|
|
840
|
+
*/
|
|
287
841
|
boxMargin?: number;
|
|
842
|
+
/**
|
|
843
|
+
* Margin around the text in loop/alt/opt boxes
|
|
844
|
+
*/
|
|
288
845
|
boxTextMargin?: number;
|
|
846
|
+
/**
|
|
847
|
+
* Margin around notes
|
|
848
|
+
*/
|
|
289
849
|
noteMargin?: number;
|
|
850
|
+
/**
|
|
851
|
+
* Space between messages.
|
|
852
|
+
*/
|
|
290
853
|
messageMargin?: number;
|
|
291
|
-
|
|
854
|
+
/**
|
|
855
|
+
* Multiline message alignment
|
|
856
|
+
*/
|
|
857
|
+
messageAlign?: string | "left" | "center" | "right";
|
|
858
|
+
/**
|
|
859
|
+
* Prolongs the edge of the diagram downwards.
|
|
860
|
+
*
|
|
861
|
+
* Depending on css styling this might need adjustment.
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
292
864
|
bottomMarginAdj?: number;
|
|
865
|
+
/**
|
|
866
|
+
* Curved Arrows become Right Angles
|
|
867
|
+
*
|
|
868
|
+
* This will display arrows that start and begin at the same node as
|
|
869
|
+
* right angles, rather than as curves.
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
293
872
|
rightAngles?: boolean;
|
|
294
873
|
taskFontSize?: string | number;
|
|
295
874
|
taskFontFamily?: string;
|
|
296
875
|
taskMargin?: number;
|
|
876
|
+
/**
|
|
877
|
+
* Width of activation box
|
|
878
|
+
*/
|
|
297
879
|
activationWidth?: number;
|
|
880
|
+
/**
|
|
881
|
+
* text placement as: tspan | fo | old only text as before
|
|
882
|
+
*
|
|
883
|
+
*/
|
|
298
884
|
textPlacement?: string;
|
|
299
885
|
actorColours?: string[];
|
|
300
886
|
sectionFills?: string[];
|
|
301
887
|
sectionColours?: string[];
|
|
302
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
891
|
+
* via the `definition` "TimelineDiagramConfig".
|
|
892
|
+
*/
|
|
303
893
|
export interface TimelineDiagramConfig extends BaseDiagramConfig {
|
|
894
|
+
/**
|
|
895
|
+
* Margin to the right and left of the c4 diagram, must be a positive value.
|
|
896
|
+
*
|
|
897
|
+
*/
|
|
304
898
|
diagramMarginX?: number;
|
|
899
|
+
/**
|
|
900
|
+
* Margin to the over and under the c4 diagram, must be a positive value.
|
|
901
|
+
*
|
|
902
|
+
*/
|
|
305
903
|
diagramMarginY?: number;
|
|
904
|
+
/**
|
|
905
|
+
* Margin between actors
|
|
906
|
+
*/
|
|
306
907
|
leftMargin?: number;
|
|
908
|
+
/**
|
|
909
|
+
* Width of actor boxes
|
|
910
|
+
*/
|
|
307
911
|
width?: number;
|
|
912
|
+
/**
|
|
913
|
+
* Height of actor boxes
|
|
914
|
+
*/
|
|
308
915
|
height?: number;
|
|
309
916
|
padding?: number;
|
|
917
|
+
/**
|
|
918
|
+
* Margin around loop boxes
|
|
919
|
+
*/
|
|
310
920
|
boxMargin?: number;
|
|
921
|
+
/**
|
|
922
|
+
* Margin around the text in loop/alt/opt boxes
|
|
923
|
+
*/
|
|
311
924
|
boxTextMargin?: number;
|
|
925
|
+
/**
|
|
926
|
+
* Margin around notes
|
|
927
|
+
*/
|
|
312
928
|
noteMargin?: number;
|
|
929
|
+
/**
|
|
930
|
+
* Space between messages.
|
|
931
|
+
*/
|
|
313
932
|
messageMargin?: number;
|
|
314
|
-
|
|
933
|
+
/**
|
|
934
|
+
* Multiline message alignment
|
|
935
|
+
*/
|
|
936
|
+
messageAlign?: string | "left" | "center" | "right";
|
|
937
|
+
/**
|
|
938
|
+
* Prolongs the edge of the diagram downwards.
|
|
939
|
+
*
|
|
940
|
+
* Depending on css styling this might need adjustment.
|
|
941
|
+
*
|
|
942
|
+
*/
|
|
315
943
|
bottomMarginAdj?: number;
|
|
944
|
+
/**
|
|
945
|
+
* Curved Arrows become Right Angles
|
|
946
|
+
*
|
|
947
|
+
* This will display arrows that start and begin at the same node as
|
|
948
|
+
* right angles, rather than as curves.
|
|
949
|
+
*
|
|
950
|
+
*/
|
|
316
951
|
rightAngles?: boolean;
|
|
317
952
|
taskFontSize?: string | number;
|
|
318
953
|
taskFontFamily?: string;
|
|
319
954
|
taskMargin?: number;
|
|
955
|
+
/**
|
|
956
|
+
* Width of activation box
|
|
957
|
+
*/
|
|
320
958
|
activationWidth?: number;
|
|
959
|
+
/**
|
|
960
|
+
* text placement as: tspan | fo | old only text as before
|
|
961
|
+
*
|
|
962
|
+
*/
|
|
321
963
|
textPlacement?: string;
|
|
322
964
|
actorColours?: string[];
|
|
323
965
|
sectionFills?: string[];
|
|
324
966
|
sectionColours?: string[];
|
|
325
967
|
disableMulticolor?: boolean;
|
|
326
|
-
useMaxWidth?: boolean;
|
|
327
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* The object containing configurations specific for gantt diagrams
|
|
971
|
+
*
|
|
972
|
+
*
|
|
973
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
974
|
+
* via the `definition` "GanttDiagramConfig".
|
|
975
|
+
*/
|
|
328
976
|
export interface GanttDiagramConfig extends BaseDiagramConfig {
|
|
977
|
+
/**
|
|
978
|
+
* Margin top for the text over the diagram
|
|
979
|
+
*/
|
|
329
980
|
titleTopMargin?: number;
|
|
981
|
+
/**
|
|
982
|
+
* The height of the bars in the graph
|
|
983
|
+
*/
|
|
330
984
|
barHeight?: number;
|
|
985
|
+
/**
|
|
986
|
+
* The margin between the different activities in the gantt diagram
|
|
987
|
+
*/
|
|
331
988
|
barGap?: number;
|
|
989
|
+
/**
|
|
990
|
+
* Margin between title and gantt diagram and between axis and gantt diagram.
|
|
991
|
+
*
|
|
992
|
+
*/
|
|
332
993
|
topPadding?: number;
|
|
994
|
+
/**
|
|
995
|
+
* The space allocated for the section name to the right of the activities
|
|
996
|
+
*
|
|
997
|
+
*/
|
|
333
998
|
rightPadding?: number;
|
|
999
|
+
/**
|
|
1000
|
+
* The space allocated for the section name to the left of the activities
|
|
1001
|
+
*
|
|
1002
|
+
*/
|
|
334
1003
|
leftPadding?: number;
|
|
1004
|
+
/**
|
|
1005
|
+
* Vertical starting position of the grid lines
|
|
1006
|
+
*/
|
|
335
1007
|
gridLineStartPadding?: number;
|
|
1008
|
+
/**
|
|
1009
|
+
* Font size
|
|
1010
|
+
*/
|
|
336
1011
|
fontSize?: number;
|
|
1012
|
+
/**
|
|
1013
|
+
* Font size for sections
|
|
1014
|
+
*/
|
|
337
1015
|
sectionFontSize?: string | number;
|
|
1016
|
+
/**
|
|
1017
|
+
* The number of alternating section styles
|
|
1018
|
+
*/
|
|
338
1019
|
numberSectionStyles?: number;
|
|
1020
|
+
/**
|
|
1021
|
+
* Date/time format of the axis
|
|
1022
|
+
*
|
|
1023
|
+
* This might need adjustment to match your locale and preferences.
|
|
1024
|
+
*
|
|
1025
|
+
*/
|
|
339
1026
|
axisFormat?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* axis ticks
|
|
1029
|
+
*
|
|
1030
|
+
* Pattern is:
|
|
1031
|
+
*
|
|
1032
|
+
* ```javascript
|
|
1033
|
+
* /^([1-9][0-9]*)(minute|hour|day|week|month)$/
|
|
1034
|
+
* ```
|
|
1035
|
+
*
|
|
1036
|
+
*/
|
|
340
1037
|
tickInterval?: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* When this flag is set, date labels will be added to the top of the chart
|
|
1040
|
+
*
|
|
1041
|
+
*/
|
|
341
1042
|
topAxis?: boolean;
|
|
342
|
-
|
|
1043
|
+
/**
|
|
1044
|
+
* Controls the display mode.
|
|
1045
|
+
*
|
|
1046
|
+
*/
|
|
1047
|
+
displayMode?: string | "compact";
|
|
1048
|
+
/**
|
|
1049
|
+
* On which day a week-based interval should start
|
|
1050
|
+
*
|
|
1051
|
+
*/
|
|
1052
|
+
weekday?: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
343
1053
|
}
|
|
1054
|
+
/**
|
|
1055
|
+
* The object containing configurations specific for sequence diagrams
|
|
1056
|
+
*
|
|
1057
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
1058
|
+
* via the `definition` "SequenceDiagramConfig".
|
|
1059
|
+
*/
|
|
344
1060
|
export interface SequenceDiagramConfig extends BaseDiagramConfig {
|
|
345
1061
|
arrowMarkerAbsolute?: boolean;
|
|
346
1062
|
hideUnusedParticipants?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* Width of the activation rect
|
|
1065
|
+
*/
|
|
347
1066
|
activationWidth?: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* Margin to the right and left of the sequence diagram
|
|
1069
|
+
*/
|
|
348
1070
|
diagramMarginX?: number;
|
|
1071
|
+
/**
|
|
1072
|
+
* Margin to the over and under the sequence diagram
|
|
1073
|
+
*/
|
|
349
1074
|
diagramMarginY?: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* Margin between actors
|
|
1077
|
+
*/
|
|
350
1078
|
actorMargin?: number;
|
|
1079
|
+
/**
|
|
1080
|
+
* Width of actor boxes
|
|
1081
|
+
*/
|
|
351
1082
|
width?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* Height of actor boxes
|
|
1085
|
+
*/
|
|
352
1086
|
height?: number;
|
|
1087
|
+
/**
|
|
1088
|
+
* Margin around loop boxes
|
|
1089
|
+
*/
|
|
353
1090
|
boxMargin?: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* Margin around the text in loop/alt/opt boxes
|
|
1093
|
+
*/
|
|
354
1094
|
boxTextMargin?: number;
|
|
1095
|
+
/**
|
|
1096
|
+
* Margin around notes
|
|
1097
|
+
*/
|
|
355
1098
|
noteMargin?: number;
|
|
1099
|
+
/**
|
|
1100
|
+
* Space between messages.
|
|
1101
|
+
*/
|
|
356
1102
|
messageMargin?: number;
|
|
357
|
-
|
|
1103
|
+
/**
|
|
1104
|
+
* Multiline message alignment
|
|
1105
|
+
*/
|
|
1106
|
+
messageAlign?: string | "left" | "center" | "right";
|
|
1107
|
+
/**
|
|
1108
|
+
* Mirror actors under diagram
|
|
1109
|
+
*
|
|
1110
|
+
*/
|
|
358
1111
|
mirrorActors?: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* forces actor popup menus to always be visible (to support E2E testing).
|
|
1114
|
+
*
|
|
1115
|
+
*/
|
|
359
1116
|
forceMenus?: boolean;
|
|
1117
|
+
/**
|
|
1118
|
+
* Prolongs the edge of the diagram downwards.
|
|
1119
|
+
*
|
|
1120
|
+
* Depending on css styling this might need adjustment.
|
|
1121
|
+
*
|
|
1122
|
+
*/
|
|
360
1123
|
bottomMarginAdj?: number;
|
|
1124
|
+
/**
|
|
1125
|
+
* Curved Arrows become Right Angles
|
|
1126
|
+
*
|
|
1127
|
+
* This will display arrows that start and begin at the same node as
|
|
1128
|
+
* right angles, rather than as curves.
|
|
1129
|
+
*
|
|
1130
|
+
*/
|
|
361
1131
|
rightAngles?: boolean;
|
|
1132
|
+
/**
|
|
1133
|
+
* This will show the node numbers
|
|
1134
|
+
*/
|
|
362
1135
|
showSequenceNumbers?: boolean;
|
|
1136
|
+
/**
|
|
1137
|
+
* This sets the font size of the actor's description
|
|
1138
|
+
*/
|
|
363
1139
|
actorFontSize?: string | number;
|
|
1140
|
+
/**
|
|
1141
|
+
* This sets the font family of the actor's description
|
|
1142
|
+
*/
|
|
364
1143
|
actorFontFamily?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* This sets the font weight of the actor's description
|
|
1146
|
+
*/
|
|
365
1147
|
actorFontWeight?: string | number;
|
|
1148
|
+
/**
|
|
1149
|
+
* This sets the font size of actor-attached notes
|
|
1150
|
+
*/
|
|
366
1151
|
noteFontSize?: string | number;
|
|
1152
|
+
/**
|
|
1153
|
+
* This sets the font family of actor-attached notes
|
|
1154
|
+
*/
|
|
367
1155
|
noteFontFamily?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* This sets the font weight of actor-attached notes
|
|
1158
|
+
*/
|
|
368
1159
|
noteFontWeight?: string | number;
|
|
369
|
-
|
|
1160
|
+
/**
|
|
1161
|
+
* This sets the text alignment of actor-attached notes
|
|
1162
|
+
*/
|
|
1163
|
+
noteAlign?: string | "left" | "center" | "right";
|
|
1164
|
+
/**
|
|
1165
|
+
* This sets the font size of actor messages
|
|
1166
|
+
*/
|
|
370
1167
|
messageFontSize?: string | number;
|
|
1168
|
+
/**
|
|
1169
|
+
* This sets the font family of actor messages
|
|
1170
|
+
*/
|
|
371
1171
|
messageFontFamily?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* This sets the font weight of actor messages
|
|
1174
|
+
*/
|
|
372
1175
|
messageFontWeight?: string | number;
|
|
1176
|
+
/**
|
|
1177
|
+
* This sets the auto-wrap state for the diagram
|
|
1178
|
+
*/
|
|
373
1179
|
wrap?: boolean;
|
|
1180
|
+
/**
|
|
1181
|
+
* This sets the auto-wrap padding for the diagram (sides only)
|
|
1182
|
+
*/
|
|
374
1183
|
wrapPadding?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* This sets the width of the loop-box (loop, alt, opt, par)
|
|
1186
|
+
*/
|
|
375
1187
|
labelBoxWidth?: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* This sets the height of the loop-box (loop, alt, opt, par)
|
|
1190
|
+
*/
|
|
376
1191
|
labelBoxHeight?: number;
|
|
377
1192
|
messageFont?: FontCalculator;
|
|
378
1193
|
noteFont?: FontCalculator;
|
|
379
1194
|
actorFont?: FontCalculator;
|
|
380
1195
|
}
|
|
1196
|
+
/**
|
|
1197
|
+
* The object containing configurations specific for flowcharts
|
|
1198
|
+
*
|
|
1199
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
1200
|
+
* via the `definition` "FlowchartDiagramConfig".
|
|
1201
|
+
*/
|
|
381
1202
|
export interface FlowchartDiagramConfig extends BaseDiagramConfig {
|
|
1203
|
+
/**
|
|
1204
|
+
* Margin top for the text over the diagram
|
|
1205
|
+
*/
|
|
382
1206
|
titleTopMargin?: number;
|
|
383
1207
|
arrowMarkerAbsolute?: boolean;
|
|
1208
|
+
/**
|
|
1209
|
+
* The amount of padding around the diagram as a whole so that embedded
|
|
1210
|
+
* diagrams have margins, expressed in pixels.
|
|
1211
|
+
*
|
|
1212
|
+
*/
|
|
384
1213
|
diagramPadding?: number;
|
|
1214
|
+
/**
|
|
1215
|
+
* Flag for setting whether or not a html tag should be used for rendering labels on the edges.
|
|
1216
|
+
*
|
|
1217
|
+
*/
|
|
385
1218
|
htmlLabels?: boolean;
|
|
1219
|
+
/**
|
|
1220
|
+
* Defines the spacing between nodes on the same level
|
|
1221
|
+
*
|
|
1222
|
+
* Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs,
|
|
1223
|
+
* and the vertical spacing for LR as well as RL graphs.
|
|
1224
|
+
*
|
|
1225
|
+
*/
|
|
386
1226
|
nodeSpacing?: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* Defines the spacing between nodes on different levels
|
|
1229
|
+
*
|
|
1230
|
+
* Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs,
|
|
1231
|
+
* and the vertical spacing for LR as well as RL graphs.
|
|
1232
|
+
*
|
|
1233
|
+
*/
|
|
387
1234
|
rankSpacing?: number;
|
|
388
|
-
|
|
1235
|
+
/**
|
|
1236
|
+
* Defines how mermaid renders curves for flowcharts.
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1239
|
+
curve?: string | "basis" | "linear" | "cardinal";
|
|
1240
|
+
/**
|
|
1241
|
+
* Represents the padding between the labels and the shape
|
|
1242
|
+
*
|
|
1243
|
+
* **Only used in new experimental rendering.**
|
|
1244
|
+
*
|
|
1245
|
+
*/
|
|
389
1246
|
padding?: number;
|
|
390
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* Decides which rendering engine that is to be used for the rendering.
|
|
1249
|
+
*
|
|
1250
|
+
*/
|
|
1251
|
+
defaultRenderer?: string | "dagre-d3" | "dagre-wrapper" | "elk";
|
|
1252
|
+
/**
|
|
1253
|
+
* Width of nodes where text is wrapped.
|
|
1254
|
+
*
|
|
1255
|
+
* When using markdown strings the text ius wrapped automatically, this
|
|
1256
|
+
* value sets the max width of a text before it continues on a new line.
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
391
1259
|
wrappingWidth?: number;
|
|
392
1260
|
}
|
|
1261
|
+
/**
|
|
1262
|
+
* The object containing configurations specific for sankey diagrams.
|
|
1263
|
+
*
|
|
1264
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
1265
|
+
* via the `definition` "SankeyDiagramConfig".
|
|
1266
|
+
*/
|
|
1267
|
+
export interface SankeyDiagramConfig extends BaseDiagramConfig {
|
|
1268
|
+
width?: number;
|
|
1269
|
+
height?: number;
|
|
1270
|
+
/**
|
|
1271
|
+
* The color of the links in the sankey diagram.
|
|
1272
|
+
*
|
|
1273
|
+
*/
|
|
1274
|
+
linkColor?: SankeyLinkColor | string;
|
|
1275
|
+
/**
|
|
1276
|
+
* Controls the alignment of the Sankey diagrams.
|
|
1277
|
+
*
|
|
1278
|
+
* See <https://github.com/d3/d3-sankey#alignments>.
|
|
1279
|
+
*
|
|
1280
|
+
*/
|
|
1281
|
+
nodeAlignment?: "left" | "right" | "center" | "justify";
|
|
1282
|
+
useMaxWidth?: boolean;
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* This interface was referenced by `MermaidConfig`'s JSON-Schema
|
|
1286
|
+
* via the `definition` "FontConfig".
|
|
1287
|
+
*/
|
|
393
1288
|
export interface FontConfig {
|
|
394
|
-
fontSize?:
|
|
1289
|
+
fontSize?: CSSFontSize;
|
|
1290
|
+
/**
|
|
1291
|
+
* The CSS [`font-family`](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family) to use.
|
|
1292
|
+
*/
|
|
395
1293
|
fontFamily?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* The font weight to use.
|
|
1296
|
+
*/
|
|
396
1297
|
fontWeight?: string | number;
|
|
397
1298
|
}
|
|
398
|
-
export type FontCalculator = () => Partial<FontConfig>;
|
|
399
|
-
export {};
|