Mermaid Config Schema β
https://mermaid.js.org/schemas/config.schema.json
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | config.schema.json |
Mermaid Config Type β
object
(Mermaid Config)
Mermaid Config Properties β
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
theme | string | Optional | cannot be null | Mermaid Config |
themeVariables | Not specified | Optional | cannot be null | Mermaid Config |
themeCSS | string | Optional | cannot be null | Mermaid Config |
look | string | Required | cannot be null | Mermaid Config |
handDrawnSeed | number | Optional | cannot be null | Mermaid Config |
layout | string | Optional | cannot be null | Mermaid Config |
maxTextSize | number | Optional | cannot be null | Mermaid Config |
maxEdges | integer | Optional | cannot be null | Mermaid Config |
elk | object | Optional | cannot be null | Mermaid Config |
darkMode | boolean | Optional | cannot be null | Mermaid Config |
htmlLabels | boolean | Optional | cannot be null | Mermaid Config |
fontFamily | string | Required | cannot be null | Mermaid Config |
altFontFamily | string | Optional | cannot be null | Mermaid Config |
logLevel | Multiple | Required | cannot be null | Mermaid Config |
securityLevel | string | Required | cannot be null | Mermaid Config |
startOnLoad | boolean | Required | cannot be null | Mermaid Config |
arrowMarkerAbsolute | boolean | Required | cannot be null | Mermaid Config |
secure | array | Optional | cannot be null | Mermaid Config |
legacyMathML | boolean | Optional | cannot be null | Mermaid Config |
forceLegacyMathML | boolean | Optional | cannot be null | Mermaid Config |
deterministicIds | boolean | Optional | cannot be null | Mermaid Config |
deterministicIDSeed | string | Optional | cannot be null | Mermaid Config |
flowchart | Merged | Required | cannot be null | Mermaid Config |
sequence | Merged | Required | cannot be null | Mermaid Config |
gantt | Merged | Required | cannot be null | Mermaid Config |
journey | Merged | Required | cannot be null | Mermaid Config |
timeline | Merged | Optional | cannot be null | Mermaid Config |
class | Merged | Required | cannot be null | Mermaid Config |
state | Merged | Required | cannot be null | Mermaid Config |
er | Merged | Required | cannot be null | Mermaid Config |
pie | Merged | Required | cannot be null | Mermaid Config |
quadrantChart | Merged | Required | cannot be null | Mermaid Config |
xyChart | Merged | Required | cannot be null | Mermaid Config |
requirement | Merged | Required | cannot be null | Mermaid Config |
architecture | Merged | Required | cannot be null | Mermaid Config |
mindmap | Merged | Required | cannot be null | Mermaid Config |
kanban | Merged | Required | cannot be null | Mermaid Config |
gitGraph | Merged | Required | cannot be null | Mermaid Config |
c4 | Merged | Required | cannot be null | Mermaid Config |
sankey | Merged | Required | cannot be null | Mermaid Config |
packet | Merged | Required | cannot be null | Mermaid Config |
block | Merged | Required | cannot be null | Mermaid Config |
radar | Merged | Required | cannot be null | Mermaid Config |
dompurifyConfig | object | Optional | cannot be null | Mermaid Config |
wrap | boolean | Optional | cannot be null | Mermaid Config |
fontSize | number | Optional | cannot be null | Mermaid Config |
markdownAutoWrap | boolean | Optional | cannot be null | Mermaid Config |
suppressErrorRendering | boolean | Optional | cannot be null | Mermaid Config |
theme β
Theme, the CSS style sheet. You may also use themeCSS
to override this value.
theme
is optional
Type:
string
cannot be null
defined in: Mermaid Config
theme Type β
string
theme Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"default" | |
"base" | |
"dark" | |
"forest" | |
"neutral" | |
"null" | Can be set to disable any pre-defined mermaid theme |
theme Default Value β
The default value is:
"default"
themeVariables β
themeVariables
is optional
Type: unknown
cannot be null
defined in: Mermaid Config
tsType:
any
themeVariables Type β
unknown
themeCSS β
themeCSS
is optional
Type:
string
cannot be null
defined in: Mermaid Config
themeCSS Type β
string
look β
Defines which main look to use for the diagram.
look
is required
Type:
string
cannot be null
defined in: Mermaid Config
look Type β
string
look Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"classic" | |
"handDrawn" |
look Default Value β
The default value is:
"classic"
handDrawnSeed β
Defines the seed to be used when using handDrawn look. This is important for the automated tests as they will always find differences without the seed. The default value is 0 which gives a random seed.
handDrawnSeed
is optional
Type:
number
cannot be null
defined in: Mermaid Config
handDrawnSeed Type β
number
layout β
Defines which layout algorithm to use for rendering the diagram.
layout
is optional
Type:
string
cannot be null
defined in: Mermaid Config
layout Type β
string
layout Default Value β
The default value is:
"dagre"
maxTextSize β
The maximum allowed size of the users text diagram
maxTextSize
is optional
Type:
number
cannot be null
defined in: Mermaid Config
maxTextSize Type β
number
maxTextSize Default Value β
The default value is:
50000
maxEdges β
Defines the maximum number of edges that can be drawn in a graph.
maxEdges
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
maxEdges Type β
integer
maxEdges Constraints β
minimum: the value of this number must greater than or equal to: 0
maxEdges Default Value β
The default value is:
500
elk β
elk
is optional
Type:
object
(Details)cannot be null
defined in: Mermaid Config
elk Type β
object
(Details)
darkMode β
darkMode
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
darkMode Type β
boolean
htmlLabels β
htmlLabels
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
htmlLabels Type β
boolean
fontFamily β
Specifies the font to be used in the rendered diagrams. Can be any possible CSS font-family
. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
fontFamily
is required
Type:
string
cannot be null
defined in: Mermaid Config
fontFamily Type β
string
fontFamily Default Value β
The default value is:
"\"trebuchet ms\", verdana, arial, sans-serif;"
altFontFamily β
altFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
altFontFamily Type β
string
logLevel β
This option decides the amount of logging to be used by mermaid.
logLevel
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
logLevel Type β
any of the following: string
or number
(Details)
logLevel Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"trace" | Equivalent to 0 |
0 | |
"debug" | Equivalent to 1 |
1 | |
"info" | Equivalent to 2 |
2 | |
"warn" | Equivalent to 3 |
3 | |
"error" | Equivalent to 4 |
4 | |
"fatal" | Equivalent to 5 (default) |
5 |
logLevel Default Value β
The default value is:
5
securityLevel β
Level of trust for parsed diagram
securityLevel
is required
Type:
string
cannot be null
defined in: Mermaid Config
securityLevel Type β
string
securityLevel Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"strict" | (**default**) HTML tags in the text are encoded and click functionality is disabled. |
"loose" | HTML tags in text are allowed and click functionality is enabled. |
"antiscript" | HTML tags in text are allowed (only script elements are removed), and click functionality is enabled. |
"sandbox" | With this security level, all rendering takes place in a sandboxed iframe. This prevent any JavaScript from running in the context. This may hinder interactive functionality of the diagram, like scripts, popups in the sequence diagram, or links to other tabs or targets, etc. |
securityLevel Default Value β
The default value is:
"strict"
startOnLoad β
Dictates whether mermaid starts on Page load
startOnLoad
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
startOnLoad Type β
boolean
startOnLoad Default Value β
The default value is:
true
arrowMarkerAbsolute β
Controls whether or arrow markers in html code are absolute paths or anchors. This matters if you are using base tag settings.
arrowMarkerAbsolute
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
secure β
This option controls which currentConfig
keys are considered secure and can only be changed via call to mermaid.initialize
. This prevents malicious graph directives from overriding a site's default security.
secure
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
secure Type β
string[]
secure Default Value β
The default value is:
["secure", "securityLevel", "startOnLoad", "maxTextSize", "suppressErrorRendering", "maxEdges"]
legacyMathML β
This option specifies if Mermaid can expect the dependent to include KaTeX stylesheets for browsers without their own MathML implementation. If this option is disabled and MathML is not supported, the math equations are replaced with a warning. If this option is enabled and MathML is not supported, Mermaid will fall back to legacy rendering for KaTeX.
legacyMathML
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
legacyMathML Type β
boolean
forceLegacyMathML β
This option forces Mermaid to rely on KaTeX's own stylesheet for rendering MathML. Due to differences between OS fonts and browser's MathML implementation, this option is recommended if consistent rendering is important. If set to true, ignores legacyMathML.
forceLegacyMathML
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
forceLegacyMathML Type β
boolean
deterministicIds β
This option controls if the generated ids of nodes in the SVG are generated randomly or based on a seed. If set to false
, the IDs are generated based on the current date and thus are not deterministic. This is the default behavior.
This matters if your files are checked into source control e.g. git and should not change unless content is changed.
deterministicIds
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
deterministicIds Type β
boolean
deterministicIDSeed β
This option is the optional seed for deterministic ids. If set to undefined
but deterministicIds is true
, a simple number iterator is used. You can set this attribute to base the seed on a static string.
deterministicIDSeed
is optional
Type:
string
cannot be null
defined in: Mermaid Config
deterministicIDSeed Type β
string
flowchart β
The object containing configurations specific for flowcharts
flowchart
is required
Type:
object
(Flowchart Diagram Config)cannot be null
defined in: Mermaid Config
flowchart Type β
object
(Flowchart Diagram Config)
all of
sequence β
The object containing configurations specific for sequence diagrams
sequence
is required
Type:
object
(Sequence Diagram Config)cannot be null
defined in: Mermaid Config
sequence Type β
object
(Sequence Diagram Config)
all of
gantt β
The object containing configurations specific for gantt diagrams
gantt
is required
Type:
object
(Gantt Diagram Config)cannot be null
defined in: Mermaid Config
gantt Type β
object
(Gantt Diagram Config)
all of
journey β
The object containing configurations specific for journey diagrams
journey
is required
Type:
object
(Journey Diagram Config)cannot be null
defined in: Mermaid Config
journey Type β
object
(Journey Diagram Config)
all of
timeline β
timeline
is optional
Type:
object
(Timeline Diagram Config)cannot be null
defined in: Mermaid Config
timeline Type β
object
(Timeline Diagram Config)
all of
class β
class
is required
Type:
object
(Class Diagram Config)cannot be null
defined in: Mermaid Config
class Type β
object
(Class Diagram Config)
all of
state β
The object containing configurations specific for entity relationship diagrams
state
is required
Type:
object
(State Diagram Config)cannot be null
defined in: Mermaid Config
state Type β
object
(State Diagram Config)
all of
er β
The object containing configurations specific for entity relationship diagrams
er
is required
Type:
object
(Er Diagram Config)cannot be null
defined in: Mermaid Config
er Type β
object
(Er Diagram Config)
all of
pie β
pie
is required
Type:
object
(Pie Diagram Config)cannot be null
defined in: Mermaid Config
pie Type β
object
(Pie Diagram Config)
all of
quadrantChart β
quadrantChart
is required
Type:
object
(Quadrant Chart Config)cannot be null
defined in: Mermaid Config
quadrantChart Type β
object
(Quadrant Chart Config)
all of
xyChart β
This object contains configuration specific to XYCharts
xyChart
is required
Type:
object
(XYChart Config)cannot be null
defined in: Mermaid Config
xyChart Type β
object
(XYChart Config)
all of
requirement β
The object containing configurations specific for req diagrams
requirement
is required
Type:
object
(Requirement Diagram Config)cannot be null
defined in: Mermaid Config
requirement Type β
object
(Requirement Diagram Config)
all of
architecture β
The object containing configurations specific for architecture diagrams
architecture
is required
Type:
object
(Architecture Diagram Config)cannot be null
defined in: Mermaid Config
architecture Type β
object
(Architecture Diagram Config)
all of
mindmap β
The object containing configurations specific for mindmap diagrams
mindmap
is required
Type:
object
(Mindmap Diagram Config)cannot be null
defined in: Mermaid Config
mindmap Type β
object
(Mindmap Diagram Config)
all of
kanban β
The object containing configurations specific for kanban diagrams
kanban
is required
Type:
object
(Kanban Diagram Config)cannot be null
defined in: Mermaid Config
kanban Type β
object
(Kanban Diagram Config)
all of
gitGraph β
gitGraph
is required
Type:
object
(Git Graph Diagram Config)cannot be null
defined in: Mermaid Config
gitGraph Type β
object
(Git Graph Diagram Config)
all of
c4 β
The object containing configurations specific for c4 diagrams
c4
is required
Type:
object
(C4 Diagram Config)cannot be null
defined in: Mermaid Config
c4 Type β
object
(C4 Diagram Config)
all of
sankey β
The object containing configurations specific for sankey diagrams.
sankey
is required
Type:
object
(Sankey Diagram Config)cannot be null
defined in: Mermaid Config
sankey Type β
object
(Sankey Diagram Config)
all of
packet β
The object containing configurations specific for packet diagrams.
packet
is required
Type:
object
(Packet Diagram Config)cannot be null
defined in: Mermaid Config
packet Type β
object
(Packet Diagram Config)
all of
block β
The object containing configurations specific for block diagrams.
block
is required
Type:
object
(Block Diagram Config)cannot be null
defined in: Mermaid Config
block Type β
object
(Block Diagram Config)
all of
radar β
The object containing configurations specific for radar diagrams.
radar
is required
Type:
object
(Radar Diagram Config)cannot be null
defined in: Mermaid Config
radar Type β
object
(Radar Diagram Config)
all of
dompurifyConfig β
Configuration options to pass to the dompurify
library.
dompurifyConfig
is optional
Type:
object
(DOM Purify Configuration)cannot be null
defined in: Mermaid Config
tsType:
import('dompurify').Config
dompurifyConfig Type β
object
(DOM Purify Configuration)
wrap β
wrap
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
wrap Type β
boolean
fontSize β
fontSize
is optional
Type:
number
cannot be null
defined in: Mermaid Config
fontSize Type β
number
fontSize Default Value β
The default value is:
16
markdownAutoWrap β
markdownAutoWrap
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
markdownAutoWrap Type β
boolean
markdownAutoWrap Default Value β
The default value is:
true
suppressErrorRendering β
Suppresses inserting 'Syntax error' diagram in the DOM. This is useful when you want to control how to handle syntax errors in your application.
suppressErrorRendering
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
suppressErrorRendering Type β
boolean
Mermaid Config Definitions β
Definitions group BaseDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/BaseDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
useWidth | number | Optional | cannot be null | Mermaid Config |
useMaxWidth | boolean | Optional | cannot be null | Mermaid Config |
useWidth β
useWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
useWidth Type β
number
useMaxWidth β
When this flag is set to true
, the height and width is set to 100% and is then scaled with the available space. If set to false
, the absolute space required is used.
useMaxWidth
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type β
boolean
useMaxWidth Default Value β
The default value is:
true
Definitions group C4DiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/C4DiagramConfig" }
diagramMarginX β
Margin to the right and left of the c4 diagram, must be a positive value.
diagramMarginX
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginX Type β
integer
diagramMarginX Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginX Default Value β
The default value is:
50
diagramMarginY β
Margin to the over and under the c4 diagram, must be a positive value.
diagramMarginY
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginY Type β
integer
diagramMarginY Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginY Default Value β
The default value is:
10
c4ShapeMargin β
Margin between shapes
c4ShapeMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
c4ShapeMargin Type β
integer
c4ShapeMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
c4ShapeMargin Default Value β
The default value is:
50
c4ShapePadding β
Padding between shapes
c4ShapePadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
c4ShapePadding Type β
integer
c4ShapePadding Constraints β
minimum: the value of this number must greater than or equal to: 0
c4ShapePadding Default Value β
The default value is:
20
width β
Width of person boxes
width
is required
Type:
integer
cannot be null
defined in: Mermaid Config
width Type β
integer
width Constraints β
minimum: the value of this number must greater than or equal to: 0
width Default Value β
The default value is:
216
height β
Height of person boxes
height
is required
Type:
integer
cannot be null
defined in: Mermaid Config
height Type β
integer
height Constraints β
minimum: the value of this number must greater than or equal to: 0
height Default Value β
The default value is:
60
boxMargin β
Margin around boxes
boxMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxMargin Type β
integer
boxMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxMargin Default Value β
The default value is:
10
c4ShapeInRow β
How many shapes to place in each row.
c4ShapeInRow
is required
Type:
integer
cannot be null
defined in: Mermaid Config
c4ShapeInRow Type β
integer
c4ShapeInRow Constraints β
minimum: the value of this number must greater than or equal to: 0
c4ShapeInRow Default Value β
The default value is:
4
nextLinePaddingX β
nextLinePaddingX
is optional
Type:
number
cannot be null
defined in: Mermaid Config
nextLinePaddingX Type β
number
c4BoundaryInRow β
How many boundaries to place in each row.
c4BoundaryInRow
is required
Type:
integer
cannot be null
defined in: Mermaid Config
c4BoundaryInRow Type β
integer
c4BoundaryInRow Constraints β
minimum: the value of this number must greater than or equal to: 0
c4BoundaryInRow Default Value β
The default value is:
2
personFontSize β
This sets the font size of Person shape for the diagram
personFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
personFontSize Type β
any of the following: string
or number
(Details)
personFontSize Default Value β
The default value is:
14
personFontFamily β
This sets the font weight of Person shape for the diagram
personFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
personFontFamily Type β
string
personFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
personFontWeight β
This sets the font weight of Person shape for the diagram
personFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
personFontWeight Type β
any of the following: string
or number
(Details)
personFontWeight Default Value β
The default value is:
"normal"
external_personFontSize β
This sets the font size of External Person shape for the diagram
external_personFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_personFontSize Type β
any of the following: string
or number
(Details)
external_personFontSize Default Value β
The default value is:
14
external_personFontFamily β
This sets the font family of External Person shape for the diagram
external_personFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_personFontFamily Type β
string
external_personFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_personFontWeight β
This sets the font weight of External Person shape for the diagram
external_personFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_personFontWeight Type β
any of the following: string
or number
(Details)
external_personFontWeight Default Value β
The default value is:
"normal"
systemFontSize β
This sets the font size of System shape for the diagram
systemFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
systemFontSize Type β
any of the following: string
or number
(Details)
systemFontSize Default Value β
The default value is:
14
systemFontFamily β
This sets the font family of System shape for the diagram
systemFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
systemFontFamily Type β
string
systemFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
systemFontWeight β
This sets the font weight of System shape for the diagram
systemFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
systemFontWeight Type β
any of the following: string
or number
(Details)
systemFontWeight Default Value β
The default value is:
"normal"
external_systemFontSize β
This sets the font size of External System shape for the diagram
external_systemFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_systemFontSize Type β
any of the following: string
or number
(Details)
external_systemFontSize Default Value β
The default value is:
14
external_systemFontFamily β
This sets the font family of External System shape for the diagram
external_systemFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_systemFontFamily Type β
string
external_systemFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_systemFontWeight β
This sets the font weight of External System shape for the diagram
external_systemFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_systemFontWeight Type β
any of the following: string
or number
(Details)
external_systemFontWeight Default Value β
The default value is:
"normal"
system_dbFontSize β
This sets the font size of System DB shape for the diagram
system_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
system_dbFontSize Type β
any of the following: string
or number
(Details)
system_dbFontSize Default Value β
The default value is:
14
system_dbFontFamily β
This sets the font family of System DB shape for the diagram
system_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_dbFontFamily Type β
string
system_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
system_dbFontWeight β
This sets the font weight of System DB shape for the diagram
system_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
system_dbFontWeight Type β
any of the following: string
or number
(Details)
system_dbFontWeight Default Value β
The default value is:
"normal"
external_system_dbFontSize β
This sets the font size of External System DB shape for the diagram
external_system_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_system_dbFontSize Type β
any of the following: string
or number
(Details)
external_system_dbFontSize Default Value β
The default value is:
14
external_system_dbFontFamily β
This sets the font family of External System DB shape for the diagram
external_system_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_dbFontFamily Type β
string
external_system_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_system_dbFontWeight β
This sets the font weight of External System DB shape for the diagram
external_system_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_system_dbFontWeight Type β
any of the following: string
or number
(Details)
external_system_dbFontWeight Default Value β
The default value is:
"normal"
system_queueFontSize β
This sets the font size of System Queue shape for the diagram
system_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
system_queueFontSize Type β
any of the following: string
or number
(Details)
system_queueFontSize Default Value β
The default value is:
14
system_queueFontFamily β
This sets the font family of System Queue shape for the diagram
system_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_queueFontFamily Type β
string
system_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
system_queueFontWeight β
This sets the font weight of System Queue shape for the diagram
system_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
system_queueFontWeight Type β
any of the following: string
or number
(Details)
system_queueFontWeight Default Value β
The default value is:
"normal"
external_system_queueFontSize β
This sets the font size of External System Queue shape for the diagram
external_system_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_system_queueFontSize Type β
any of the following: string
or number
(Details)
external_system_queueFontSize Default Value β
The default value is:
14
external_system_queueFontFamily β
This sets the font family of External System Queue shape for the diagram
external_system_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_queueFontFamily Type β
string
external_system_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_system_queueFontWeight β
This sets the font weight of External System Queue shape for the diagram
external_system_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_system_queueFontWeight Type β
any of the following: string
or number
(Details)
external_system_queueFontWeight Default Value β
The default value is:
"normal"
boundaryFontSize β
This sets the font size of Boundary shape for the diagram
boundaryFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
boundaryFontSize Type β
any of the following: string
or number
(Details)
boundaryFontSize Default Value β
The default value is:
14
boundaryFontFamily β
This sets the font family of Boundary shape for the diagram
boundaryFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
boundaryFontFamily Type β
string
boundaryFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
boundaryFontWeight β
This sets the font weight of Boundary shape for the diagram
boundaryFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
boundaryFontWeight Type β
any of the following: string
or number
(Details)
boundaryFontWeight Default Value β
The default value is:
"normal"
messageFontSize β
This sets the font size of Message shape for the diagram
messageFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
messageFontSize Type β
any of the following: string
or number
(Details)
messageFontSize Default Value β
The default value is:
12
messageFontFamily β
This sets the font family of Message shape for the diagram
messageFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
messageFontFamily Type β
string
messageFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
messageFontWeight β
This sets the font weight of Message shape for the diagram
messageFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
messageFontWeight Type β
any of the following: string
or number
(Details)
messageFontWeight Default Value β
The default value is:
"normal"
containerFontSize β
This sets the font size of Container shape for the diagram
containerFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
containerFontSize Type β
any of the following: string
or number
(Details)
containerFontSize Default Value β
The default value is:
14
containerFontFamily β
This sets the font family of Container shape for the diagram
containerFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
containerFontFamily Type β
string
containerFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
containerFontWeight β
This sets the font weight of Container shape for the diagram
containerFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
containerFontWeight Type β
any of the following: string
or number
(Details)
containerFontWeight Default Value β
The default value is:
"normal"
external_containerFontSize β
This sets the font size of External Container shape for the diagram
external_containerFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_containerFontSize Type β
any of the following: string
or number
(Details)
external_containerFontSize Default Value β
The default value is:
14
external_containerFontFamily β
This sets the font family of External Container shape for the diagram
external_containerFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_containerFontFamily Type β
string
external_containerFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_containerFontWeight β
This sets the font weight of External Container shape for the diagram
external_containerFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_containerFontWeight Type β
any of the following: string
or number
(Details)
external_containerFontWeight Default Value β
The default value is:
"normal"
container_dbFontSize β
This sets the font size of Container DB shape for the diagram
container_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
container_dbFontSize Type β
any of the following: string
or number
(Details)
container_dbFontSize Default Value β
The default value is:
14
container_dbFontFamily β
This sets the font family of Container DB shape for the diagram
container_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_dbFontFamily Type β
string
container_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
container_dbFontWeight β
This sets the font weight of Container DB shape for the diagram
container_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
container_dbFontWeight Type β
any of the following: string
or number
(Details)
container_dbFontWeight Default Value β
The default value is:
"normal"
external_container_dbFontSize β
This sets the font size of External Container DB shape for the diagram
external_container_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_container_dbFontSize Type β
any of the following: string
or number
(Details)
external_container_dbFontSize Default Value β
The default value is:
14
external_container_dbFontFamily β
This sets the font family of External Container DB shape for the diagram
external_container_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_dbFontFamily Type β
string
external_container_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_container_dbFontWeight β
This sets the font weight of External Container DB shape for the diagram
external_container_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_container_dbFontWeight Type β
any of the following: string
or number
(Details)
external_container_dbFontWeight Default Value β
The default value is:
"normal"
container_queueFontSize β
This sets the font size of Container Queue shape for the diagram
container_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
container_queueFontSize Type β
any of the following: string
or number
(Details)
container_queueFontSize Default Value β
The default value is:
14
container_queueFontFamily β
This sets the font family of Container Queue shape for the diagram
container_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_queueFontFamily Type β
string
container_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
container_queueFontWeight β
This sets the font weight of Container Queue shape for the diagram
container_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
container_queueFontWeight Type β
any of the following: string
or number
(Details)
container_queueFontWeight Default Value β
The default value is:
"normal"
external_container_queueFontSize β
This sets the font size of External Container Queue shape for the diagram
external_container_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_container_queueFontSize Type β
any of the following: string
or number
(Details)
external_container_queueFontSize Default Value β
The default value is:
14
external_container_queueFontFamily β
This sets the font family of External Container Queue shape for the diagram
external_container_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_queueFontFamily Type β
string
external_container_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_container_queueFontWeight β
This sets the font weight of External Container Queue shape for the diagram
external_container_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_container_queueFontWeight Type β
any of the following: string
or number
(Details)
external_container_queueFontWeight Default Value β
The default value is:
"normal"
componentFontSize β
This sets the font size of Component shape for the diagram
componentFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
componentFontSize Type β
any of the following: string
or number
(Details)
componentFontSize Default Value β
The default value is:
14
componentFontFamily β
This sets the font family of Component shape for the diagram
componentFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
componentFontFamily Type β
string
componentFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
componentFontWeight β
This sets the font weight of Component shape for the diagram
componentFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
componentFontWeight Type β
any of the following: string
or number
(Details)
componentFontWeight Default Value β
The default value is:
"normal"
external_componentFontSize β
This sets the font size of External Component shape for the diagram
external_componentFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_componentFontSize Type β
any of the following: string
or number
(Details)
external_componentFontSize Default Value β
The default value is:
14
external_componentFontFamily β
This sets the font family of External Component shape for the diagram
external_componentFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_componentFontFamily Type β
string
external_componentFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_componentFontWeight β
This sets the font weight of External Component shape for the diagram
external_componentFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_componentFontWeight Type β
any of the following: string
or number
(Details)
external_componentFontWeight Default Value β
The default value is:
"normal"
component_dbFontSize β
This sets the font size of Component DB shape for the diagram
component_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
component_dbFontSize Type β
any of the following: string
or number
(Details)
component_dbFontSize Default Value β
The default value is:
14
component_dbFontFamily β
This sets the font family of Component DB shape for the diagram
component_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_dbFontFamily Type β
string
component_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
component_dbFontWeight β
This sets the font weight of Component DB shape for the diagram
component_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
component_dbFontWeight Type β
any of the following: string
or number
(Details)
component_dbFontWeight Default Value β
The default value is:
"normal"
external_component_dbFontSize β
This sets the font size of External Component DB shape for the diagram
external_component_dbFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_component_dbFontSize Type β
any of the following: string
or number
(Details)
external_component_dbFontSize Default Value β
The default value is:
14
external_component_dbFontFamily β
This sets the font family of External Component DB shape for the diagram
external_component_dbFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_dbFontFamily Type β
string
external_component_dbFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_component_dbFontWeight β
This sets the font weight of External Component DB shape for the diagram
external_component_dbFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_component_dbFontWeight Type β
any of the following: string
or number
(Details)
external_component_dbFontWeight Default Value β
The default value is:
"normal"
component_queueFontSize β
This sets the font size of Component Queue shape for the diagram
component_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
component_queueFontSize Type β
any of the following: string
or number
(Details)
component_queueFontSize Default Value β
The default value is:
14
component_queueFontFamily β
This sets the font family of Component Queue shape for the diagram
component_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_queueFontFamily Type β
string
component_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
component_queueFontWeight β
This sets the font weight of Component Queue shape for the diagram
component_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
component_queueFontWeight Type β
any of the following: string
or number
(Details)
component_queueFontWeight Default Value β
The default value is:
"normal"
external_component_queueFontSize β
This sets the font size of External Component Queue shape for the diagram
external_component_queueFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_component_queueFontSize Type β
any of the following: string
or number
(Details)
external_component_queueFontSize Default Value β
The default value is:
14
external_component_queueFontFamily β
This sets the font family of External Component Queue shape for the diagram
external_component_queueFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_queueFontFamily Type β
string
external_component_queueFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
external_component_queueFontWeight β
This sets the font weight of External Component Queue shape for the diagram
external_component_queueFontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
external_component_queueFontWeight Type β
any of the following: string
or number
(Details)
external_component_queueFontWeight Default Value β
The default value is:
"normal"
wrap β
This sets the auto-wrap state for the diagram
wrap
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
wrap Type β
boolean
wrap Default Value β
The default value is:
true
wrapPadding β
This sets the auto-wrap padding for the diagram (sides only)
wrapPadding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
wrapPadding Type β
number
wrapPadding Default Value β
The default value is:
10
person_bg_color β
person_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
person_bg_color Type β
string
person_bg_color Default Value β
The default value is:
"#08427B"
person_border_color β
person_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
person_border_color Type β
string
person_border_color Default Value β
The default value is:
"#073B6F"
external_person_bg_color β
external_person_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_person_bg_color Type β
string
external_person_bg_color Default Value β
The default value is:
"#686868"
external_person_border_color β
external_person_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_person_border_color Type β
string
external_person_border_color Default Value β
The default value is:
"#8A8A8A"
system_bg_color β
system_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_bg_color Type β
string
system_bg_color Default Value β
The default value is:
"#1168BD"
system_border_color β
system_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_border_color Type β
string
system_border_color Default Value β
The default value is:
"#3C7FC0"
system_db_bg_color β
system_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_db_bg_color Type β
string
system_db_bg_color Default Value β
The default value is:
"#1168BD"
system_db_border_color β
system_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_db_border_color Type β
string
system_db_border_color Default Value β
The default value is:
"#3C7FC0"
system_queue_bg_color β
system_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_queue_bg_color Type β
string
system_queue_bg_color Default Value β
The default value is:
"#1168BD"
system_queue_border_color β
system_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
system_queue_border_color Type β
string
system_queue_border_color Default Value β
The default value is:
"#3C7FC0"
external_system_bg_color β
external_system_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_bg_color Type β
string
external_system_bg_color Default Value β
The default value is:
"#999999"
external_system_border_color β
external_system_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_border_color Type β
string
external_system_border_color Default Value β
The default value is:
"#8A8A8A"
external_system_db_bg_color β
external_system_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_db_bg_color Type β
string
external_system_db_bg_color Default Value β
The default value is:
"#999999"
external_system_db_border_color β
external_system_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_db_border_color Type β
string
external_system_db_border_color Default Value β
The default value is:
"#8A8A8A"
external_system_queue_bg_color β
external_system_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_queue_bg_color Type β
string
external_system_queue_bg_color Default Value β
The default value is:
"#999999"
external_system_queue_border_color β
external_system_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_system_queue_border_color Type β
string
external_system_queue_border_color Default Value β
The default value is:
"#8A8A8A"
container_bg_color β
container_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_bg_color Type β
string
container_bg_color Default Value β
The default value is:
"#438DD5"
container_border_color β
container_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_border_color Type β
string
container_border_color Default Value β
The default value is:
"#3C7FC0"
container_db_bg_color β
container_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_db_bg_color Type β
string
container_db_bg_color Default Value β
The default value is:
"#438DD5"
container_db_border_color β
container_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_db_border_color Type β
string
container_db_border_color Default Value β
The default value is:
"#3C7FC0"
container_queue_bg_color β
container_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_queue_bg_color Type β
string
container_queue_bg_color Default Value β
The default value is:
"#438DD5"
container_queue_border_color β
container_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
container_queue_border_color Type β
string
container_queue_border_color Default Value β
The default value is:
"#3C7FC0"
external_container_bg_color β
external_container_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_bg_color Type β
string
external_container_bg_color Default Value β
The default value is:
"#B3B3B3"
external_container_border_color β
external_container_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_border_color Type β
string
external_container_border_color Default Value β
The default value is:
"#A6A6A6"
external_container_db_bg_color β
external_container_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_db_bg_color Type β
string
external_container_db_bg_color Default Value β
The default value is:
"#B3B3B3"
external_container_db_border_color β
external_container_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_db_border_color Type β
string
external_container_db_border_color Default Value β
The default value is:
"#A6A6A6"
external_container_queue_bg_color β
external_container_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_queue_bg_color Type β
string
external_container_queue_bg_color Default Value β
The default value is:
"#B3B3B3"
external_container_queue_border_color β
external_container_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_container_queue_border_color Type β
string
external_container_queue_border_color Default Value β
The default value is:
"#A6A6A6"
component_bg_color β
component_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_bg_color Type β
string
component_bg_color Default Value β
The default value is:
"#85BBF0"
component_border_color β
component_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_border_color Type β
string
component_border_color Default Value β
The default value is:
"#78A8D8"
component_db_bg_color β
component_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_db_bg_color Type β
string
component_db_bg_color Default Value β
The default value is:
"#85BBF0"
component_db_border_color β
component_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_db_border_color Type β
string
component_db_border_color Default Value β
The default value is:
"#78A8D8"
component_queue_bg_color β
component_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_queue_bg_color Type β
string
component_queue_bg_color Default Value β
The default value is:
"#85BBF0"
component_queue_border_color β
component_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
component_queue_border_color Type β
string
component_queue_border_color Default Value β
The default value is:
"#78A8D8"
external_component_bg_color β
external_component_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_bg_color Type β
string
external_component_bg_color Default Value β
The default value is:
"#CCCCCC"
external_component_border_color β
external_component_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_border_color Type β
string
external_component_border_color Default Value β
The default value is:
"#BFBFBF"
external_component_db_bg_color β
external_component_db_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_db_bg_color Type β
string
external_component_db_bg_color Default Value β
The default value is:
"#CCCCCC"
external_component_db_border_color β
external_component_db_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_db_border_color Type β
string
external_component_db_border_color Default Value β
The default value is:
"#BFBFBF"
external_component_queue_bg_color β
external_component_queue_bg_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_queue_bg_color Type β
string
external_component_queue_bg_color Default Value β
The default value is:
"#CCCCCC"
external_component_queue_border_color β
external_component_queue_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
external_component_queue_border_color Type β
string
external_component_queue_border_color Default Value β
The default value is:
"#BFBFBF"
personFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
personFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
personFont Type β
unknown (Font Calculator)
external_personFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_personFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_personFont Type β
unknown (Font Calculator)
systemFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
systemFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
systemFont Type β
unknown (Font Calculator)
external_systemFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_systemFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_systemFont Type β
unknown (Font Calculator)
system_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
system_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
system_dbFont Type β
unknown (Font Calculator)
external_system_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_system_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_system_dbFont Type β
unknown (Font Calculator)
system_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
system_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
system_queueFont Type β
unknown (Font Calculator)
external_system_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_system_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_system_queueFont Type β
unknown (Font Calculator)
containerFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
containerFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
containerFont Type β
unknown (Font Calculator)
external_containerFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_containerFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_containerFont Type β
unknown (Font Calculator)
container_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
container_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
container_dbFont Type β
unknown (Font Calculator)
external_container_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_container_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_container_dbFont Type β
unknown (Font Calculator)
container_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
container_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
container_queueFont Type β
unknown (Font Calculator)
external_container_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_container_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_container_queueFont Type β
unknown (Font Calculator)
componentFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
componentFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
componentFont Type β
unknown (Font Calculator)
external_componentFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_componentFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_componentFont Type β
unknown (Font Calculator)
component_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
component_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
component_dbFont Type β
unknown (Font Calculator)
external_component_dbFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_component_dbFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_component_dbFont Type β
unknown (Font Calculator)
component_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
component_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
component_queueFont Type β
unknown (Font Calculator)
external_component_queueFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_component_queueFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
external_component_queueFont Type β
unknown (Font Calculator)
boundaryFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
boundaryFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
boundaryFont Type β
unknown (Font Calculator)
messageFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
messageFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
messageFont Type β
unknown (Font Calculator)
Definitions group GitGraphDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/GitGraphDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
diagramPadding | number | Optional | cannot be null | Mermaid Config |
nodeLabel | Merged | Optional | cannot be null | Mermaid Config |
mainBranchName | string | Optional | cannot be null | Mermaid Config |
mainBranchOrder | number | Optional | cannot be null | Mermaid Config |
showCommitLabel | boolean | Optional | cannot be null | Mermaid Config |
showBranches | boolean | Optional | cannot be null | Mermaid Config |
rotateCommitLabel | boolean | Optional | cannot be null | Mermaid Config |
parallelCommits | boolean | Optional | cannot be null | Mermaid Config |
arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
diagramPadding β
diagramPadding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
diagramPadding Type β
number
diagramPadding Default Value β
The default value is:
8
nodeLabel β
nodeLabel
is optional
Type:
object
(Details)cannot be null
defined in: Mermaid Config
nodeLabel Type β
object
(Details)
all of
nodeLabel Default Value β
The default value is:
{
"width": 75,
"height": 100,
"x": -25,
"y": 0
}
mainBranchName β
mainBranchName
is optional
Type:
string
cannot be null
defined in: Mermaid Config
mainBranchName Type β
string
mainBranchName Default Value β
The default value is:
"main"
mainBranchOrder β
mainBranchOrder
is optional
Type:
number
cannot be null
defined in: Mermaid Config
mainBranchOrder Type β
number
showCommitLabel β
showCommitLabel
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showCommitLabel Type β
boolean
showCommitLabel Default Value β
The default value is:
true
showBranches β
showBranches
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showBranches Type β
boolean
showBranches Default Value β
The default value is:
true
rotateCommitLabel β
rotateCommitLabel
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
rotateCommitLabel Type β
boolean
rotateCommitLabel Default Value β
The default value is:
true
parallelCommits β
parallelCommits
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
parallelCommits Type β
boolean
arrowMarkerAbsolute β
Controls whether or arrow markers in html code are absolute paths or anchors. This matters if you are using base tag settings.
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
Definitions group NodeLabel β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/NodeLabel" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
width | number | Optional | cannot be null | Mermaid Config |
height | number | Optional | cannot be null | Mermaid Config |
x | number | Optional | cannot be null | Mermaid Config |
y | number | Optional | cannot be null | Mermaid Config |
width β
width
is optional
Type:
number
cannot be null
defined in: Mermaid Config
width Type β
number
height β
height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
height Type β
number
x β
x
is optional
Type:
number
cannot be null
defined in: Mermaid Config
x Type β
number
y β
y
is optional
Type:
number
cannot be null
defined in: Mermaid Config
y Type β
number
Definitions group RequirementDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/RequirementDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
rect_fill | string | Optional | cannot be null | Mermaid Config |
text_color | string | Optional | cannot be null | Mermaid Config |
rect_border_size | string | Optional | cannot be null | Mermaid Config |
rect_border_color | string | Optional | cannot be null | Mermaid Config |
rect_min_width | number | Optional | cannot be null | Mermaid Config |
rect_min_height | number | Optional | cannot be null | Mermaid Config |
fontSize | number | Optional | cannot be null | Mermaid Config |
rect_padding | number | Optional | cannot be null | Mermaid Config |
line_height | number | Optional | cannot be null | Mermaid Config |
rect_fill β
rect_fill
is optional
Type:
string
cannot be null
defined in: Mermaid Config
rect_fill Type β
string
rect_fill Default Value β
The default value is:
"#f9f9f9"
text_color β
text_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
text_color Type β
string
text_color Default Value β
The default value is:
"#333"
rect_border_size β
rect_border_size
is optional
Type:
string
cannot be null
defined in: Mermaid Config
rect_border_size Type β
string
rect_border_size Default Value β
The default value is:
"0.5px"
rect_border_color β
rect_border_color
is optional
Type:
string
cannot be null
defined in: Mermaid Config
rect_border_color Type β
string
rect_border_color Default Value β
The default value is:
"#bbb"
rect_min_width β
rect_min_width
is optional
Type:
number
cannot be null
defined in: Mermaid Config
rect_min_width Type β
number
rect_min_width Default Value β
The default value is:
200
rect_min_height β
rect_min_height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
rect_min_height Type β
number
rect_min_height Default Value β
The default value is:
200
fontSize β
fontSize
is optional
Type:
number
cannot be null
defined in: Mermaid Config
fontSize Type β
number
fontSize Default Value β
The default value is:
14
rect_padding β
rect_padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
rect_padding Type β
number
rect_padding Default Value β
The default value is:
10
line_height β
line_height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
line_height Type β
number
line_height Default Value β
The default value is:
20
Definitions group ArchitectureDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/ArchitectureDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
padding | number | Required | cannot be null | Mermaid Config |
iconSize | number | Required | cannot be null | Mermaid Config |
fontSize | number | Required | cannot be null | Mermaid Config |
padding β
padding
is required
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
40
iconSize β
iconSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
iconSize Type β
number
iconSize Default Value β
The default value is:
80
fontSize β
fontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
fontSize Type β
number
fontSize Default Value β
The default value is:
16
Definitions group MindmapDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/MindmapDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
padding | number | Required | cannot be null | Mermaid Config |
maxNodeWidth | number | Required | cannot be null | Mermaid Config |
padding β
padding
is required
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
10
maxNodeWidth β
maxNodeWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
maxNodeWidth Type β
number
maxNodeWidth Default Value β
The default value is:
200
Definitions group KanbanDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/KanbanDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
padding | number | Optional | cannot be null | Mermaid Config |
sectionWidth | number | Optional | cannot be null | Mermaid Config |
ticketBaseUrl | string | Optional | cannot be null | Mermaid Config |
padding β
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
8
sectionWidth β
sectionWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
sectionWidth Type β
number
sectionWidth Default Value β
The default value is:
200
ticketBaseUrl β
ticketBaseUrl
is optional
Type:
string
cannot be null
defined in: Mermaid Config
ticketBaseUrl Type β
string
Definitions group PieDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/PieDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
textPosition | number | Optional | cannot be null | Mermaid Config |
textPosition β
Axial position of slice's label from zero at the center to 1 at the outside edges.
textPosition
is optional
Type:
number
cannot be null
defined in: Mermaid Config
textPosition Type β
number
textPosition Constraints β
maximum: the value of this number must smaller than or equal to: 1
minimum: the value of this number must greater than or equal to: 0
textPosition Default Value β
The default value is:
0.75
Definitions group QuadrantChartConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/QuadrantChartConfig" }
chartWidth β
Width of the chart
chartWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
chartWidth Type β
number
chartWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
chartWidth Default Value β
The default value is:
500
chartHeight β
Height of the chart
chartHeight
is required
Type:
number
cannot be null
defined in: Mermaid Config
chartHeight Type β
number
chartHeight Constraints β
minimum: the value of this number must greater than or equal to: 0
chartHeight Default Value β
The default value is:
500
titleFontSize β
Chart title top and bottom padding
titleFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
titleFontSize Type β
number
titleFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
titleFontSize Default Value β
The default value is:
20
titlePadding β
Padding around the quadrant square
titlePadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
titlePadding Type β
number
titlePadding Constraints β
minimum: the value of this number must greater than or equal to: 0
titlePadding Default Value β
The default value is:
10
quadrantPadding β
quadrant title padding from top if the quadrant is rendered on top
quadrantPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
quadrantPadding Type β
number
quadrantPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
quadrantPadding Default Value β
The default value is:
5
xAxisLabelPadding β
Padding around x-axis labels
xAxisLabelPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
xAxisLabelPadding Type β
number
xAxisLabelPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
xAxisLabelPadding Default Value β
The default value is:
5
yAxisLabelPadding β
Padding around y-axis labels
yAxisLabelPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
yAxisLabelPadding Type β
number
yAxisLabelPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
yAxisLabelPadding Default Value β
The default value is:
5
xAxisLabelFontSize β
x-axis label font size
xAxisLabelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
xAxisLabelFontSize Type β
number
xAxisLabelFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
xAxisLabelFontSize Default Value β
The default value is:
16
yAxisLabelFontSize β
y-axis label font size
yAxisLabelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
yAxisLabelFontSize Type β
number
yAxisLabelFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
yAxisLabelFontSize Default Value β
The default value is:
16
quadrantLabelFontSize β
quadrant title font size
quadrantLabelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
quadrantLabelFontSize Type β
number
quadrantLabelFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
quadrantLabelFontSize Default Value β
The default value is:
16
quadrantTextTopPadding β
quadrant title padding from top if the quadrant is rendered on top
quadrantTextTopPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
quadrantTextTopPadding Type β
number
quadrantTextTopPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
quadrantTextTopPadding Default Value β
The default value is:
5
pointTextPadding β
padding between point and point label
pointTextPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
pointTextPadding Type β
number
pointTextPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
pointTextPadding Default Value β
The default value is:
5
pointLabelFontSize β
point title font size
pointLabelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
pointLabelFontSize Type β
number
pointLabelFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
pointLabelFontSize Default Value β
The default value is:
12
pointRadius β
radius of the point to be drawn
pointRadius
is required
Type:
number
cannot be null
defined in: Mermaid Config
pointRadius Type β
number
pointRadius Constraints β
minimum: the value of this number must greater than or equal to: 0
pointRadius Default Value β
The default value is:
5
xAxisPosition β
position of x-axis labels
xAxisPosition
is required
Type:
string
cannot be null
defined in: Mermaid Config
xAxisPosition Type β
string
xAxisPosition Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"top" | |
"bottom" |
xAxisPosition Default Value β
The default value is:
"top"
yAxisPosition β
position of y-axis labels
yAxisPosition
is required
Type:
string
cannot be null
defined in: Mermaid Config
yAxisPosition Type β
string
yAxisPosition Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | |
"right" |
yAxisPosition Default Value β
The default value is:
"left"
quadrantInternalBorderStrokeWidth β
stroke width of edges of the box that are inside the quadrant
quadrantInternalBorderStrokeWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
quadrantInternalBorderStrokeWidth Type β
number
quadrantInternalBorderStrokeWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
quadrantInternalBorderStrokeWidth Default Value β
The default value is:
1
quadrantExternalBorderStrokeWidth β
stroke width of edges of the box that are outside the quadrant
quadrantExternalBorderStrokeWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
quadrantExternalBorderStrokeWidth Type β
number
quadrantExternalBorderStrokeWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
quadrantExternalBorderStrokeWidth Default Value β
The default value is:
2
Definitions group XYChartAxisConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/XYChartAxisConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
showLabel | boolean | Required | cannot be null | Mermaid Config |
labelFontSize | number | Required | cannot be null | Mermaid Config |
labelPadding | number | Required | cannot be null | Mermaid Config |
showTitle | boolean | Required | cannot be null | Mermaid Config |
titleFontSize | number | Required | cannot be null | Mermaid Config |
titlePadding | number | Required | cannot be null | Mermaid Config |
showTick | boolean | Required | cannot be null | Mermaid Config |
tickLength | number | Required | cannot be null | Mermaid Config |
tickWidth | number | Required | cannot be null | Mermaid Config |
showAxisLine | boolean | Required | cannot be null | Mermaid Config |
axisLineWidth | number | Required | cannot be null | Mermaid Config |
showLabel β
Should show the axis labels (tick text)
showLabel
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showLabel Type β
boolean
showLabel Default Value β
The default value is:
true
labelFontSize β
font size of the axis labels (tick text)
labelFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
labelFontSize Type β
number
labelFontSize Constraints β
minimum: the value of this number must greater than or equal to: 1
labelFontSize Default Value β
The default value is:
14
labelPadding β
top and bottom space from axis label (tick text)
labelPadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
labelPadding Type β
number
labelPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
labelPadding Default Value β
The default value is:
5
showTitle β
Should show the axis title
showTitle
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTitle Type β
boolean
showTitle Default Value β
The default value is:
true
titleFontSize β
font size of the axis title
titleFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
titleFontSize Type β
number
titleFontSize Constraints β
minimum: the value of this number must greater than or equal to: 1
titleFontSize Default Value β
The default value is:
16
titlePadding β
top and bottom space from axis title
titlePadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
titlePadding Type β
number
titlePadding Constraints β
minimum: the value of this number must greater than or equal to: 0
titlePadding Default Value β
The default value is:
5
showTick β
Should show the axis tick lines
showTick
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTick Type β
boolean
showTick Default Value β
The default value is:
true
tickLength β
length of the axis tick lines
tickLength
is required
Type:
number
cannot be null
defined in: Mermaid Config
tickLength Type β
number
tickLength Constraints β
minimum: the value of this number must greater than or equal to: 1
tickLength Default Value β
The default value is:
5
tickWidth β
width of the axis tick lines
tickWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
tickWidth Type β
number
tickWidth Constraints β
minimum: the value of this number must greater than or equal to: 1
tickWidth Default Value β
The default value is:
2
showAxisLine β
Show line across the axis
showAxisLine
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showAxisLine Type β
boolean
showAxisLine Default Value β
The default value is:
true
axisLineWidth β
Width of the axis line
axisLineWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
axisLineWidth Type β
number
axisLineWidth Constraints β
minimum: the value of this number must greater than or equal to: 1
axisLineWidth Default Value β
The default value is:
2
Definitions group XYChartConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/XYChartConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
width | number | Required | cannot be null | Mermaid Config |
height | number | Required | cannot be null | Mermaid Config |
titleFontSize | number | Required | cannot be null | Mermaid Config |
titlePadding | number | Required | cannot be null | Mermaid Config |
showTitle | boolean | Required | cannot be null | Mermaid Config |
xAxis | object | Required | cannot be null | Mermaid Config |
yAxis | object | Required | cannot be null | Mermaid Config |
chartOrientation | Not specified | Required | cannot be null | Mermaid Config |
plotReservedSpacePercent | number | Required | cannot be null | Mermaid Config |
width β
width of the chart
width
is required
Type:
number
cannot be null
defined in: Mermaid Config
width Type β
number
width Constraints β
minimum: the value of this number must greater than or equal to: 1
width Default Value β
The default value is:
700
height β
height of the chart
height
is required
Type:
number
cannot be null
defined in: Mermaid Config
height Type β
number
height Constraints β
minimum: the value of this number must greater than or equal to: 1
height Default Value β
The default value is:
500
titleFontSize β
Font size of the chart title
titleFontSize
is required
Type:
number
cannot be null
defined in: Mermaid Config
titleFontSize Type β
number
titleFontSize Constraints β
minimum: the value of this number must greater than or equal to: 1
titleFontSize Default Value β
The default value is:
20
titlePadding β
Top and bottom space from the chart title
titlePadding
is required
Type:
number
cannot be null
defined in: Mermaid Config
titlePadding Type β
number
titlePadding Constraints β
minimum: the value of this number must greater than or equal to: 0
titlePadding Default Value β
The default value is:
10
showTitle β
Should show the chart title
showTitle
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showTitle Type β
boolean
showTitle Default Value β
The default value is:
true
xAxis β
This object contains configuration for XYChart axis config
xAxis
is required
Type:
object
(XYChart axis config)cannot be null
defined in: Mermaid Config
xAxis Type β
object
(XYChart axis config)
xAxis Default Value β
The default value is:
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}
yAxis β
This object contains configuration for XYChart axis config
yAxis
is required
Type:
object
(XYChart axis config)cannot be null
defined in: Mermaid Config
yAxis Type β
object
(XYChart axis config)
yAxis Default Value β
The default value is:
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}
chartOrientation β
How to plot will be drawn horizontal or vertical
chartOrientation
is required
Type: unknown
cannot be null
defined in: Mermaid Config
tsType:
"vertical" | "horizontal"
chartOrientation Type β
unknown
chartOrientation Default Value β
The default value is:
"vertical"
plotReservedSpacePercent β
Minimum percent of space plots of the chart will take
plotReservedSpacePercent
is required
Type:
number
cannot be null
defined in: Mermaid Config
plotReservedSpacePercent Type β
number
plotReservedSpacePercent Constraints β
minimum: the value of this number must greater than or equal to: 30
plotReservedSpacePercent Default Value β
The default value is:
50
Definitions group ErDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/ErDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
diagramPadding | integer | Required | cannot be null | Mermaid Config |
layoutDirection | string | Required | cannot be null | Mermaid Config |
minEntityWidth | integer | Required | cannot be null | Mermaid Config |
minEntityHeight | integer | Required | cannot be null | Mermaid Config |
entityPadding | integer | Required | cannot be null | Mermaid Config |
nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
rankSpacing | integer | Optional | cannot be null | Mermaid Config |
stroke | string | Required | cannot be null | Mermaid Config |
fill | string | Required | cannot be null | Mermaid Config |
fontSize | integer | Optional | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
diagramPadding β
The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels.
diagramPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramPadding Type β
integer
diagramPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramPadding Default Value β
The default value is:
20
layoutDirection β
Directional bias for layout of entities
layoutDirection
is required
Type:
string
cannot be null
defined in: Mermaid Config
layoutDirection Type β
string
layoutDirection Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"TB" | Top-Bottom |
"BT" | Bottom-Top |
"LR" | Left-Right |
"RL" | Right to Left |
layoutDirection Default Value β
The default value is:
"TB"
minEntityWidth β
The minimum width of an entity box. Expressed in pixels.
minEntityWidth
is required
Type:
integer
cannot be null
defined in: Mermaid Config
minEntityWidth Type β
integer
minEntityWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
minEntityWidth Default Value β
The default value is:
100
minEntityHeight β
The minimum height of an entity box. Expressed in pixels.
minEntityHeight
is required
Type:
integer
cannot be null
defined in: Mermaid Config
minEntityHeight Type β
integer
minEntityHeight Constraints β
minimum: the value of this number must greater than or equal to: 0
minEntityHeight Default Value β
The default value is:
75
entityPadding β
The minimum internal padding between text in an entity box and the enclosing box borders. Expressed in pixels.
entityPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
entityPadding Type β
integer
entityPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
entityPadding Default Value β
The default value is:
15
nodeSpacing β
nodeSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
nodeSpacing Type β
integer
nodeSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
nodeSpacing Default Value β
The default value is:
140
rankSpacing β
rankSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
rankSpacing Type β
integer
rankSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
rankSpacing Default Value β
The default value is:
80
stroke β
Stroke color of box edges and lines.
stroke
is required
Type:
string
cannot be null
defined in: Mermaid Config
stroke Type β
string
stroke Default Value β
The default value is:
"gray"
fill β
Fill color of entity boxes
fill
is required
Type:
string
cannot be null
defined in: Mermaid Config
fill Type β
string
fill Default Value β
The default value is:
"honeydew"
fontSize β
Font size (expressed as an integer representing a number of pixels)
fontSize
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
fontSize Type β
integer
fontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value β
The default value is:
12
Definitions group StateDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/StateDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
dividerMargin | number | Optional | cannot be null | Mermaid Config |
sizeUnit | number | Optional | cannot be null | Mermaid Config |
padding | number | Optional | cannot be null | Mermaid Config |
textHeight | number | Optional | cannot be null | Mermaid Config |
titleShift | number | Optional | cannot be null | Mermaid Config |
noteMargin | number | Optional | cannot be null | Mermaid Config |
nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
rankSpacing | integer | Optional | cannot be null | Mermaid Config |
forkWidth | number | Optional | cannot be null | Mermaid Config |
forkHeight | number | Optional | cannot be null | Mermaid Config |
miniPadding | number | Optional | cannot be null | Mermaid Config |
fontSizeFactor | number | Optional | cannot be null | Mermaid Config |
fontSize | number | Optional | cannot be null | Mermaid Config |
labelHeight | number | Optional | cannot be null | Mermaid Config |
edgeLengthFactor | string | Optional | cannot be null | Mermaid Config |
compositTitleSize | number | Optional | cannot be null | Mermaid Config |
radius | number | Optional | cannot be null | Mermaid Config |
defaultRenderer | string | Required | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
arrowMarkerAbsolute β
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
dividerMargin β
dividerMargin
is optional
Type:
number
cannot be null
defined in: Mermaid Config
dividerMargin Type β
number
dividerMargin Default Value β
The default value is:
10
sizeUnit β
sizeUnit
is optional
Type:
number
cannot be null
defined in: Mermaid Config
sizeUnit Type β
number
sizeUnit Default Value β
The default value is:
5
padding β
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
8
textHeight β
textHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
textHeight Type β
number
textHeight Default Value β
The default value is:
10
titleShift β
titleShift
is optional
Type:
number
cannot be null
defined in: Mermaid Config
titleShift Type β
number
titleShift Default Value β
The default value is:
-15
noteMargin β
noteMargin
is optional
Type:
number
cannot be null
defined in: Mermaid Config
noteMargin Type β
number
noteMargin Default Value β
The default value is:
10
nodeSpacing β
nodeSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
nodeSpacing Type β
integer
nodeSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
rankSpacing β
rankSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
rankSpacing Type β
integer
rankSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
forkWidth β
forkWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
forkWidth Type β
number
forkWidth Default Value β
The default value is:
70
forkHeight β
forkHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
forkHeight Type β
number
forkHeight Default Value β
The default value is:
7
miniPadding β
miniPadding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
miniPadding Type β
number
miniPadding Default Value β
The default value is:
2
fontSizeFactor β
Font size factor, this is used to guess the width of the edges labels before rendering by dagre layout. This might need updating if/when switching font
fontSizeFactor
is optional
Type:
number
cannot be null
defined in: Mermaid Config
fontSizeFactor Type β
number
fontSizeFactor Default Value β
The default value is:
5.02
fontSize β
fontSize
is optional
Type:
number
cannot be null
defined in: Mermaid Config
fontSize Type β
number
fontSize Default Value β
The default value is:
24
labelHeight β
labelHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
labelHeight Type β
number
labelHeight Default Value β
The default value is:
16
edgeLengthFactor β
edgeLengthFactor
is optional
Type:
string
cannot be null
defined in: Mermaid Config
edgeLengthFactor Type β
string
edgeLengthFactor Default Value β
The default value is:
"20"
compositTitleSize β
compositTitleSize
is optional
Type:
number
cannot be null
defined in: Mermaid Config
compositTitleSize Type β
number
compositTitleSize Default Value β
The default value is:
35
radius β
radius
is optional
Type:
number
cannot be null
defined in: Mermaid Config
radius Type β
number
radius Default Value β
The default value is:
5
defaultRenderer β
Decides which rendering engine that is to be used for the rendering.
defaultRenderer
is required
Type:
string
cannot be null
defined in: Mermaid Config
defaultRenderer Type β
string
defaultRenderer Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"dagre-d3" | The [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) library. |
"dagre-wrapper" | wrapper for dagre implemented in mermaid |
"elk" | Layout using [elkjs](https://github.com/kieler/elkjs) |
defaultRenderer Default Value β
The default value is:
"dagre-wrapper"
Definitions group ClassDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/ClassDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
dividerMargin | number | Optional | cannot be null | Mermaid Config |
padding | number | Optional | cannot be null | Mermaid Config |
textHeight | number | Optional | cannot be null | Mermaid Config |
defaultRenderer | string | Required | cannot be null | Mermaid Config |
nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
rankSpacing | integer | Optional | cannot be null | Mermaid Config |
diagramPadding | integer | Optional | cannot be null | Mermaid Config |
htmlLabels | boolean | Optional | cannot be null | Mermaid Config |
hideEmptyMembersBox | boolean | Optional | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
arrowMarkerAbsolute β
Controls whether or arrow markers in html code are absolute paths or anchors. This matters if you are using base tag settings.
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
dividerMargin β
dividerMargin
is optional
Type:
number
cannot be null
defined in: Mermaid Config
dividerMargin Type β
number
dividerMargin Default Value β
The default value is:
10
padding β
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
5
textHeight β
textHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
textHeight Type β
number
textHeight Default Value β
The default value is:
10
defaultRenderer β
Decides which rendering engine that is to be used for the rendering.
defaultRenderer
is required
Type:
string
cannot be null
defined in: Mermaid Config
defaultRenderer Type β
string
defaultRenderer Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"dagre-d3" | The [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) library. |
"dagre-wrapper" | wrapper for dagre implemented in mermaid |
"elk" | Layout using [elkjs](https://github.com/kieler/elkjs) |
defaultRenderer Default Value β
The default value is:
"dagre-wrapper"
nodeSpacing β
nodeSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
nodeSpacing Type β
integer
nodeSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
rankSpacing β
rankSpacing
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
rankSpacing Type β
integer
rankSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramPadding β
The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels.
diagramPadding
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
diagramPadding Type β
integer
diagramPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramPadding Default Value β
The default value is:
20
htmlLabels β
htmlLabels
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
htmlLabels Type β
boolean
hideEmptyMembersBox β
hideEmptyMembersBox
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
hideEmptyMembersBox Type β
boolean
Definitions group JourneyDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/JourneyDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
diagramMarginX | integer | Required | cannot be null | Mermaid Config |
diagramMarginY | integer | Required | cannot be null | Mermaid Config |
leftMargin | integer | Required | cannot be null | Mermaid Config |
width | integer | Required | cannot be null | Mermaid Config |
height | integer | Required | cannot be null | Mermaid Config |
boxMargin | integer | Required | cannot be null | Mermaid Config |
boxTextMargin | integer | Required | cannot be null | Mermaid Config |
noteMargin | integer | Required | cannot be null | Mermaid Config |
messageMargin | integer | Required | cannot be null | Mermaid Config |
messageAlign | string | Required | cannot be null | Mermaid Config |
bottomMarginAdj | integer | Required | cannot be null | Mermaid Config |
rightAngles | boolean | Required | cannot be null | Mermaid Config |
taskFontSize | Multiple | Optional | cannot be null | Mermaid Config |
taskFontFamily | string | Optional | cannot be null | Mermaid Config |
taskMargin | number | Optional | cannot be null | Mermaid Config |
activationWidth | number | Optional | cannot be null | Mermaid Config |
textPlacement | string | Optional | cannot be null | Mermaid Config |
actorColours | array | Optional | cannot be null | Mermaid Config |
sectionFills | array | Optional | cannot be null | Mermaid Config |
sectionColours | array | Optional | cannot be null | Mermaid Config |
diagramMarginX β
Margin to the right and left of the c4 diagram, must be a positive value.
diagramMarginX
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginX Type β
integer
diagramMarginX Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginX Default Value β
The default value is:
50
diagramMarginY β
Margin to the over and under the c4 diagram, must be a positive value.
diagramMarginY
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginY Type β
integer
diagramMarginY Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginY Default Value β
The default value is:
10
leftMargin β
Margin between actors
leftMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
leftMargin Type β
integer
leftMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
leftMargin Default Value β
The default value is:
150
width β
Width of actor boxes
width
is required
Type:
integer
cannot be null
defined in: Mermaid Config
width Type β
integer
width Constraints β
minimum: the value of this number must greater than or equal to: 0
width Default Value β
The default value is:
150
height β
Height of actor boxes
height
is required
Type:
integer
cannot be null
defined in: Mermaid Config
height Type β
integer
height Constraints β
minimum: the value of this number must greater than or equal to: 0
height Default Value β
The default value is:
50
boxMargin β
Margin around loop boxes
boxMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxMargin Type β
integer
boxMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxMargin Default Value β
The default value is:
10
boxTextMargin β
Margin around the text in loop/alt/opt boxes
boxTextMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxTextMargin Type β
integer
boxTextMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxTextMargin Default Value β
The default value is:
5
noteMargin β
Margin around notes
noteMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
noteMargin Type β
integer
noteMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
noteMargin Default Value β
The default value is:
10
messageMargin β
Space between messages.
messageMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
messageMargin Type β
integer
messageMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
messageMargin Default Value β
The default value is:
35
messageAlign β
Multiline message alignment
messageAlign
is required
Type:
string
cannot be null
defined in: Mermaid Config
messageAlign Type β
string
messageAlign Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | |
"center" | |
"right" |
messageAlign Default Value β
The default value is:
"center"
bottomMarginAdj β
Prolongs the edge of the diagram downwards.
Depending on css styling this might need adjustment.
bottomMarginAdj
is required
Type:
integer
cannot be null
defined in: Mermaid Config
bottomMarginAdj Type β
integer
bottomMarginAdj Constraints β
minimum: the value of this number must greater than or equal to: 0
bottomMarginAdj Default Value β
The default value is:
1
rightAngles β
Curved Arrows become Right Angles
This will display arrows that start and begin at the same node as right angles, rather than as curves.
rightAngles
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
rightAngles Type β
boolean
taskFontSize β
taskFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
taskFontSize Type β
any of the following: string
or number
(Details)
taskFontSize Default Value β
The default value is:
14
taskFontFamily β
taskFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
taskFontFamily Type β
string
taskFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
taskMargin β
taskMargin
is optional
Type:
number
cannot be null
defined in: Mermaid Config
taskMargin Type β
number
taskMargin Default Value β
The default value is:
50
activationWidth β
Width of activation box
activationWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
activationWidth Type β
number
activationWidth Default Value β
The default value is:
10
textPlacement β
text placement as: tspan | fo | old only text as before
textPlacement
is optional
Type:
string
cannot be null
defined in: Mermaid Config
textPlacement Type β
string
textPlacement Default Value β
The default value is:
"fo"
actorColours β
actorColours
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
actorColours Type β
string[]
actorColours Default Value β
The default value is:
["#8FBC8F", "#7CFC00", "#00FFFF", "#20B2AA", "#B0E0E6", "#FFFFE0"]
sectionFills β
sectionFills
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
sectionFills Type β
string[]
sectionFills Default Value β
The default value is:
["#191970", "#8B008B", "#4B0082", "#2F4F4F", "#800000", "#8B4513", "#00008B"]
sectionColours β
sectionColours
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
sectionColours Type β
string[]
sectionColours Default Value β
The default value is:
["#fff"]
Definitions group TimelineDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/TimelineDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
diagramMarginX | integer | Required | cannot be null | Mermaid Config |
diagramMarginY | integer | Required | cannot be null | Mermaid Config |
leftMargin | integer | Required | cannot be null | Mermaid Config |
width | integer | Required | cannot be null | Mermaid Config |
height | integer | Required | cannot be null | Mermaid Config |
padding | number | Optional | cannot be null | Mermaid Config |
boxMargin | integer | Required | cannot be null | Mermaid Config |
boxTextMargin | integer | Required | cannot be null | Mermaid Config |
noteMargin | integer | Required | cannot be null | Mermaid Config |
messageMargin | integer | Required | cannot be null | Mermaid Config |
messageAlign | string | Required | cannot be null | Mermaid Config |
bottomMarginAdj | integer | Required | cannot be null | Mermaid Config |
rightAngles | boolean | Optional | cannot be null | Mermaid Config |
taskFontSize | Multiple | Optional | cannot be null | Mermaid Config |
taskFontFamily | string | Optional | cannot be null | Mermaid Config |
taskMargin | number | Optional | cannot be null | Mermaid Config |
activationWidth | number | Optional | cannot be null | Mermaid Config |
textPlacement | string | Optional | cannot be null | Mermaid Config |
actorColours | array | Optional | cannot be null | Mermaid Config |
sectionFills | array | Optional | cannot be null | Mermaid Config |
sectionColours | array | Optional | cannot be null | Mermaid Config |
disableMulticolor | boolean | Optional | cannot be null | Mermaid Config |
diagramMarginX β
Margin to the right and left of the c4 diagram, must be a positive value.
diagramMarginX
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginX Type β
integer
diagramMarginX Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginX Default Value β
The default value is:
50
diagramMarginY β
Margin to the over and under the c4 diagram, must be a positive value.
diagramMarginY
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginY Type β
integer
diagramMarginY Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginY Default Value β
The default value is:
10
leftMargin β
Margin between actors
leftMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
leftMargin Type β
integer
leftMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
leftMargin Default Value β
The default value is:
150
width β
Width of actor boxes
width
is required
Type:
integer
cannot be null
defined in: Mermaid Config
width Type β
integer
width Constraints β
minimum: the value of this number must greater than or equal to: 0
width Default Value β
The default value is:
150
height β
Height of actor boxes
height
is required
Type:
integer
cannot be null
defined in: Mermaid Config
height Type β
integer
height Constraints β
minimum: the value of this number must greater than or equal to: 0
height Default Value β
The default value is:
50
padding β
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
boxMargin β
Margin around loop boxes
boxMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxMargin Type β
integer
boxMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxMargin Default Value β
The default value is:
10
boxTextMargin β
Margin around the text in loop/alt/opt boxes
boxTextMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxTextMargin Type β
integer
boxTextMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxTextMargin Default Value β
The default value is:
5
noteMargin β
Margin around notes
noteMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
noteMargin Type β
integer
noteMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
noteMargin Default Value β
The default value is:
10
messageMargin β
Space between messages.
messageMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
messageMargin Type β
integer
messageMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
messageMargin Default Value β
The default value is:
35
messageAlign β
Multiline message alignment
messageAlign
is required
Type:
string
cannot be null
defined in: Mermaid Config
messageAlign Type β
string
messageAlign Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | |
"center" | |
"right" |
messageAlign Default Value β
The default value is:
"center"
bottomMarginAdj β
Prolongs the edge of the diagram downwards.
Depending on css styling this might need adjustment.
bottomMarginAdj
is required
Type:
integer
cannot be null
defined in: Mermaid Config
bottomMarginAdj Type β
integer
bottomMarginAdj Constraints β
minimum: the value of this number must greater than or equal to: 0
bottomMarginAdj Default Value β
The default value is:
1
rightAngles β
Curved Arrows become Right Angles
This will display arrows that start and begin at the same node as right angles, rather than as curves.
rightAngles
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
rightAngles Type β
boolean
taskFontSize β
taskFontSize
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
taskFontSize Type β
any of the following: string
or number
(Details)
taskFontSize Default Value β
The default value is:
14
taskFontFamily β
taskFontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
taskFontFamily Type β
string
taskFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
taskMargin β
taskMargin
is optional
Type:
number
cannot be null
defined in: Mermaid Config
taskMargin Type β
number
taskMargin Default Value β
The default value is:
50
activationWidth β
Width of activation box
activationWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
activationWidth Type β
number
activationWidth Default Value β
The default value is:
10
textPlacement β
text placement as: tspan | fo | old only text as before
textPlacement
is optional
Type:
string
cannot be null
defined in: Mermaid Config
textPlacement Type β
string
textPlacement Default Value β
The default value is:
"fo"
actorColours β
actorColours
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
actorColours Type β
string[]
actorColours Default Value β
The default value is:
["#8FBC8F", "#7CFC00", "#00FFFF", "#20B2AA", "#B0E0E6", "#FFFFE0"]
sectionFills β
sectionFills
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
sectionFills Type β
string[]
sectionFills Default Value β
The default value is:
["#191970", "#8B008B", "#4B0082", "#2F4F4F", "#800000", "#8B4513", "#00008B"]
sectionColours β
sectionColours
is optional
Type:
string[]
cannot be null
defined in: Mermaid Config
sectionColours Type β
string[]
sectionColours Default Value β
The default value is:
["#fff"]
disableMulticolor β
disableMulticolor
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
disableMulticolor Type β
boolean
Definitions group GanttDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/GanttDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
barHeight | integer | Required | cannot be null | Mermaid Config |
barGap | integer | Optional | cannot be null | Mermaid Config |
topPadding | integer | Required | cannot be null | Mermaid Config |
rightPadding | integer | Required | cannot be null | Mermaid Config |
leftPadding | integer | Required | cannot be null | Mermaid Config |
gridLineStartPadding | integer | Required | cannot be null | Mermaid Config |
fontSize | integer | Required | cannot be null | Mermaid Config |
sectionFontSize | integer | Required | cannot be null | Mermaid Config |
numberSectionStyles | integer | Required | cannot be null | Mermaid Config |
axisFormat | string | Required | cannot be null | Mermaid Config |
tickInterval | string | Optional | cannot be null | Mermaid Config |
topAxis | boolean | Required | cannot be null | Mermaid Config |
displayMode | string | Optional | cannot be null | Mermaid Config |
weekday | string | Required | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
barHeight β
The height of the bars in the graph
barHeight
is required
Type:
integer
cannot be null
defined in: Mermaid Config
barHeight Type β
integer
barHeight Constraints β
minimum: the value of this number must greater than or equal to: 0
barHeight Default Value β
The default value is:
20
barGap β
The margin between the different activities in the gantt diagram
barGap
is optional
Type:
integer
cannot be null
defined in: Mermaid Config
barGap Type β
integer
barGap Constraints β
minimum: the value of this number must greater than or equal to: 0
barGap Default Value β
The default value is:
4
topPadding β
Margin between title and gantt diagram and between axis and gantt diagram.
topPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
topPadding Type β
integer
topPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
topPadding Default Value β
The default value is:
50
rightPadding β
The space allocated for the section name to the right of the activities
rightPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
rightPadding Type β
integer
rightPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
rightPadding Default Value β
The default value is:
75
leftPadding β
The space allocated for the section name to the left of the activities
leftPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
leftPadding Type β
integer
leftPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
leftPadding Default Value β
The default value is:
75
gridLineStartPadding β
Vertical starting position of the grid lines
gridLineStartPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
gridLineStartPadding Type β
integer
gridLineStartPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
gridLineStartPadding Default Value β
The default value is:
35
fontSize β
Font size
fontSize
is required
Type:
integer
cannot be null
defined in: Mermaid Config
fontSize Type β
integer
fontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value β
The default value is:
11
sectionFontSize β
Font size for sections
sectionFontSize
is required
Type:
integer
cannot be null
defined in: Mermaid Config
tsType:
string | number
sectionFontSize Type β
integer
sectionFontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
sectionFontSize Default Value β
The default value is:
11
numberSectionStyles β
The number of alternating section styles
numberSectionStyles
is required
Type:
integer
cannot be null
defined in: Mermaid Config
numberSectionStyles Type β
integer
numberSectionStyles Constraints β
minimum: the value of this number must greater than or equal to: 0
numberSectionStyles Default Value β
The default value is:
4
axisFormat β
Date/time format of the axis
This might need adjustment to match your locale and preferences.
axisFormat
is required
Type:
string
cannot be null
defined in: Mermaid Config
axisFormat Type β
string
axisFormat Default Value β
The default value is:
"%Y-%m-%d"
tickInterval β
axis ticks
Pattern is:
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/;
tickInterval
is optional
Type:
string
cannot be null
defined in: Mermaid Config
tickInterval Type β
string
tickInterval Constraints β
pattern: the string must match the following regular expression:
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
topAxis β
When this flag is set, date labels will be added to the top of the chart
topAxis
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
topAxis Type β
boolean
displayMode β
Controls the display mode.
displayMode
is optional
Type:
string
cannot be null
defined in: Mermaid Config
displayMode Type β
string
displayMode Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"" | |
"compact" | Enables displaying multiple tasks on the same row. |
weekday β
On which day a week-based interval should start
weekday
is required
Type:
string
cannot be null
defined in: Mermaid Config
weekday Type β
string
weekday Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"monday" | |
"tuesday" | |
"wednesday" | |
"thursday" | |
"friday" | |
"saturday" | |
"sunday" |
weekday Default Value β
The default value is:
"sunday"
Definitions group SequenceDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/SequenceDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
hideUnusedParticipants | boolean | Optional | cannot be null | Mermaid Config |
activationWidth | integer | Required | cannot be null | Mermaid Config |
diagramMarginX | integer | Required | cannot be null | Mermaid Config |
diagramMarginY | integer | Required | cannot be null | Mermaid Config |
actorMargin | integer | Required | cannot be null | Mermaid Config |
width | integer | Required | cannot be null | Mermaid Config |
height | integer | Required | cannot be null | Mermaid Config |
boxMargin | integer | Required | cannot be null | Mermaid Config |
boxTextMargin | integer | Required | cannot be null | Mermaid Config |
noteMargin | integer | Required | cannot be null | Mermaid Config |
messageMargin | integer | Required | cannot be null | Mermaid Config |
messageAlign | string | Required | cannot be null | Mermaid Config |
mirrorActors | boolean | Required | cannot be null | Mermaid Config |
forceMenus | boolean | Required | cannot be null | Mermaid Config |
bottomMarginAdj | integer | Required | cannot be null | Mermaid Config |
rightAngles | boolean | Required | cannot be null | Mermaid Config |
showSequenceNumbers | boolean | Required | cannot be null | Mermaid Config |
actorFontSize | Multiple | Required | cannot be null | Mermaid Config |
actorFontFamily | string | Required | cannot be null | Mermaid Config |
actorFontWeight | Multiple | Required | cannot be null | Mermaid Config |
noteFontSize | Multiple | Required | cannot be null | Mermaid Config |
noteFontFamily | string | Required | cannot be null | Mermaid Config |
noteFontWeight | Multiple | Required | cannot be null | Mermaid Config |
noteAlign | string | Required | cannot be null | Mermaid Config |
messageFontSize | Multiple | Required | cannot be null | Mermaid Config |
messageFontFamily | string | Required | cannot be null | Mermaid Config |
messageFontWeight | Multiple | Required | cannot be null | Mermaid Config |
wrap | boolean | Optional | cannot be null | Mermaid Config |
wrapPadding | number | Optional | cannot be null | Mermaid Config |
labelBoxWidth | number | Optional | cannot be null | Mermaid Config |
labelBoxHeight | number | Optional | cannot be null | Mermaid Config |
messageFont | Not specified | Optional | cannot be null | Mermaid Config |
noteFont | Not specified | Optional | cannot be null | Mermaid Config |
actorFont | Not specified | Optional | cannot be null | Mermaid Config |
arrowMarkerAbsolute β
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
hideUnusedParticipants β
hideUnusedParticipants
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
hideUnusedParticipants Type β
boolean
activationWidth β
Width of the activation rect
activationWidth
is required
Type:
integer
cannot be null
defined in: Mermaid Config
activationWidth Type β
integer
activationWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
activationWidth Default Value β
The default value is:
10
diagramMarginX β
Margin to the right and left of the sequence diagram
diagramMarginX
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginX Type β
integer
diagramMarginX Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginX Default Value β
The default value is:
50
diagramMarginY β
Margin to the over and under the sequence diagram
diagramMarginY
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramMarginY Type β
integer
diagramMarginY Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramMarginY Default Value β
The default value is:
10
actorMargin β
Margin between actors
actorMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
actorMargin Type β
integer
actorMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
actorMargin Default Value β
The default value is:
50
width β
Width of actor boxes
width
is required
Type:
integer
cannot be null
defined in: Mermaid Config
width Type β
integer
width Constraints β
minimum: the value of this number must greater than or equal to: 0
width Default Value β
The default value is:
150
height β
Height of actor boxes
height
is required
Type:
integer
cannot be null
defined in: Mermaid Config
height Type β
integer
height Constraints β
minimum: the value of this number must greater than or equal to: 0
height Default Value β
The default value is:
50
boxMargin β
Margin around loop boxes
boxMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxMargin Type β
integer
boxMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxMargin Default Value β
The default value is:
10
boxTextMargin β
Margin around the text in loop/alt/opt boxes
boxTextMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
boxTextMargin Type β
integer
boxTextMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
boxTextMargin Default Value β
The default value is:
5
noteMargin β
Margin around notes
noteMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
noteMargin Type β
integer
noteMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
noteMargin Default Value β
The default value is:
10
messageMargin β
Space between messages.
messageMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
messageMargin Type β
integer
messageMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
messageMargin Default Value β
The default value is:
35
messageAlign β
Multiline message alignment
messageAlign
is required
Type:
string
cannot be null
defined in: Mermaid Config
messageAlign Type β
string
messageAlign Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | |
"center" | |
"right" |
messageAlign Default Value β
The default value is:
"center"
mirrorActors β
Mirror actors under diagram
mirrorActors
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
mirrorActors Type β
boolean
mirrorActors Default Value β
The default value is:
true
forceMenus β
forces actor popup menus to always be visible (to support E2E testing).
forceMenus
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
forceMenus Type β
boolean
bottomMarginAdj β
Prolongs the edge of the diagram downwards.
Depending on css styling this might need adjustment.
bottomMarginAdj
is required
Type:
integer
cannot be null
defined in: Mermaid Config
bottomMarginAdj Type β
integer
bottomMarginAdj Constraints β
minimum: the value of this number must greater than or equal to: 0
bottomMarginAdj Default Value β
The default value is:
1
rightAngles β
Curved Arrows become Right Angles
This will display arrows that start and begin at the same node as right angles, rather than as curves.
rightAngles
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
rightAngles Type β
boolean
showSequenceNumbers β
This will show the node numbers
showSequenceNumbers
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
showSequenceNumbers Type β
boolean
actorFontSize β
This sets the font size of the actor's description
actorFontSize
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
actorFontSize Type β
any of the following: string
or number
(Details)
actorFontSize Default Value β
The default value is:
14
actorFontFamily β
This sets the font family of the actor's description
actorFontFamily
is required
Type:
string
cannot be null
defined in: Mermaid Config
actorFontFamily Type β
string
actorFontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
actorFontWeight β
This sets the font weight of the actor's description
actorFontWeight
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
actorFontWeight Type β
any of the following: string
or number
(Details)
actorFontWeight Default Value β
The default value is:
400
noteFontSize β
This sets the font size of actor-attached notes
noteFontSize
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
noteFontSize Type β
any of the following: string
or number
(Details)
noteFontSize Default Value β
The default value is:
14
noteFontFamily β
This sets the font family of actor-attached notes
noteFontFamily
is required
Type:
string
cannot be null
defined in: Mermaid Config
noteFontFamily Type β
string
noteFontFamily Default Value β
The default value is:
"\"trebuchet ms\", verdana, arial, sans-serif"
noteFontWeight β
This sets the font weight of actor-attached notes
noteFontWeight
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
noteFontWeight Type β
any of the following: string
or number
(Details)
noteFontWeight Default Value β
The default value is:
400
noteAlign β
This sets the text alignment of actor-attached notes
noteAlign
is required
Type:
string
cannot be null
defined in: Mermaid Config
noteAlign Type β
string
noteAlign Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | |
"center" | |
"right" |
noteAlign Default Value β
The default value is:
"center"
messageFontSize β
This sets the font size of actor messages
messageFontSize
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
messageFontSize Type β
any of the following: string
or number
(Details)
messageFontSize Default Value β
The default value is:
16
messageFontFamily β
This sets the font family of actor messages
messageFontFamily
is required
Type:
string
cannot be null
defined in: Mermaid Config
messageFontFamily Type β
string
messageFontFamily Default Value β
The default value is:
"\"trebuchet ms\", verdana, arial, sans-serif"
messageFontWeight β
This sets the font weight of actor messages
messageFontWeight
is required
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
messageFontWeight Type β
any of the following: string
or number
(Details)
messageFontWeight Default Value β
The default value is:
400
wrap β
This sets the auto-wrap state for the diagram
wrap
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
wrap Type β
boolean
wrapPadding β
This sets the auto-wrap padding for the diagram (sides only)
wrapPadding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
wrapPadding Type β
number
wrapPadding Default Value β
The default value is:
10
labelBoxWidth β
This sets the width of the loop-box (loop, alt, opt, par)
labelBoxWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
labelBoxWidth Type β
number
labelBoxWidth Default Value β
The default value is:
50
labelBoxHeight β
This sets the height of the loop-box (loop, alt, opt, par)
labelBoxHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
labelBoxHeight Type β
number
labelBoxHeight Default Value β
The default value is:
20
messageFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
messageFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
messageFont Type β
unknown (Font Calculator)
noteFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
noteFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
noteFont Type β
unknown (Font Calculator)
actorFont β
JavaScript function that returns a FontConfig
.
By default, these return the appropriate *FontSize
, *FontFamily
, *FontWeight
values.
For example, the font calculator called boundaryFont
might be defined as:
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
actorFont
is optional
Type: unknown (Font Calculator)
cannot be null
defined in: Mermaid Config
tsType:
() => Partial<FontConfig>
actorFont Type β
unknown (Font Calculator)
Definitions group FlowchartDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/FlowchartDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
titleTopMargin | integer | Required | cannot be null | Mermaid Config |
subGraphTitleMargin | object | Required | cannot be null | Mermaid Config |
arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
diagramPadding | integer | Required | cannot be null | Mermaid Config |
htmlLabels | boolean | Required | cannot be null | Mermaid Config |
nodeSpacing | integer | Required | cannot be null | Mermaid Config |
rankSpacing | integer | Required | cannot be null | Mermaid Config |
curve | string | Required | cannot be null | Mermaid Config |
padding | number | Optional | cannot be null | Mermaid Config |
defaultRenderer | string | Required | cannot be null | Mermaid Config |
wrappingWidth | number | Required | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integer
cannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25
subGraphTitleMargin β
Defines a top/bottom margin for subgraph titles
subGraphTitleMargin
is required
Type:
object
(Details)cannot be null
defined in: Mermaid Config
subGraphTitleMargin Type β
object
(Details)
subGraphTitleMargin Default Value β
The default value is:
{
"top": 0,
"bottom": 0
}
arrowMarkerAbsolute β
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
diagramPadding β
The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels.
diagramPadding
is required
Type:
integer
cannot be null
defined in: Mermaid Config
diagramPadding Type β
integer
diagramPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramPadding Default Value β
The default value is:
20
htmlLabels β
Flag for setting whether or not a html tag should be used for rendering labels on the edges.
htmlLabels
is required
Type:
boolean
cannot be null
defined in: Mermaid Config
htmlLabels Type β
boolean
htmlLabels Default Value β
The default value is:
true
nodeSpacing β
Defines the spacing between nodes on the same level
Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.
nodeSpacing
is required
Type:
integer
cannot be null
defined in: Mermaid Config
nodeSpacing Type β
integer
nodeSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
nodeSpacing Default Value β
The default value is:
50
rankSpacing β
Defines the spacing between nodes on different levels
Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.
rankSpacing
is required
Type:
integer
cannot be null
defined in: Mermaid Config
rankSpacing Type β
integer
rankSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
rankSpacing Default Value β
The default value is:
50
curve β
Defines how mermaid renders curves for flowcharts.
curve
is required
Type:
string
cannot be null
defined in: Mermaid Config
curve Type β
string
curve Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"basis" | |
"bumpX" | |
"bumpY" | |
"cardinal" | |
"catmullRom" | |
"linear" | |
"monotoneX" | |
"monotoneY" | |
"natural" | |
"step" | |
"stepAfter" | |
"stepBefore" |
curve Default Value β
The default value is:
"basis"
padding β
Represents the padding between the labels and the shape
Only used in new experimental rendering.
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
15
defaultRenderer β
Decides which rendering engine that is to be used for the rendering.
defaultRenderer
is required
Type:
string
cannot be null
defined in: Mermaid Config
defaultRenderer Type β
string
defaultRenderer Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"dagre-d3" | The [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) library. |
"dagre-wrapper" | wrapper for dagre implemented in mermaid |
"elk" | Layout using [elkjs](https://github.com/kieler/elkjs) |
defaultRenderer Default Value β
The default value is:
"dagre-wrapper"
wrappingWidth β
Width of nodes where text is wrapped.
When using markdown strings the text ius wrapped automatically, this value sets the max width of a text before it continues on a new line.
wrappingWidth
is required
Type:
number
cannot be null
defined in: Mermaid Config
wrappingWidth Type β
number
wrappingWidth Default Value β
The default value is:
200
Definitions group SankeyLinkColor β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/SankeyLinkColor" }
Property | Type | Required | Nullable | Defined by |
---|
Definitions group SankeyNodeAlignment β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/SankeyNodeAlignment" }
Property | Type | Required | Nullable | Defined by |
---|
Definitions group SankeyDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/SankeyDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
width | number | Optional | cannot be null | Mermaid Config |
height | number | Optional | cannot be null | Mermaid Config |
linkColor | Merged | Optional | cannot be null | Mermaid Config |
nodeAlignment | string | Optional | cannot be null | Mermaid Config |
useMaxWidth | boolean | Optional | cannot be null | Mermaid Config |
showValues | boolean | Optional | cannot be null | Mermaid Config |
prefix | string | Optional | cannot be null | Mermaid Config |
suffix | string | Optional | cannot be null | Mermaid Config |
width β
width
is optional
Type:
number
cannot be null
defined in: Mermaid Config
width Type β
number
width Default Value β
The default value is:
600
height β
height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
height Type β
number
height Default Value β
The default value is:
400
linkColor β
The color of the links in the sankey diagram.
linkColor
is optional
Type: merged type (Details)
cannot be null
defined in: Mermaid Config
linkColor Type β
merged type (Details)
any of
linkColor Default Value β
The default value is:
"gradient"
nodeAlignment β
Controls the alignment of the Sankey diagrams.
See https://github.com/d3/d3-sankey#alignments.
nodeAlignment
is optional
Type:
string
cannot be null
defined in: Mermaid Config
nodeAlignment Type β
string
nodeAlignment Constraints β
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"left" | Align all inputs to the left. |
"right" | Align all outputs to the right. |
"center" | Like `left`, except that nodes without any incoming links are moved as right as possible. |
"justify" | Like `left`, except that nodes without any outgoing links are moved to the far right. |
nodeAlignment Default Value β
The default value is:
"justify"
useMaxWidth β
useMaxWidth
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type β
boolean
showValues β
Toggle to display or hide values along with title.
showValues
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showValues Type β
boolean
showValues Default Value β
The default value is:
true
prefix β
The prefix to use for values
prefix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
prefix Type β
string
suffix β
The suffix to use for values
suffix
is optional
Type:
string
cannot be null
defined in: Mermaid Config
suffix Type β
string
Definitions group PacketDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/PacketDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
rowHeight | number | Optional | cannot be null | Mermaid Config |
bitWidth | number | Optional | cannot be null | Mermaid Config |
bitsPerRow | number | Optional | cannot be null | Mermaid Config |
showBits | boolean | Optional | cannot be null | Mermaid Config |
paddingX | number | Optional | cannot be null | Mermaid Config |
paddingY | number | Optional | cannot be null | Mermaid Config |
rowHeight β
The height of each row in the packet diagram.
rowHeight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
rowHeight Type β
number
rowHeight Constraints β
minimum: the value of this number must greater than or equal to: 1
rowHeight Default Value β
The default value is:
32
bitWidth β
The width of each bit in the packet diagram.
bitWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
bitWidth Type β
number
bitWidth Constraints β
minimum: the value of this number must greater than or equal to: 1
bitWidth Default Value β
The default value is:
32
bitsPerRow β
The number of bits to display per row.
bitsPerRow
is optional
Type:
number
cannot be null
defined in: Mermaid Config
bitsPerRow Type β
number
bitsPerRow Constraints β
minimum: the value of this number must greater than or equal to: 1
bitsPerRow Default Value β
The default value is:
32
showBits β
Toggle to display or hide bit numbers.
showBits
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showBits Type β
boolean
showBits Default Value β
The default value is:
true
paddingX β
The horizontal padding between the blocks in a row.
paddingX
is optional
Type:
number
cannot be null
defined in: Mermaid Config
paddingX Type β
number
paddingX Constraints β
minimum: the value of this number must greater than or equal to: 0
paddingX Default Value β
The default value is:
5
paddingY β
The vertical padding between the rows.
paddingY
is optional
Type:
number
cannot be null
defined in: Mermaid Config
paddingY Type β
number
paddingY Constraints β
minimum: the value of this number must greater than or equal to: 0
paddingY Default Value β
The default value is:
5
Definitions group BlockDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/BlockDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
padding | number | Optional | cannot be null | Mermaid Config |
padding β
padding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
padding Type β
number
padding Constraints β
minimum: the value of this number must greater than or equal to: 0
padding Default Value β
The default value is:
8
Definitions group RadarDiagramConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/RadarDiagramConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
width | number | Optional | cannot be null | Mermaid Config |
height | number | Optional | cannot be null | Mermaid Config |
marginTop | number | Optional | cannot be null | Mermaid Config |
marginRight | number | Optional | cannot be null | Mermaid Config |
marginBottom | number | Optional | cannot be null | Mermaid Config |
marginLeft | number | Optional | cannot be null | Mermaid Config |
axisScaleFactor | number | Optional | cannot be null | Mermaid Config |
axisLabelFactor | number | Optional | cannot be null | Mermaid Config |
curveTension | number | Optional | cannot be null | Mermaid Config |
width β
The size of the radar diagram.
width
is optional
Type:
number
cannot be null
defined in: Mermaid Config
width Type β
number
width Constraints β
minimum: the value of this number must greater than or equal to: 1
width Default Value β
The default value is:
600
height β
The size of the radar diagram.
height
is optional
Type:
number
cannot be null
defined in: Mermaid Config
height Type β
number
height Constraints β
minimum: the value of this number must greater than or equal to: 1
height Default Value β
The default value is:
600
marginTop β
The margin from the top of the radar diagram.
marginTop
is optional
Type:
number
cannot be null
defined in: Mermaid Config
marginTop Type β
number
marginTop Constraints β
minimum: the value of this number must greater than or equal to: 0
marginTop Default Value β
The default value is:
50
marginRight β
The margin from the right of the radar diagram.
marginRight
is optional
Type:
number
cannot be null
defined in: Mermaid Config
marginRight Type β
number
marginRight Constraints β
minimum: the value of this number must greater than or equal to: 0
marginRight Default Value β
The default value is:
50
marginBottom β
The margin from the bottom of the radar diagram.
marginBottom
is optional
Type:
number
cannot be null
defined in: Mermaid Config
marginBottom Type β
number
marginBottom Constraints β
minimum: the value of this number must greater than or equal to: 0
marginBottom Default Value β
The default value is:
50
marginLeft β
The margin from the left of the radar diagram.
marginLeft
is optional
Type:
number
cannot be null
defined in: Mermaid Config
marginLeft Type β
number
marginLeft Constraints β
minimum: the value of this number must greater than or equal to: 0
marginLeft Default Value β
The default value is:
50
axisScaleFactor β
The scale factor of the axis.
axisScaleFactor
is optional
Type:
number
cannot be null
defined in: Mermaid Config
axisScaleFactor Type β
number
axisScaleFactor Constraints β
minimum: the value of this number must greater than or equal to: 0
axisScaleFactor Default Value β
The default value is:
1
axisLabelFactor β
The scale factor of the axis label.
axisLabelFactor
is optional
Type:
number
cannot be null
defined in: Mermaid Config
axisLabelFactor Type β
number
axisLabelFactor Constraints β
minimum: the value of this number must greater than or equal to: 0
axisLabelFactor Default Value β
The default value is:
1.05
curveTension β
The tension factor for the Catmull-Rom spline conversion to cubic BΓ©zier curves.
curveTension
is optional
Type:
number
cannot be null
defined in: Mermaid Config
curveTension Type β
number
curveTension Constraints β
maximum: the value of this number must smaller than or equal to: 1
minimum: the value of this number must greater than or equal to: 0
curveTension Default Value β
The default value is:
0.17
Definitions group FontCalculator β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/FontCalculator" }
Property | Type | Required | Nullable | Defined by |
---|
Definitions group FontConfig β
Reference this group by using
{ "$ref": "https://mermaid.js.org/schemas/config.schema.json#/$defs/FontConfig" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
fontSize | Multiple | Optional | cannot be null | Mermaid Config |
fontFamily | string | Optional | cannot be null | Mermaid Config |
fontWeight | Multiple | Optional | cannot be null | Mermaid Config |
fontSize β
The font size to use
fontSize
is optional
Type: any of the following:
string
ornumber
(CSS Font Size)cannot be null
defined in: Mermaid Config
fontSize Type β
any of the following: string
or number
(CSS Font Size)
fontSize Default Value β
The default value is:
14
fontFamily β
The CSS font-family
to use.
fontFamily
is optional
Type:
string
cannot be null
defined in: Mermaid Config
fontFamily Type β
string
fontFamily Default Value β
The default value is:
"\"Open Sans\", sans-serif"
fontWeight β
The font weight to use.
fontWeight
is optional
Type: any of the following:
string
ornumber
(Details)cannot be null
defined in: Mermaid Config
fontWeight Type β
any of the following: string
or number
(Details)
fontWeight Default Value β
The default value is:
"normal"