Mindmap Diagram Config Schema
https://mermaid.js.org/schemas/config.schema.json#/$defs/MindmapDiagramConfigThe object containing configurations specific for mindmap diagrams
| 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* |
MindmapDiagramConfig Type
object (Mindmap Diagram Config)
all of
MindmapDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| colorBy | string | Required | cannot be null | Mermaid Config |
| padding | number | Required | cannot be null | Mermaid Config |
| maxNodeWidth | number | Required | cannot be null | Mermaid Config |
| layoutAlgorithm | string | Required | cannot be null | Mermaid Config |
colorBy
Color nodes by their top-level branch or by their depth in the tree. Depth is counted from the root, independently of indentation width.
colorBy
is required
Type:
stringcannot be null
defined in: Mermaid Config
colorBy Type
string
colorBy Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"branch" | Descendants inherit the color of their top-level branch. |
"depth" | Nodes at the same distance from the root share a color across branches. |
colorBy Default Value
The default value is:
"branch"padding
padding
is required
Type:
numbercannot be null
defined in: Mermaid Config
padding Type
number
padding Default Value
The default value is:
10maxNodeWidth
maxNodeWidth
is required
Type:
numbercannot be null
defined in: Mermaid Config
maxNodeWidth Type
number
maxNodeWidth Default Value
The default value is:
200layoutAlgorithm
Layout algorithm to use for positioning mindmap nodes
layoutAlgorithm
is required
Type:
stringcannot be null
defined in: Mermaid Config
layoutAlgorithm Type
string
layoutAlgorithm Default Value
The default value is:
"cose-bilkent"