Repository navigation
feat(zoom): zoom past 1200% with a sharp overlay window (DEEP-ZOOM) - #336
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds journeys/plans/DEEP-ZOOM.md (PR #335's plan), all three parts, for Wendi's zoom past 1200%.
renderAnnotationWindowpaints#annWindowCanvas, the visible area at full density, with the samepaintOverlaybody andtoCanvasrebound 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.getMaxZoom()is the project's own underdeviceZoomCeiling()(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.effectiveDprholds the full-page buffer to 24 Mpx.deep-zoom.spec.jspins 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.jsreads 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'smaxZoomfield, 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