Repository navigation
Layouts: a publication layout's surrounds keep off the data; a decimal comma (#682, part 3) - #709
Draft
elpidioassinaturas wants to merge 2 commits into
Draft
elpidioassinaturas wants to merge 2 commits into
elpidioassinaturas wants to merge 2 commits into
Conversation
… area outlined (opengeos#682, part 2) layout.publication takes "locator": "globe" (a sheet's default: a new map of the map's polygon layers on the globe, unlabelled, in a round frame at the map's top left, sized from the renderer's own globe disc), "inset" (the surrounding region on the map itself) or "none" (a figure's default). The map frame's extent indicator outlines the area on either; the legend stops short of it; undo takes the globe's map away with the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l comma (opengeos#682, part 3) The north arrow, the legend, the scale bar and the locator each take the corner where they cover the least of what the map draws (render::layout::frame_coverage: the frame drawn coarse on a blank basemap), keeping their own corners when it makes no difference; one warning names those crowded onto the data. "decimal": "," (layout.publication, layout.page) sets Layout::decimal_comma: graticule, scale bar and colorbar numbers and {scale} print 0,05 and 1:6.300.000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code reviewI found no blocking bugs in PR #709. I read the whole diff and checked Bugs
Security
Performance
Quality
AGENTS.md
Change sizeThe whole PR against main (merge base 60ae3e9 to PR head e2e1648).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. |
This branch has not been deployed
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.
Summary
Part 3 of #682, the last.
This builds on #706 (part 2, the locator), and its first commit is #706's. It's a draft until #706 is in; then I'll merge main into it, so only this part's changes remain.
render::layout::frame_coveragedraws the frame's map on a coarse grid (about 96 cells across) with the basemap set to Blank. Where a layer or its labels drew is data, and the frame's background isn't."decimal": ","onlayout.publication, or onlayout.pagefor any layout, sets a newLayout::decimal_comma.{scale}then print with a decimal comma and points between thousands (0,05,1:6.300.000).graphics::thousandsis now public, for{scale}.layouts.md, and the assistant'sprint-layoutskill.Testing
publication_surrounds_keep_off_the_data(engine) uses a polygon layer in three cases:"decimal": ",",layout.page'sdecimal, and bad values refused.a_decimal_comma_swaps_the_marks(render): the marks swap in numbers. With a decimal comma,{scale}reads1:6.300.000and the text around it keeps its own comma.1:7.600.000.cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningsandcargo xtask layersare clean.rustgis-engine282 passed (3 ignored),rustgis-render137,rustgis-map126,rustgis-assistant206 andrustgis-ui-egui264 (unit tests).🤖 Generated with Claude Code