主题
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:
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:
json
25
diagramPadding
diagramPadding
is optional
Type:
number
cannot be null
defined in: Mermaid Config
diagramPadding Type
number
diagramPadding Default Value
The default value is:
json
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:
json
{
"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:
json
"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:
json
true
showBranches
showBranches
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
showBranches Type
boolean
showBranches Default Value
The default value is:
json
true
rotateCommitLabel
rotateCommitLabel
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
rotateCommitLabel Type
boolean
rotateCommitLabel Default Value
The default value is:
json
true
parallelCommits
parallelCommits
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
parallelCommits Type
boolean
arrowMarkerAbsolute
控制 html 代码中的箭头标记是绝对路径还是锚点。如果你使用基本标签设置,这很重要。
arrowMarkerAbsolute
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type
boolean