主题
Requirement Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/RequirementDiagramConfig包含特定于 req 图的配置的对象
| 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* |
RequirementDiagramConfig Type
object (Requirement Diagram Config)
all of
RequirementDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| theme | string | Optional | cannot be null | Mermaid Config |
| look | string | Optional | cannot be null | Mermaid Config |
| rect_fill | string | Optional | cannot be null | Mermaid Config |
| text_color | string | Optional | cannot be null | Mermaid Config |
| rect_border_size | string | Optional | cannot be null | Mermaid Config |
| rect_border_color | string | Optional | cannot be null | Mermaid Config |
| rect_min_width | number | Optional | cannot be null | Mermaid Config |
| rect_min_height | number | Optional | cannot be null | Mermaid Config |
| fontSize | number | Optional | cannot be null | Mermaid Config |
| rect_padding | number | Optional | cannot be null | Mermaid Config |
| line_height | number | 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"rect_fill
rect_fill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
rect_fill Type
string
rect_fill Default Value
The default value is:
json
"#f9f9f9"text_color
text_color
is optional
Type:
stringcannot be null
defined in: Mermaid Config
text_color Type
string
text_color Default Value
The default value is:
json
"#333"rect_border_size
rect_border_size
is optional
Type:
stringcannot be null
defined in: Mermaid Config
rect_border_size Type
string
rect_border_size Default Value
The default value is:
json
"0.5px"rect_border_color
rect_border_color
is optional
Type:
stringcannot be null
defined in: Mermaid Config
rect_border_color Type
string
rect_border_color Default Value
The default value is:
json
"#bbb"rect_min_width
rect_min_width
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rect_min_width Type
number
rect_min_width Default Value
The default value is:
json
200rect_min_height
rect_min_height
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rect_min_height Type
number
rect_min_height Default Value
The default value is:
json
200fontSize
fontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
fontSize Type
number
fontSize Default Value
The default value is:
json
14rect_padding
rect_padding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rect_padding Type
number
rect_padding Default Value
The default value is:
json
10line_height
line_height
is optional
Type:
numbercannot be null
defined in: Mermaid Config
line_height Type
number
line_height Default Value
The default value is:
json
20