mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
chore: Add types and minimums for packet config
This commit is contained in:
parent
b88d1dfaa9
commit
659db9f04b
@ -1994,21 +1994,32 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
||||
properties:
|
||||
rowHeight:
|
||||
description: The height of each row in the packet diagram.
|
||||
type: number
|
||||
minimum: 1
|
||||
default: 32
|
||||
bitWidth:
|
||||
description: The width of each bit in the packet diagram.
|
||||
type: number
|
||||
minimum: 1
|
||||
default: 32
|
||||
bitsPerRow:
|
||||
description: The number of bits to display per row.
|
||||
type: number
|
||||
minimum: 1
|
||||
default: 32
|
||||
showBits:
|
||||
description: Toggle to display or hide bit numbers.
|
||||
type: boolean
|
||||
default: true
|
||||
paddingX:
|
||||
description: The horizontal padding between the blocks in a row.
|
||||
type: number
|
||||
minimum: 0
|
||||
default: 5
|
||||
paddingY:
|
||||
description: The vertical padding between the rows.
|
||||
type: number
|
||||
minimum: 0
|
||||
default: 5
|
||||
|
||||
FontCalculator:
|
||||
|
Loading…
x
Reference in New Issue
Block a user