主题
Packet Diagram Config Schema 
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/PacketDiagramConfig包含特定于数据包图的配置的对象。
| 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* | 
PacketDiagramConfig Type 
object (Packet Diagram Config)
all of
PacketDiagramConfig Properties 
| Property | Type | Required | Nullable | Defined by | 
|---|---|---|---|---|
| rowHeight | number | Optional | cannot be null | Mermaid Config | 
| bitWidth | number | Optional | cannot be null | Mermaid Config | 
| bitsPerRow | number | Optional | cannot be null | Mermaid Config | 
| showBits | boolean | Optional | cannot be null | Mermaid Config | 
| paddingX | number | Optional | cannot be null | Mermaid Config | 
| paddingY | number | Optional | cannot be null | Mermaid Config | 
rowHeight 
数据包图中每行的高度。
rowHeight
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rowHeight Type 
number
rowHeight Constraints 
minimum: the value of this number must greater than or equal to: 1
rowHeight Default Value 
The default value is:
json
32bitWidth 
数据包图中每个位的宽度。
bitWidth
is optional
Type:
numbercannot be null
defined in: Mermaid Config
bitWidth Type 
number
bitWidth Constraints 
minimum: the value of this number must greater than or equal to: 1
bitWidth Default Value 
The default value is:
json
32bitsPerRow 
每行显示的位数。
bitsPerRow
is optional
Type:
numbercannot be null
defined in: Mermaid Config
bitsPerRow Type 
number
bitsPerRow Constraints 
minimum: the value of this number must greater than or equal to: 1
bitsPerRow Default Value 
The default value is:
json
32showBits 
切换以显示或隐藏位编号。
showBits
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showBits Type 
boolean
showBits Default Value 
The default value is:
json
truepaddingX 
一行中块之间的水平填充。
paddingX
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingX Type 
number
paddingX Constraints 
minimum: the value of this number must greater than or equal to: 0
paddingX Default Value 
The default value is:
json
5paddingY 
行之间的垂直填充。
paddingY
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingY Type 
number
paddingY Constraints 
minimum: the value of this number must greater than or equal to: 0
paddingY Default Value 
The default value is:
json
5