mirror of
https://github.com/mermaid-js/mermaid.git
synced 2026-05-23 20:10:38 +00:00
2.1 KiB
2.1 KiB
Warning
THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
Please edit the corresponding file in /packages/mermaid/src/docs/syntax/treeView.md.
TreeView Diagram (v<MERMAID_RELEASE_VERSION>+)
Introduction
A TreeView diagram is used to represent hierarchical data in the form of a directory-like structure.
Syntax
The structure of the tree depends only on indentation.
treeView-beta
"<folder name>"
"<file name>"
"<folder name>"
"<file name>"
"<file-name>"
Examples
treeView-beta
"packages"
"mermaid"
"src"
"parser"
treeView-beta
"packages"
"mermaid"
"src"
"parser"
---
config:
treeView:
rowIndent: 80
lineThickness: 3
themeVariables:
treeView:
labelFontSize: '20px'
labelColor: '#FF0000'
lineColor: '#00FF00'
---
treeView-beta
"packages"
"mermaid"
"src"
"parser"
---
config:
treeView:
rowIndent: 80
lineThickness: 3
themeVariables:
treeView:
labelFontSize: '20px'
labelColor: '#FF0000'
lineColor: '#00FF00'
---
treeView-beta
"packages"
"mermaid"
"src"
"parser"
Config Variables
| Property | Description | Default Value |
|---|---|---|
| rowIndent | Indentation for each row | 10 |
| paddingX | Horizontal padding of row | 5 |
| paddingY | Vertical padding of row | 5 |
| lineThickness | Thickness of the line | 1 |
Theme Variables
| Property | Description | Default Value |
|---|---|---|
| labelFontSize | Font size of the label | '16px' |
| labelColor | Color of the label | 'black' |
| lineColor | Color of the line | 'black' |