Repository navigation
fix(layout): measure and edge a nested legend's markers as the map shows them - #3373
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 in BugsNone found. Confidence: moderate-high, from reading only.
SecurityNone found. Performance
Quality
AGENTS.mdNo rule breaks found.
Change sizeCompared with the base branch (
|
📖 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 |
Summary
A layout legend with
"sizes": "nested"misplaced or mis-edged some stacked markers.Only the nested legend block changes; the map and legend rows draw as before. No project format or command change: the fix is in the layout renderer, so it shows wherever layouts are drawn (desktop, web and touch views, exports from the command line, Python, the assistant and plugins).
Testing
render/src/layout/legend/nested/tests.rs: every mark stands on the base with its top where its leader starts (circle, triangle, character, offset mark, hash "+"; at two reference scales, opaque and half see-through), the length of a wide and a hairline hash, which marks get the edge, and that a see-through block is composited as one. The ones for the fixed behaviour failed before the change.cargo fmt --check,cargo clippy --workspace,cargo nextest run(11053 passed, 29 skipped), doctests, layer check andcargo xtask schema --checkpass.ui_shotreplay before and after on the sample project.UI evidence
Cities sized by a field, before (left) and after (right).
A "+" of two hash marks: the leader of the largest started above the cross.
A transparent mark under a red dot: it was edged and the block sized to it.
A red disc with an outlined white dot: the discs merged into one.
Related issue
Closes #3370
Summary by CodeRabbit