Repository navigation
1.16 part 11/18: Almanac: page, sky, tables and maps for a place - #182
Closed
epheterson wants to merge 1 commit into
Closed
epheterson wants to merge 1 commit into
epheterson wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Sorry @epheterson, your pull request is larger than the review limit of 150,000 diff characters |
epheterson
force-pushed
the
line/1.16.0-10-games-phone
branch
from
November 23, 2026 10:07
9883bfd to
36f1493
Compare
epheterson
force-pushed
the
line/1.16.0-11-almanac-page
branch
2 times, most recently
from
November 23, 2026 10:12
b6b2e5a to
5c6a4ad
Compare
epheterson
force-pushed
the
line/1.16.0-10-games-phone
branch
from
November 23, 2026 10:52
36f1493 to
2784201
Compare
epheterson
force-pushed
the
line/1.16.0-11-almanac-page
branch
from
November 23, 2026 10:52
5c6a4ad to
387e48d
Compare
epheterson
force-pushed
the
line/1.16.0-10-games-phone
branch
from
November 23, 2026 16:37
2784201 to
5c8fda1
Compare
epheterson
force-pushed
the
line/1.16.0-11-almanac-page
branch
from
November 23, 2026 16:37
387e48d to
4dfe97a
Compare
epheterson
force-pushed
the
line/1.16.0-10-games-phone
branch
from
November 23, 2026 16:44
5c8fda1 to
21a45d9
Compare
epheterson
force-pushed
the
line/1.16.0-11-almanac-page
branch
from
November 23, 2026 16:44
4dfe97a to
eace8c2
Compare
Owner
Author
|
Reviewed here; included in the release PR #189. |
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.
Part 11 of 18 of Zimi 1.16.0: Almanac: page, sky, tables and maps for a place. Base:
line/1.16.0-10-games-phone(part 10); the diff shows only this part's files. The PR carries thenot-a-releaselabel and the version stays 1.15.7, so merging it cuts no release. Merge in order (1 to 17, then 18) with a merge commit, not a squash.What this is
The Almanac's 2D page: how it opens, the sky card, the tables, the tides and the reference. It also adds "a map for any place": one server-side rule that picks the installed map (or the map worth downloading) for a point, used by the 3D view, Go to, articles with coordinates and the Almanac's place. The page here loads 3D scripts that land in parts 13 to 16, so between parts 11 and 16 it is ahead of them; the built Almanac ZIM lands on top of part 16.
What changes
zimi/static/almanac.js(largest change): the page opens with no veil.app.jsdraws a first frame, this file draws the same head over it, and heavy work (GPU sky, panels) waits until the head has been painted. The clock and section pills stay pinned while scrolling, and the date's parts can be typed in place. The 3D view's files are fetched ahead of a tap only on a machine that can afford it.zimi/static/almanac-sky.js,almanac-skygl.js: the sky is painted once, when it is the picture that stays (GPU or Canvas 2D); the GPU sky gets an eclipse path (the sky lit as a Sun below the horizon) and shared light and airmass tables.zimi/static/almanac-skyfacts.js: a settings sheet for the sky (scene: the place's own, the beach, the true horizon; size of Sun and Moon; the life drawn; land-cover scene names) with a gear that opens it from the foot of the screen.zimi/static/almanac-tables.js: a page of constants lists the capability levels and governor and every quantity the Almanac computes with its source; the PDF comments now name the server's typesetter (part 12).zimi/static/almanac-tides.js,almanac-tides.css: the chart's clock line starts at its dot, and the month strip is scrubbed by press and drag.zimi/static/almanac-reference.js: planets now come from the shared VSOP87D series (EPH_VSOP87D) instead of a table built into the nav data;scripts/build_almanac_navdata.pydrops the planet tables and keeps the stars. The series filealmanac-vsop87.jsand the regeneratedalmanac-navdata.jsland in part 13, so the Reference page is ahead of them at this tip.zimi/mapchoice.py(new): the rule for "which map": only maps whose ground holds the point, smallest region first, then newest, then smallest file, the planet last. It reads installed maps from the library and offers from the catalogs already held; nothing is fetched.zimi/mapregions.pyaddsNOT_COVEREDboxes (sea and neighbours inside a country's rectangle) andscripts/build_map_regions.pyandzimi/assets/map-regions.jsonadd antimeridian boxes.zimi/static/mapflow.js(new, fetched on first use): asks/map-foronce per spot (about 1 km), then opens the map or shows the offers; without the right to download no offers are shown.zimi/static/almanac-maps.js(new): draws the installed map's roads and names onto the 3D Earth as the camera comes down, one tile per frame, with a quiet chip offering a map.zimi/static/almanac-links.js: more Q-IDs for planet and moon links.How to review
zimi/mapchoice.py(installed_maps,offered_maps,answer: ordering, antimeridian handling inlng_in, the catalog read incatalog_maps), thenmapflow.js(lookup,outcome,canDownload).almanac.jsopen path (_almWhenShown,_almWhenSettled,_almSkySettled): the page must show before the sky or panels run.almanac-maps.jsper-frame cost and GPU memory (tileBudget,MAX_TILES,MAX_LOADS), the new/map-forinput (lat and lng parsing sits inhttp.py, an earlier part), and the pinned clock on a phone.zimi/assets/map-regions.json(a data table built byscripts/build_map_regions.py).tests/test_apps_mobile.cjsfirst passes at this tip; it covers the apps on a phone, including the Almanac's header. The/map-forroute inhttp.pyis in an earlier part and importszimi/mapchoice.py, which lands here.Tests
tests/test_mapchoice.py,tests/test_map_kind.py,tests/test_place_real_tags.py.tests/test_maps3d_browser.py.tests/test_almanac_open_browser.py,tests/test_almanac_clock_browser.py,tests/test_almanac_layout_browser.py,tests/test_almanac_page_browser.py,tests/test_almanac_live_sky_browser.py,tests/test_almanac_open_path.cjs(browser except the.cjs).tests/test_idle_lean_browser.py,tests/test_orrery_lift_live.py.tests/test_almanac_tables.cjs,tests/test_almanac_tides_browser.py,tests/test_almanac_tide_clock_marks.py,tests/test_almanac_meteor_rows.py,tests/test_today_teaser_names.py,tests/test_almanac_loading_text.py.test_almanac_lazy_open.cjsandtest_almanac_reference.cjsin part 13,test_almanac_view_links.pyin part 15.