主题
Git Graph Diagram Config Schema
txt
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
图表上方文本的顶部边距
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:
json
25diagramPadding
diagramPadding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
diagramPadding Type
number
diagramPadding Default Value
The default value is:
json
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:
json
{
"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:
json
"main"mainBranchOrder
mainBranchOrder
is optional
Type:
numbercannot be null
defined in: Mermaid Config
mainBranchOrder Type
number
mainBranchOrder Default Value
The default value is:
json
0showCommitLabel
showCommitLabel
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showCommitLabel Type
boolean
showCommitLabel Default Value
The default value is:
json
trueshowBranches
showBranches
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showBranches Type
boolean
showBranches Default Value
The default value is:
json
truerotateCommitLabel
rotateCommitLabel
is optional
Type:
booleancannot be null
defined in: Mermaid Config
rotateCommitLabel Type
boolean
rotateCommitLabel Default Value
The default value is:
json
trueparallelCommits
parallelCommits
is optional
Type:
booleancannot be null
defined in: Mermaid Config
parallelCommits Type
boolean
parallelCommits Default Value
The default value is:
json
falsearrowMarkerAbsolute
控制 html 代码中的箭头标记是绝对路径还是锚点。如果你使用基本标签设置,这很重要。
arrowMarkerAbsolute
is optional
Type:
booleancannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type
boolean
arrowMarkerAbsolute Default Value
The default value is:
json
false