← Back to devlog

2026-07-04 — v18 print / PDF-friendly export

Unit C ships: a "Print / Save as PDF" action renders the active view — respecting the current zoom window, reverse-complement state, trim mode, and visible quality track — through a clean print stylesheet tuned for the browser's native print-to-PDF dialog.

What shipped

Design rationale

The viewer already captures canvas state correctly (zoom window, revcomp, trim). Reusing canvas.toDataURL() means the print snapshot is pixel-for-pixel identical to what the user sees on screen — no re-render path to maintain. The afterprint event cleans up without race conditions: it fires only after the print dialog closes, so the DOM snapshot is always available for inspection (and for the Playwright test, which mocks window.print to prevent the native dialog from blocking).

Verification added