Git Graph Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/GitGraphDiagramConfig| 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* |
GitGraphDiagramConfig Type β
object (Git Graph Diagram Config)
all of
GitGraphDiagramConfig Properties β
| 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:
integercannot 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:
25diagramPadding β
diagramPadding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
diagramPadding Type β
number
diagramPadding Default Value β
The default value is:
8nodeLabel β
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:
stringcannot be null
defined in: Mermaid Config
mainBranchName Type β
string
mainBranchName Default Value β
The default value is:
"main"mainBranchOrder β
mainBranchOrder
is optional
Type:
numbercannot be null
defined in: Mermaid Config
mainBranchOrder Type β
number
mainBranchOrder Default Value β
The default value is:
0showCommitLabel β
showCommitLabel
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showCommitLabel Type β
boolean
showCommitLabel Default Value β
The default value is:
trueshowBranches β
showBranches
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showBranches Type β
boolean
showBranches Default Value β
The default value is:
truerotateCommitLabel β
rotateCommitLabel
is optional
Type:
booleancannot be null
defined in: Mermaid Config
rotateCommitLabel Type β
boolean
rotateCommitLabel Default Value β
The default value is:
trueparallelCommits β
parallelCommits
is optional
Type:
booleancannot be null
defined in: Mermaid Config
parallelCommits Type β
boolean
parallelCommits Default Value β
The default value is:
falsearrowMarkerAbsolute β
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:
booleancannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
arrowMarkerAbsolute Default Value β
The default value is:
false