feat: Agregar guía de impresión para TM-T20II
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 35s

This commit is contained in:
2025-11-25 13:45:08 -06:00
parent 8378327950
commit 86ef1d85ac

View File

@@ -53,6 +53,45 @@ export const PRINTING_GUIDES: Record<string, {
{ "op": "text", "value": "Contenido aquí" }, { "op": "text", "value": "Contenido aquí" },
{ "op": "feed", "lines": 4 }, { "op": "feed", "lines": 4 },
{ "op": "cut" } { "op": "cut" }
]`
},
'TM-T20II': {
model: 'Epson TM-T20II',
type: 'Térmica',
columns: 48,
columnsDoubleWidth: 24,
supportedChars: 'ASCII extendido, algunos caracteres Unicode soportados',
rules: [
'Máximo 48 caracteres por línea (24 con width:2)',
'Soporta más caracteres que matriciales',
'Impresión rápida y silenciosa',
'Usar feed para espaciado',
'Soporta códigos QR y de barras',
'Ideal para recibos y tickets'
],
operations: [
'{ op: "text", value: "texto" } - Imprime texto',
'{ op: "feed", lines: N } - Avanza N líneas',
'{ op: "cut" } - Corta el papel',
'{ op: "align", align: "left|center|right" } - Alineación',
'{ op: "style", bold: true, underline: true, width: 1-2, height: 1-2 } - Estilos',
'{ op: "qrcode", data: "texto", size: 4 } - Código QR',
'{ op: "barcode", data: "123456", type: "ean13" } - Código de barras'
],
example: `[
{ "op": "align", "align": "center" },
{ "op": "style", "bold": true, "width": 2, "height": 2 },
{ "op": "text", "value": "RECIBO" },
{ "op": "style", "bold": false, "width": 1, "height": 1 },
{ "op": "feed", "lines": 1 },
{ "op": "text", "value": "================================================" },
{ "op": "feed", "lines": 1 },
{ "op": "align", "align": "left" },
{ "op": "text", "value": "Contenido aquí" },
{ "op": "feed", "lines": 2 },
{ "op": "qrcode", "data": "https://example.com", "size": 4 },
{ "op": "feed", "lines": 4 },
{ "op": "cut" }
]` ]`
}, },
'TM-T88': { 'TM-T88': {