主题
TreeView Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/TreeViewDiagramConfig包含针对 treeView 图表的特定配置的对象。
| 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* |
TreeViewDiagramConfig Type
object (TreeView Diagram Config)
all of
TreeViewDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| rowIndent | number | Optional | cannot be null | Mermaid Config |
| paddingX | number | Optional | cannot be null | Mermaid Config |
| paddingY | number | Optional | cannot be null | Mermaid Config |
| lineThickness | number | Optional | cannot be null | Mermaid Config |
| showIcons | boolean | Optional | cannot be null | Mermaid Config |
| defaultIconPack | string | Optional | cannot be null | Mermaid Config |
| filenameIcons | object | Optional | cannot be null | Mermaid Config |
| extensionIcons | object | Optional | cannot be null | Mermaid Config |
rowIndent
相差一级的行间水平距离
rowIndent
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rowIndent Type
number
rowIndent Constraints
minimum: the value of this number must greater than or equal to: 0
rowIndent Default Value
The default value is:
json
10paddingX
标签的水平内边距
paddingX
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingX Type
number
paddingX Constraints
minimum: the value of this number must greater than or equal to: 0
paddingX Default Value
The default value is:
json
5paddingY
标签的垂直内边距
paddingY
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingY Type
number
paddingY Constraints
minimum: the value of this number must greater than or equal to: 0
paddingY Default Value
The default value is:
json
5lineThickness
线条的厚度
lineThickness
is optional
Type:
numbercannot be null
defined in: Mermaid Config
lineThickness Type
number
lineThickness Constraints
minimum: the value of this number must greater than or equal to: 0
lineThickness Default Value
The default value is:
json
1showIcons
是否在标签旁显示默认的文件/文件夹图标。明确的 icon() 注释始终会渲染,无论此设置如何。
showIcons
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showIcons Type
boolean
showIcons Default Value
The default value is:
json
falsedefaultIconPack
用于解析未加前缀图标引用的已注册 Iconify 包名称 — icon(name) 注释和 filenameIcons/ extensionIcons values without a pack: prefix. The pack must be registered with registerIconPacks. When empty, unprefixed names resolve to the built-in file/folder icons.
defaultIconPack
is optional
Type:
stringcannot be null
defined in: Mermaid Config
defaultIconPack Type
string
defaultIconPack Default Value
The default value is:
json
""filenameIcons
精确文件名 → 图标映射,用于在启用 showIcons 时选择文件的图标,例如。 { "Dockerfile": "material-icon-theme:docker" }. Values are resolved like icon() references: pack:name is used as-is, unprefixed names resolve via defaultIconPack, and none hides the icon for matching files.
filenameIcons
is optional
Type:
object(Details)cannot be null
defined in: Mermaid Config
filenameIcons Type
object (Details)
filenameIcons Default Value
The default value is:
json
{}extensionIcons
文件扩展名 → 图标映射,用于在启用 showIcons 时选择文件的图标,例如 { ".ts": "material-icon-theme:typescript" }. Keys are lowercase and may include or omit the leading dot. Values are resolved like icon() references: pack:name is used as-is, unprefixed names resolve via defaultIconPack, and none hides the icon for matching files.
extensionIcons
is optional
Type:
object(Details)cannot be null
defined in: Mermaid Config
extensionIcons Type
object (Details)
extensionIcons Default Value
The default value is:
json
{}