Skip to content

Wardley Diagram Config Schema

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

包含针对沃德利地图图表的特定配置的对象。

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

WardleyDiagramConfig Type

object (Wardley Diagram Config)

all of

WardleyDiagramConfig Properties

PropertyTypeRequiredNullableDefined by
widthnumberOptionalcannot be nullMermaid Config
heightnumberOptionalcannot be nullMermaid Config
paddingnumberOptionalcannot be nullMermaid Config
nodeRadiusnumberOptionalcannot be nullMermaid Config
nodeLabelOffsetnumberOptionalcannot be nullMermaid Config
axisFontSizenumberOptionalcannot be nullMermaid Config
labelFontSizenumberOptionalcannot be nullMermaid Config
showGridbooleanOptionalcannot be nullMermaid Config

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
900

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
600

padding

Wardley 图周围的边距。

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
48

nodeRadius

组件节点的半径。

nodeRadius

nodeRadius Type

number

nodeRadius Constraints

minimum: the value of this number must greater than or equal to: 0

nodeRadius Default Value

The default value is:

json
6

nodeLabelOffset

节点标签的偏移距离。

nodeLabelOffset

nodeLabelOffset Type

number

nodeLabelOffset Constraints

minimum: the value of this number must greater than or equal to: 0

nodeLabelOffset Default Value

The default value is:

json
8

axisFontSize

坐标轴标签的字体大小。

axisFontSize

axisFontSize Type

number

axisFontSize Constraints

minimum: the value of this number must greater than or equal to: 0

axisFontSize Default Value

The default value is:

json
12

labelFontSize

组件标签的字体大小。

labelFontSize

labelFontSize Type

number

labelFontSize Constraints

minimum: the value of this number must greater than or equal to: 0

labelFontSize Default Value

The default value is:

json
10

showGrid

是否显示背景网格。

showGrid

showGrid Type

boolean

showGrid Default Value

The default value is:

json
false
Opens in mermaid.ai