Skip to content

Venn Diagram Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/VennDiagramConfig

包含针对维恩图的特定配置的对象。

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

VennDiagramConfig Type ​

object (Venn Diagram Config)

all of

VennDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
themestringOptionalcannot be nullMermaid Config
lookstringOptionalcannot be nullMermaid Config
widthnumberOptionalcannot be nullMermaid Config
heightnumberOptionalcannot be nullMermaid Config
paddingnumberOptionalcannot be nullMermaid Config
useDebugLayoutbooleanOptionalcannot be nullMermaid Config

theme ​

主题,CSS 样式表。你也可以使用 themeCSS 覆盖此值。

theme

theme Type ​

string

theme Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"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

look Type ​

string

look Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"classic"
"handDrawn"
"neo"

look Default Value ​

The default value is:

json
"neo"

width ​

维恩图的宽度。

width

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
800

height ​

维恩图的高度。

height

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
450

padding ​

padding

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
8

useDebugLayout ​

useDebugLayout

useDebugLayout Type ​

boolean

useDebugLayout Default Value ​

The default value is:

json
false
Opens in mermaid.ai