Repository navigation
feat(layout): Publication Layout on every page size New Layout offers (#2309) - #2333
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, crash paths, or silent data loss. The findings below are minor, and I posted one grouped inline comment on Bugs: None found. I checked the page-size lookup, lowercasing and trimming, the auto-orientation path ( Security: None. The Performance: None. The Quality (for the release quality pass, confidence high, low impact):
AGENTS.md (confidence high on the first, lower on the second):
Checked and left alone: No prior review threads exist on this PR, so nothing was skipped as already raised. Change sizeCompared with
|
|
Thanks. Fixed in c030010: the private doc link. Updated in the description: before/after screenshots, the wasm32 CI job, and the menu count (14 entries instead of 11). Kept: |
Code reviewI read the full 499-line diff, the PR metadata, the base-branch AGENTS.md, and the surrounding code in Bugs: None found. Checked: the Security: None. The only new input is the Performance: None. The Quality (nits, left for the release quality pass):
AGENTS.md:
Change sizeCompared: the whole PR against main (merge base cff2d69 to PR head c030010).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. |
Summary
Publication Layout (
layout.publication) made sheets on A4, A3 and A2 only. It now makes them on every page size New Layout offers: Letter, Legal, Tabloid and A5 to A0, portrait and landscape, in all six styles. The styles already scale with the sheet's short side, so no size needed its own design.map::layout::PAGES(portrait, then landscape), followed by the journal and thesis figures, so a page size added there is a publication sheet too. A size alone ("letter","a0", …) is turned to the area's shape, as"a4"is; an unknown profile's message lists every size.A4 (210 × 297 mm)), each opening its six styles under a Portrait heading and a Landscape heading, then the figures. It has 14 entries instead of 11 and is no deeper; listing all 18 sheets flat would run past the bottom of the screen. The size names, Portrait and Landscape are existing catalog strings, so no new strings are added. The old sheet labels (A4 portrait sheet, …) are no longer used; their catalog entries can be pruned.layout.publication'sprofileand the print-layout skill. The touch interface has no Publication Layout menu.Known limits, left for follow-ups:
Testing
checks.sh: fmt, clippy (engine, ui-egui, assistant), nextest (7462/7462 passed), doctests and layers all pass.publication_sheets_follow_the_page_sizes: everyPAGESsize has its portrait and landscape sheet.every_publication_profile_is_in_the_menua_publication_sheet_is_made_in_the_style_picked: a real click on A4 › Portrait › Panel and on Tabloid › Landscape › Classic.publication_layouts_fit_their_pages, extended to A5 landscape, Legal, A0 and Letter.a_publication_on_a5_portrait_keeps_its_legend_at_a_smaller_scale"Tabloid","a0"," a5 "and"letter".rustgis-clifrom the sample project, as PDF and PNG, on this branch and onmain, in Web Mercator and on the globe: all 82 files are byte-identical.UI evidence
Before:
After:
Related issue
Closes #2309
Summary by CodeRabbit