Skip to content

Mindmap Diagram Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/MindmapDiagramConfig

The object containing configurations specific for mindmap diagrams

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

MindmapDiagramConfig Type ​

object (Mindmap Diagram Config)

all of

MindmapDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
colorBystringRequiredcannot be nullMermaid Config
paddingnumberRequiredcannot be nullMermaid Config
maxNodeWidthnumberRequiredcannot be nullMermaid Config
layoutAlgorithmstringRequiredcannot be nullMermaid 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

colorBy Type ​

string

colorBy Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"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:

json
"branch"

padding ​

padding

padding Type ​

number

padding Default Value ​

The default value is:

json
10

maxNodeWidth ​

maxNodeWidth

maxNodeWidth Type ​

number

maxNodeWidth Default Value ​

The default value is:

json
200

layoutAlgorithm ​

Layout algorithm to use for positioning mindmap nodes

layoutAlgorithm

layoutAlgorithm Type ​

string

layoutAlgorithm Default Value ​

The default value is:

json
"cose-bilkent"
Opens in mermaid.ai