This commit is contained in:
seb
2026-10-07 21:31:33 +02:00
parent 7d537aaa6b
commit 85635cc0a5
9 changed files with 380 additions and 244 deletions

View File

@@ -23,7 +23,7 @@ When `content` (or `width`/`height`) is provided, the thumbnail is automatically
| `height` | no | number | |
| `dpi` | no | integer | |
| `type` | no | string | |
| `content` | no | object | |
| `content` | no | LabelContent | |
```json
{
@@ -32,7 +32,22 @@ When `content` (or `width`/`height`) is provided, the thumbnail is automatically
"height": 1,
"dpi": 1,
"type": "…",
"content": {}
"content": {
"objects": [
{
"id": "…",
"type": "textbox",
"x": 1,
"y": 1,
"w": 1,
"h": 1,
"text": "…",
"font": "…",
"fontSize": 1,
"barcodeFormat": "EAN8"
}
]
}
}
```
@@ -49,7 +64,22 @@ Updated label template
"height": 1,
"dpi": 1,
"type": "…",
"content": {},
"content": {
"objects": [
{
"id": "…",
"type": "textbox",
"x": 1,
"y": 1,
"w": 1,
"h": 1,
"text": "…",
"font": "…",
"fontSize": 1,
"barcodeFormat": "EAN8"
}
]
},
"thumb": "…"
}
}