On the Mermaid Packet Diagram tutorial page there are no examples of how to configure the diagram using the config schema. Maybe for some experienced users it is obvious how and where to insert the config code. But for me it takes a while. So I would like to share it here.
The config schema page on Merdiad:
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 |