主题
Wardley Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/WardleyDiagramConfig包含针对沃德利地图图表的特定配置的对象。
| 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* |
WardleyDiagramConfig Type
object (Wardley Diagram Config)
all of
WardleyDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| width | number | Optional | cannot be null | Mermaid Config |
| height | number | Optional | cannot be null | Mermaid Config |
| padding | number | Optional | cannot be null | Mermaid Config |
| nodeRadius | number | Optional | cannot be null | Mermaid Config |
| nodeLabelOffset | number | Optional | cannot be null | Mermaid Config |
| axisFontSize | number | Optional | cannot be null | Mermaid Config |
| labelFontSize | number | Optional | cannot be null | Mermaid Config |
| showGrid | boolean | Optional | cannot be null | Mermaid Config |
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
900height
沃德利图画布的高度。
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
600padding
Wardley 图周围的边距。
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
48nodeRadius
组件节点的半径。
nodeRadius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
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
6nodeLabelOffset
节点标签的偏移距离。
nodeLabelOffset
is optional
Type:
numbercannot be null
defined in: Mermaid Config
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
8axisFontSize
坐标轴标签的字体大小。
axisFontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
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
12labelFontSize
组件标签的字体大小。
labelFontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
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
10showGrid
是否显示背景网格。
showGrid
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showGrid Type
boolean
showGrid Default Value
The default value is:
json
false