Sequence Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/SequenceDiagramConfig
The object containing configurations specific for sequence diagrams
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
SequenceDiagramConfig Type β
object
(Sequence Diagram Config)
all of
SequenceDiagramConfig Properties β
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)