Skip to content

Git Graph Diagram Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/GitGraphDiagramConfig
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

GitGraphDiagramConfig Type ​

object (Git Graph Diagram Config)

all of

GitGraphDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
titleTopMarginintegerRequiredcannot be nullMermaid Config
diagramPaddingnumberOptionalcannot be nullMermaid Config
nodeLabelMergedOptionalcannot be nullMermaid Config
mainBranchNamestringOptionalcannot be nullMermaid Config
mainBranchOrdernumberOptionalcannot be nullMermaid Config
showCommitLabelbooleanOptionalcannot be nullMermaid Config
showBranchesbooleanOptionalcannot be nullMermaid Config
rotateCommitLabelbooleanOptionalcannot be nullMermaid Config
parallelCommitsbooleanOptionalcannot be nullMermaid Config
arrowMarkerAbsolutebooleanOptionalcannot be nullMermaid Config

titleTopMargin ​

图表上方文本的顶部边​​距

titleTopMargin

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

diagramPadding Type ​

number

diagramPadding Default Value ​

The default value is:

json
8

nodeLabel ​

nodeLabel

nodeLabel Type ​

object (Details)

all of

nodeLabel Default Value ​

The default value is:

json
{
  "width": 75,
  "height": 100,
  "x": -25,
  "y": 0
}

mainBranchName ​

mainBranchName

mainBranchName Type ​

string

mainBranchName Default Value ​

The default value is:

json
"main"

mainBranchOrder ​

mainBranchOrder

mainBranchOrder Type ​

number

mainBranchOrder Default Value ​

The default value is:

json
0

showCommitLabel ​

showCommitLabel

showCommitLabel Type ​

boolean

showCommitLabel Default Value ​

The default value is:

json
true

showBranches ​

showBranches

showBranches Type ​

boolean

showBranches Default Value ​

The default value is:

json
true

rotateCommitLabel ​

rotateCommitLabel

rotateCommitLabel Type ​

boolean

rotateCommitLabel Default Value ​

The default value is:

json
true

parallelCommits ​

parallelCommits

parallelCommits Type ​

boolean

parallelCommits Default Value ​

The default value is:

json
false

arrowMarkerAbsolute ​

控制 html 代码中的箭头标记是绝对路径还是锚点。如果你使用基本标签设置,这很重要。

arrowMarkerAbsolute

arrowMarkerAbsolute Type ​

boolean

arrowMarkerAbsolute Default Value ​

The default value is:

json
false
Opens in mermaid.ai