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:
|
properties:
|
||||||
rowHeight:
|
rowHeight:
|
||||||
description: The height of each row in the packet diagram.
|
description: The height of each row in the packet diagram.
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
default: 32
|
default: 32
|
||||||
bitWidth:
|
bitWidth:
|
||||||
description: The width of each bit in the packet diagram.
|
description: The width of each bit in the packet diagram.
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
default: 32
|
default: 32
|
||||||
bitsPerRow:
|
bitsPerRow:
|
||||||
description: The number of bits to display per row.
|
description: The number of bits to display per row.
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
default: 32
|
default: 32
|
||||||
showBits:
|
showBits:
|
||||||
description: Toggle to display or hide bit numbers.
|
description: Toggle to display or hide bit numbers.
|
||||||
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
paddingX:
|
paddingX:
|
||||||
description: The horizontal padding between the blocks in a row.
|
description: The horizontal padding between the blocks in a row.
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
default: 5
|
default: 5
|
||||||
paddingY:
|
paddingY:
|
||||||
description: The vertical padding between the rows.
|
description: The vertical padding between the rows.
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
default: 5
|
default: 5
|
||||||
|
|
||||||
FontCalculator:
|
FontCalculator:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user