Grid:
- Draw grid in screen space with pixel-snapped positions, fixing
the uneven rectangles caused by sub-pixel positioning in canonical space
- 1px screen-space lines for uniform weight at any zoom level
Line snap:
- Track max distance from origin (not per-move), increase threshold
to 60pt (~5mm) to handle EMR stylus hand tremor
- Snap timer stays active until pen moves significantly from start
Viewport:
- Clamp pan so page always covers the full viewport
- Background changed to white (no dark gray borders)
- Page centers when smaller than viewport (e.g., zoomed out landscape)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>