主题
Agentflow Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/AgentflowDiagramConfig包含特定于 agentflow 图类型配置的对象。Agentflow 通过共享的统一渲染器渲染,因此它拥有与流程图相同的间距和内边距调节。它们存在于自己的区块中,这样就可以调节 agentflow 而不影响页面上的每一个流程图。
| 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* |
AgentflowDiagramConfig Type
object (Agentflow Diagram Config)
all of
AgentflowDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| theme | string | Optional | cannot be null | Mermaid Config |
| look | string | Optional | cannot be null | Mermaid Config |
| titleTopMargin | integer | Optional | cannot be null | Mermaid Config |
| diagramPadding | integer | Optional | cannot be null | Mermaid Config |
| nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
| rankSpacing | integer | Optional | cannot be null | Mermaid Config |
theme
主题,CSS 样式表。你也可以使用 themeCSS 覆盖此值。
theme
is optional
Type:
stringcannot be null
defined in: Mermaid Config
theme Type
string
theme Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"default" | |
"base" | |
"dark" | |
"forest" | |
"neutral" | |
"neo" | |
"neo-dark" | |
"redux" | |
"redux-dark" | |
"redux-color" | |
"redux-dark-color" | |
"null" | Can be set to disable any pre-defined mermaid theme |
theme Default Value
The default value is:
json
"redux-color"look
定义图表要使用的主要外观。
look
is optional
Type:
stringcannot be null
defined in: Mermaid Config
look Type
string
look Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"classic" | |
"handDrawn" | |
"neo" |
look Default Value
The default value is:
json
"neo"titleTopMargin
图表上方文本的顶部边距
titleTopMargin
is optional
Type:
integercannot be null
defined in: Mermaid Config
titleTopMargin Type
integer
titleTopMargin Constraints
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value
The default value is:
json
25diagramPadding
整个图表周围的填充量,以便嵌入的图表具有边距,以像素表示。
diagramPadding
is optional
Type:
integercannot be null
defined in: Mermaid Config
diagramPadding Type
integer
diagramPadding Constraints
minimum: the value of this number must greater than or equal to: 0
diagramPadding Default Value
The default value is:
json
8nodeSpacing
定义同一层节点之间的间距。对于 TB(从上到下)或 BT(从下到上)的图,指水平间距;对于 LR 以及 RL 的图,则指垂直间距。
nodeSpacing
is optional
Type:
integercannot be null
defined in: Mermaid Config
nodeSpacing Type
integer
nodeSpacing Constraints
minimum: the value of this number must greater than or equal to: 0
nodeSpacing Default Value
The default value is:
json
50rankSpacing
定义不同层级节点之间的间距。涉及 TB(从上到下)或 BT(从下到上)的垂直间距,以及 LR 和 RL 图的水平间距。
rankSpacing
is optional
Type:
integercannot be null
defined in: Mermaid Config
rankSpacing Type
integer
rankSpacing Constraints
minimum: the value of this number must greater than or equal to: 0
rankSpacing Default Value
The default value is:
json
50