Repository navigation
feat(layout): an inset and a globe locator together on a publication sheet - #3244
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the full diff, the base-branch AGENTS.md, and the surrounding code: the placement and veil logic, the renderer's Bugs: none found. The checks that came back clean:
Security: none found. Input is parsed with Performance: none found. Quality:
AGENTS.md: no breaks found. Checked against the rules on:
Twins checked: Earlier concerns: none. Change sizeCompared with
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Code reviewI read the diff, the staged AGENTS.md, and the prior threads, then checked the surrounding code: the publication placement and its helpers, the locator resolution in Bugs
Security
Performance
Quality
AGENTS.md
Earlier concerns left aloneTwo prior threads were already answered by the author, so I did not repost them:
Change sizeCompared with the base branch (merge base 4e42a2e to PR head c4e538f).
|
Summary
layout.publicationtakes"locator": ["inset", "globe"]: the inset outlines the map frame, as it does alone, and the globe outlines the inset. Until now a sheet had one or the other, and the second frame had to be added and pointed by hand.[]the same as"none". A repeated entry,"none"in a list or an unknown entry is refused before anything is added.Locator InsetandLocator Globe(one keepsLocator), and the answer'slocatorlists both maps, the inset's first. A scale bar box measured again stays off either.Surfaces: it is a parameter of
layout.publication, so scripts, the CLI, Python, the web build, plugins and the assistant (MCP included, which reads the command's updated parameter help; the print-layout skill is updated too) take it through the same command. The phone interface has no publication layout control. The Publication Layout Wizard still offers one locator.Outside a column each locator keeps the size a single one has, so the pair is about twice as wide; the placement picks its spot as it does for one.
Testing
crates/engine/src/tests/layout_publication_locators.rs, written first and seen failing: nesting and placement, order, a list of one, refusals, a figure and a whole globe, the column styles, an arranged corner, an orphan globe reused and Undo, and the scale bar box.UI evidence
The same extent before (default, one globe) and after (
"locator": ["inset", "globe"]).Classic, over the map:
Panel, at the top of the column:
Not in this PR
Related issue
Closes #3240
Summary by CodeRabbit