14 KiB
Warning
THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
Please edit the corresponding file in /packages/mermaid/src/docs/config/setup/mermaid/interfaces/MermaidConfig.md.
Interface: MermaidConfig
Defined in: packages/mermaid/src/config.type.ts:58
Properties
altFontFamily?
optionalaltFontFamily:string
Defined in: packages/mermaid/src/config.type.ts:122
architecture?
optionalarchitecture:ArchitectureDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:194
arrowMarkerAbsolute?
optionalarrowMarkerAbsolute:boolean
Defined in: packages/mermaid/src/config.type.ts:141
Controls whether or arrow markers in html code are absolute paths or anchors. This matters if you are using base tag settings.
block?
optionalblock:BlockDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:201
c4?
optionalc4:C4DiagramConfig
Defined in: packages/mermaid/src/config.type.ts:198
class?
optionalclass:ClassDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:187
darkMode?
optionaldarkMode:boolean
Defined in: packages/mermaid/src/config.type.ts:113
deterministicIds?
optionaldeterministicIds:boolean
Defined in: packages/mermaid/src/config.type.ts:174
This option controls if the generated ids of nodes in the SVG are
generated randomly or based on a seed.
If set to false, the IDs are generated based on the current date and
thus are not deterministic. This is the default behavior.
This matters if your files are checked into source control e.g. git and should not change unless content is changed.
deterministicIDSeed?
optionaldeterministicIDSeed:string
Defined in: packages/mermaid/src/config.type.ts:181
This option is the optional seed for deterministic ids.
If set to undefined but deterministicIds is true, a simple number iterator is used.
You can set this attribute to base the seed on a static string.
dompurifyConfig?
optionaldompurifyConfig:Config
Defined in: packages/mermaid/src/config.type.ts:203
elk?
optionalelk:object
Defined in: packages/mermaid/src/config.type.ts:91
cycleBreakingStrategy?
optionalcycleBreakingStrategy:"GREEDY"|"DEPTH_FIRST"|"INTERACTIVE"|"MODEL_ORDER"|"GREEDY_MODEL_ORDER"
This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops.
mergeEdges?
optionalmergeEdges:boolean
Elk specific option that allows edges to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
nodePlacementStrategy?
optionalnodePlacementStrategy:"SIMPLE"|"NETWORK_SIMPLEX"|"LINEAR_SEGMENTS"|"BRANDES_KOEPF"
Elk specific option affecting how nodes are placed.
er?
optionaler:ErDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:189
flowchart?
optionalflowchart:FlowchartDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:182
fontFamily?
optionalfontFamily:string
Defined in: packages/mermaid/src/config.type.ts:121
Specifies the font to be used in the rendered diagrams.
Can be any possible CSS font-family.
See https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
fontSize?
optionalfontSize:number
Defined in: packages/mermaid/src/config.type.ts:205
forceLegacyMathML?
optionalforceLegacyMathML:boolean
Defined in: packages/mermaid/src/config.type.ts:163
This option forces Mermaid to rely on KaTeX's own stylesheet for rendering MathML. Due to differences between OS fonts and browser's MathML implementation, this option is recommended if consistent rendering is important. If set to true, ignores legacyMathML.
gantt?
optionalgantt:GanttDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:184
gitGraph?
optionalgitGraph:GitGraphDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:197
handDrawnSeed?
optionalhandDrawnSeed:number
Defined in: packages/mermaid/src/config.type.ts:76
Defines the seed to be used when using handDrawn look. This is important for the automated tests as they will always find differences without the seed. The default value is 0 which gives a random seed.
htmlLabels?
optionalhtmlLabels:boolean
Defined in: packages/mermaid/src/config.type.ts:114
journey?
optionaljourney:JourneyDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:185
kanban?
optionalkanban:KanbanDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:196
layout?
optionallayout:string
Defined in: packages/mermaid/src/config.type.ts:81
Defines which layout algorithm to use for rendering the diagram.
legacyMathML?
optionallegacyMathML:boolean
Defined in: packages/mermaid/src/config.type.ts:156
This option specifies if Mermaid can expect the dependent to include KaTeX stylesheets for browsers without their own MathML implementation. If this option is disabled and MathML is not supported, the math equations are replaced with a warning. If this option is enabled and MathML is not supported, Mermaid will fall back to legacy rendering for KaTeX.
logLevel?
optionallogLevel:0|2|1|"trace"|"debug"|"info"|"warn"|"error"|"fatal"|3|4|5
Defined in: packages/mermaid/src/config.type.ts:127
This option decides the amount of logging to be used by mermaid.
look?
optionallook:"classic"|"handDrawn"
Defined in: packages/mermaid/src/config.type.ts:71
Defines which main look to use for the diagram.
markdownAutoWrap?
optionalmarkdownAutoWrap:boolean
Defined in: packages/mermaid/src/config.type.ts:206
maxEdges?
optionalmaxEdges:number
Defined in: packages/mermaid/src/config.type.ts:90
Defines the maximum number of edges that can be drawn in a graph.
maxTextSize?
optionalmaxTextSize:number
Defined in: packages/mermaid/src/config.type.ts:85
The maximum allowed size of the users text diagram
mindmap?
optionalmindmap:MindmapDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:195
packet?
optionalpacket:PacketDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:200
pie?
optionalpie:PieDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:190
quadrantChart?
optionalquadrantChart:QuadrantChartConfig
Defined in: packages/mermaid/src/config.type.ts:191
radar?
optionalradar:RadarDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:202
requirement?
optionalrequirement:RequirementDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:193
sankey?
optionalsankey:SankeyDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:199
secure?
optionalsecure:string[]
Defined in: packages/mermaid/src/config.type.ts:148
This option controls which currentConfig keys are considered secure and
can only be changed via call to mermaid.initialize.
This prevents malicious graph directives from overriding a site's default security.
securityLevel?
optionalsecurityLevel:"strict"|"loose"|"antiscript"|"sandbox"
Defined in: packages/mermaid/src/config.type.ts:131
Level of trust for parsed diagram
sequence?
optionalsequence:SequenceDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:183
startOnLoad?
optionalstartOnLoad:boolean
Defined in: packages/mermaid/src/config.type.ts:135
Dictates whether mermaid starts on Page load
state?
optionalstate:StateDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:188
suppressErrorRendering?
optionalsuppressErrorRendering:boolean
Defined in: packages/mermaid/src/config.type.ts:212
Suppresses inserting 'Syntax error' diagram in the DOM. This is useful when you want to control how to handle syntax errors in your application.
theme?
optionaltheme:"default"|"base"|"dark"|"forest"|"neutral"|"null"
Defined in: packages/mermaid/src/config.type.ts:64
Theme, the CSS style sheet.
You may also use themeCSS to override this value.
themeCSS?
optionalthemeCSS:string
Defined in: packages/mermaid/src/config.type.ts:66
themeVariables?
optionalthemeVariables:any
Defined in: packages/mermaid/src/config.type.ts:65
timeline?
optionaltimeline:TimelineDiagramConfig
Defined in: packages/mermaid/src/config.type.ts:186
wrap?
optionalwrap:boolean
Defined in: packages/mermaid/src/config.type.ts:204
xyChart?
optionalxyChart:XYChartConfig
Defined in: packages/mermaid/src/config.type.ts:192