Skip to content

fix(harness-letratag): derive diagnostic width from engine headDots#2

Merged
mannes merged 1 commit into
mainfrom
fix/letratag-diagnostic-headdots
May 30, 2026
Merged

fix(harness-letratag): derive diagnostic width from engine headDots#2
mannes merged 1 commit into
mainfrom
fix/letratag-diagnostic-headdots

Conversation

@mannes
Copy link
Copy Markdown
Contributor

@mannes mannes commented May 30, 2026

apps/harness-letratag/src/diagnostic-print.ts read input.media.printableDots, which is removed from letratag-core (thermal-label/letratag#2 — it was a redundant field duplicating the engine's headDots).

Derive the 30-dot printable width from engine.headDots instead of the media descriptor. Compiles against both the published ^0.6.0 pin and a local link: to the letratag working tree; pnpm -F harness-letratag typecheck is green.

No behavioural change — printableDots was always 30 === headDots on the single-width LT-200B, so Math.min(printableDots, headDots) already resolved to headDots.

`LetraTagMedia.printableDots` was removed from letratag-core as a
redundant field (it duplicated the engine's `headDots`). Read the
30-dot printable width off `engine.headDots` instead of the media
descriptor. Works against both the published pin and the local link.
@mannes mannes merged commit 27798e2 into main May 30, 2026
7 checks passed
@mannes mannes deleted the fix/letratag-diagnostic-headdots branch May 30, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant