Skip to content

feat(zoom): zoom past 1200% with a sharp overlay window (DEEP-ZOOM) - #336

Merged
realrobertdouglas merged 2 commits into
mainfrom
claude/deep-zoom
Oct 14, 2026
Merged

realrobertdouglas merged 2 commits into
mainfrom
claude/deep-zoom

Conversation

@realrobertdouglas

Copy link
Copy Markdown
Contributor

Builds journeys/plans/DEEP-ZOOM.md (PR #335's plan), all three parts, for Wendi's zoom past 1200%.

  • The overlay window (part 1): past the canvas budget the page overlay is as soft as the PDF base, so renderAnnotationWindow paints #annWindowCanvas, the visible area at full density, with the same paintOverlay body and toCanvas rebound around the call, boxed by the crop tile's math with the k factor. Painted first on every overlay paint (so the overlays' DOM anchors stay in page units), re-cut by a full overlay paint at the four pan-end sites and at a cold zoom commit. Found on the first 3000% screenshot and fixed: the page pass clears the window's box out of itself, so the soft overlay never halos the crisp marks; the aim loupe samples the crop canvas and the window where they stand.
  • The ceiling (part 2): getMaxZoom() is the project's own under deviceZoomCeiling() (1200% on a small canvas cap or a low-memory Chromium, else 5000%, then the layout wall over the sheet's longest side); the save blob keeps the project's own; Zoom Settings runs its slider to the device's ceiling, shows the project's own with a hint, and writes only when moved; the rail gains 2000, 3000 and 5000.
  • The backdrop budget (part 3): past 4× effectiveDpr holds the full-page buffer to 24 Mpx.
  • deep-zoom.spec.js pins all three (the window sharp while the page overlay is soft and cleared under it, twenty real drag pans, hide-marks, retirement at 100%, the ceilings, the dialog, the rail); zoom.spec.js reads the slider's max from the device ceiling. The zoom, rail, tile, loupe and render-pixels specs pass unchanged. Docs: the ARCHITECTURE rows and catalog bullet, AGENTS.md's maxZoom field, the plan's Built section, the PUNCHLIST row closed, CHANGELOG.

npm run check: all 14 steps pass. Verified in the preview at 3000% on the restaurant sheet (crisp 1 px lines, no halo, tiles live).

🤖 Generated with Claude Code

realrobertdouglas and others added 2 commits October 14, 2026 02:17
journeys/plans/DEEP-ZOOM.md, all three parts. Part 1: past the canvas budget the page
overlay is as soft as the PDF base, so renderAnnotationWindow paints #annWindowCanvas,
the visible area at full density, with the same paintOverlay body and toCanvas rebound
(currentRenderZoom, currentEffDpr, overlayOffset) around the call; boxed by the crop
tile's math with the k factor; painted first on every overlay paint so the page pass
leaves the overlays' DOM anchors in page units; re-cut at the four pan-end sites and at
a cold zoom commit; hidden while the overlay is not meaningfully soft. Part 2:
getMaxZoom() is the project's ceiling under deviceZoomCeiling() (1200% on a small
canvas cap or a low-memory Chromium, else 5000%, then the layout wall over the sheet's
longest side); the save blob keeps the project's own; Zoom Settings runs its slider to
the device's ceiling, shows the project's own with a hint, and writes only when moved;
the rail gains 2000, 3000 and 5000. Part 3: past 4x effectiveDpr holds the full-page
buffer to 24 Mpx. deep-zoom.spec.js pins all three; zoom.spec.js reads the slider's
max from the device ceiling. Docs: the ARCHITECTURE rows and catalog bullet, AGENTS.md's
maxZoom field, the plan's Built section, the PUNCHLIST row closed, CHANGELOG; sw.js,
the TOC and the file map restamped.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts:
#	CHANGELOG.md
#	PUNCHLIST.md
#	sw.js
@realrobertdouglas
realrobertdouglas merged commit e7f8050 into main Oct 14, 2026
5 checks passed
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