chore: Add types and minimums for packet config

This commit is contained in:
Sidharth Vinod 2023-11-14 19:44:09 +05:30
parent b88d1dfaa9
commit 659db9f04b
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 11 additions and 0 deletions

View File

@ -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: