主题
Venn Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/VennDiagramConfig包含针对维恩图的特定配置的对象。
| 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* |
VennDiagramConfig Type
object (Venn Diagram Config)
all of
VennDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| theme | string | Optional | cannot be null | Mermaid Config |
| look | string | Optional | cannot be null | Mermaid Config |
| width | number | Optional | cannot be null | Mermaid Config |
| height | number | Optional | cannot be null | Mermaid Config |
| padding | number | Optional | cannot be null | Mermaid Config |
| useDebugLayout | boolean | 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"width
维恩图的宽度。
width
is optional
Type:
numbercannot be null
defined in: Mermaid Config
width Type
number
width Constraints
minimum: the value of this number must greater than or equal to: 1
width Default Value
The default value is:
json
800height
维恩图的高度。
height
is optional
Type:
numbercannot be null
defined in: Mermaid Config
height Type
number
height Constraints
minimum: the value of this number must greater than or equal to: 1
height Default Value
The default value is:
json
450padding
padding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
padding Type
number
padding Constraints
minimum: the value of this number must greater than or equal to: 0
padding Default Value
The default value is:
json
8useDebugLayout
useDebugLayout
is optional
Type:
booleancannot be null
defined in: Mermaid Config
useDebugLayout Type
boolean
useDebugLayout Default Value
The default value is:
json
false