web/src
Classes
| Class | Description |
|---|---|
| LetraTagPrinter | PrinterAdapter for the LT-200B over Web Bluetooth. |
Interfaces
| Interface | Description |
|---|---|
| LetraTagMedia | DYMO LetraTag media descriptor. |
| LetraTagPrintOptions | Public LetraTag print options. |
| PairResult | Result of a successful pairing — the printer adapter plus the BLE plumbing the debug harness needs (observed full UUIDs, link MTU, raw BluetoothDevice for diagnostics export). |
| RequestPrinterOptions | - |
Type Aliases
| Type Alias | Description |
|---|---|
| LetraTagDevice | DYMO LetraTag device entry. Alias for the contracts DeviceEntry narrowed to family: 'letratag'. |
| LetraTagMaterial | LT cassette substrate family. Picker / preview UX hint — the rasterizer does not branch on this. |
Variables
| Variable | Description |
|---|---|
| DEFAULT_MEDIA | - |
| DEVICES | Registry of supported LetraTag devices, keyed by the device's stable key field (LT_200B). Values are the full contracts DeviceEntry. |
| LT_PAPER_WHITE | Canonical default — the white-paper cassette ships in the box with every LT-200B. Single named const, not a per-cassette export. |
| MEDIA | Indexed registry of every LT cassette SKU the driver knows about, keyed by entry id (e.g. MEDIA['lt-paper-white']). |
| MEDIA_LIST | - |
| PROTOCOLS | Wire protocols this core's encoder produces correct bytes for. Pair with DEVICE_REGISTRY_DATA and resolveSupportedDevices from @thermal-label/contracts to filter a device list to what this runtime can drive. |
Functions
| Function | Description |
|---|---|
| devicesForTransport | Filter the registry to entries declaring transport. Used to populate DeviceIdentificationRequiredError.candidates from the harness shell. |
| encodeLabel | Encode a complete LetraTag print job into the ordered list of BLE writes. The transport calls write() with each entry in turn. |
| findMediaBySku | Find a media entry by vendor SKU. LT cassettes ship under many regional part numbers (US 91XXX vs EU S07XXXXX); this helper does the lookup against MediaDescriptor.skus. |
| parseStatus | Parse a 3-byte status notification frame from the printer. |
| Open the browser BLE picker, pair with an LT-200B, and resolve the GATT service / characteristics. | |
| requestPrinters | Unified browser-picker factory. |