Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
385bc44
test(render): pin how a layout picture draws and exports, and what pi…
m-hollis-1 Nov 27, 2026
b4ab52f
test(render): pin pictures from frozen images, and every answer a pic…
m-hollis-1 Nov 28, 2026
c71b1ee
feat(layout): a layout picture remembers the file it was read from
m-hollis-1 Nov 28, 2026
9799030
feat(render): a layout picture without an image names its file in its…
m-hollis-1 Nov 28, 2026
bc9ac74
feat(layout): a picture remembers its file through layout.addElement …
m-hollis-1 Nov 28, 2026
0be0acf
fix(layout): only an update of empty picture keys leaves no Undo step
m-hollis-1 Nov 28, 2026
5aac0b6
feat(layout): every export says the pictures it draws as a grey box
m-hollis-1 Nov 28, 2026
c090ee9
feat(ui): a picture's file in the Format pane, and Choose File… to re…
m-hollis-1 Nov 28, 2026
5aba35b
fix(ui): the layout view checks its pictures once a change, not on ev…
m-hollis-1 Nov 28, 2026
c9fe044
docs(layout): pictures that remember their file in the user guide and…
m-hollis-1 Nov 28, 2026
ac1d420
fix(layout): a picture's file needs a file name, and an address or a …
m-hollis-1 Nov 28, 2026
3805a78
fix(layout): say why a picture's file isn't remembered or its image c…
m-hollis-1 Nov 28, 2026
c9411a9
fix(layout): every layout.update leaves its Undo step
m-hollis-1 Nov 28, 2026
ac3f257
fix(layout): a report's picture notice keeps its layout's name
m-hollis-1 Nov 28, 2026
3a33d6b
test(layout): a region's grey picture, a duplicated picture's file, a…
m-hollis-1 Nov 28, 2026
8b6b795
docs(layout): what a picture's file keeps and shows
m-hollis-1 Nov 28, 2026
7d52c8a
docs(layout): wrap the picture notices' doc comment at 100 columns
m-hollis-1 Nov 28, 2026
3be5e79
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 28, 2026
0ff0927
perf(render): the size a layout picture is drawn from is read off its…
m-hollis-1 Nov 28, 2026
d50ef30
fix(layout): a picture with none of its box on the page isn't said to…
m-hollis-1 Nov 28, 2026
e0df2b0
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 28, 2026
357f7bd
docs(layout): a picture's file limit is 16 MiB
m-hollis-1 Nov 28, 2026
ec716b6
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 28, 2026
1569395
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 28, 2026
f164db3
docs(layout): say why a picture's image is decoded on the command's t…
m-hollis-1 Nov 28, 2026
65c499f
fix(layout): refuse a picture's path in the browser before reading it
m-hollis-1 Nov 28, 2026
46d1d6e
fix(layout): say when an image given to a picture forgets its file
m-hollis-1 Nov 28, 2026
6eb9d72
fix(layout): fit a file named Picture in its grey box as any name
m-hollis-1 Nov 28, 2026
434ad0c
style(layout): format the forgotten-file notice's code
m-hollis-1 Nov 28, 2026
9a212a2
fix(render): keep decoded pictures within the budget or the newest alone
m-hollis-1 Nov 28, 2026
f3c947a
docs(assistant): list a picture's image among layout.update's keys
m-hollis-1 Nov 28, 2026
b9104ce
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 28, 2026
3d7e696
fix(layout): a login before a host and a colon reads as an address, n…
m-hollis-1 Nov 28, 2026
cdc4c6e
test(layout): a drive path with an at sign under a plain folder
m-hollis-1 Nov 28, 2026
0018335
fix(layout): a refused picture file is named by its name, never the p…
m-hollis-1 Nov 28, 2026
b861d48
fix(layout): an address refused as a picture's path is called an address
m-hollis-1 Nov 28, 2026
9cbbfa2
perf(render): a decoded picture drawn again is the last to be let go
m-hollis-1 Nov 28, 2026
22b63e4
test(layout): read the project format from its constant
m-hollis-1 Nov 28, 2026
76d3b97
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
d587a81
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
999f132
fix(layout): a refused picture file whose name would break the refusa…
m-hollis-1 Nov 29, 2026
e87e83b
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
98ffe9c
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
78d1018
fix(layout): the grey-box notice says its button is the app's
m-hollis-1 Nov 29, 2026
511da85
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
87a3c10
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
e6815c9
perf(render): let go the decoded pictures of a project that is gone
m-hollis-1 Nov 29, 2026
0b7a762
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
3645393
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
570a459
docs(render): say which test a picture off the page is told by
m-hollis-1 Nov 29, 2026
3348e6c
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
92993fd
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
e19286b
fix(layout): a login and a host in a path's first part read as an add…
m-hollis-1 Nov 29, 2026
48cec5b
Merge branch 'main' into feat/layout-picture-source
m-hollis-1 Nov 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/assistant/skills/print-layout/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ description: Make a printable page layout — map frame, title, legend, north ar
text or add columns to fit its box), `"subtitle"` (one line under its title), `"sizes": "nested"` (a point layer's marker sizes one inside another on a common base), `"showCounts": true` (each class row ends in its number of features; none for a layer read from a database, over the web or a view at a time from other files),
`"showLayerNames": false`, `"layerOrder": ["<layer>"]` (those layers first, the map unchanged) and `"classLabels"` (`{"<layer>": {"<class label>": "<text>"}}`: its own text for a
class, the layer keeping its label).
A `"text"` or `"dynamicText"` can take
A `"picture"` takes a `"path"` (a PNG or JPEG file; it remembers the file) or an `"image"` (base64);
`layout.update` with `"path"` reads it again. A `"text"` or `"dynamicText"` can take
`"valign"` (`"top"`, `"middle"`, `"bottom"`), `"lineSpacing"` (0.5–3, default 1) and `"case"`
(`"none"`, `"upper"`, `"lower"`; applied when drawn, the text kept as typed). `"grid"` adds a graticule to the frame
(`"style": "ticks"` for neatline ticks, `"format": "dms"`, `"edges"`).
5. Adjust with `layout.update` (`{"element": id, "x", "y", "w", "h", "text", "size", "bold", "valign", "lineSpacing", "case"}`). The ids come from the
5. Adjust with `layout.update` (`{"element": id, "x", "y", "w", "h", "text", "size", "bold", "valign", "lineSpacing", "case", "path", "image"}`). The ids come from the
results of the earlier calls.
6. `layout.export` `{"path": "map.pdf"}`, or `.png` with a `dpi` (300 for print). Exporting writes a file, so the
user is asked first. `layout.close` goes back to the map.
Expand Down
2 changes: 1 addition & 1 deletion crates/engine/command-surface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ layout.save layout? path
layout.series layout? layer nameField? frame? margin? off?
layout.seriesPage layout? page
layout.seriesRefresh layout?
layout.update layout? element x? y? w? h? name? visible? locked? text? size? color? bold? italic? align? letterSpacing? rotation? wrap? valign? lineSpacing? case? font? fallback? title? subtitle? allClasses? hideOther? showNoData? exclude? layerOrder? labels? classLabels? columns? textSize? showLayerNames? sizes? showCounts? orientation? ticks? tickSide? reverse? style? fill? outline? radius? width? dash? dir? head? angle? length? units? divisions? subdivisions? divisionsBeforeZero? labelPosition? unitLabel? unitLabelPosition? fit? map? scale? center? bearing? pitch? grid? extentIndicator? border? section? layer? field? label? group? statistic? order? bars? other? stack? values? decimals? barColor? classes? labelAlign? mirror? max? band? side? gap? thickness? unit? lineColor? lineWidth? min? guides? barOutline? hideLabels? rows? background?
layout.update layout? element x? y? w? h? name? visible? locked? text? size? color? bold? italic? align? letterSpacing? rotation? wrap? valign? lineSpacing? case? font? fallback? title? subtitle? allClasses? hideOther? showNoData? exclude? layerOrder? labels? classLabels? columns? textSize? showLayerNames? sizes? showCounts? orientation? ticks? tickSide? reverse? style? fill? outline? radius? width? dash? dir? head? angle? length? units? divisions? subdivisions? divisionsBeforeZero? labelPosition? unitLabel? unitLabelPosition? fit? map? scale? center? bearing? pitch? grid? extentIndicator? border? section? layer? field? label? group? statistic? order? bars? other? stack? values? decimals? barColor? classes? labelAlign? mirror? max? band? side? gap? thickness? unit? lineColor? lineWidth? min? guides? barOutline? hideLabels? rows? image? path? background?
locator.find locator? text limit? zoom?
map.activate name
map.addTiles url kind? name? bounds? attribution? minZoom? maxZoom? tileSize? singleImage? tms? subdomains? layers? styleLayers? opacity? blend? resampling? overlay? top? replace? id? view? start? end? unit? interval? dates? legend? connection?
Expand Down
39 changes: 25 additions & 14 deletions crates/engine/src/cmd/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,22 @@ fn color(p: &Value, k: &str) -> Result<Option<String>, String> {

/// The picture's bytes as base64, from `image` or a file `path`.
pub(crate) fn picture(p: &Value) -> Result<String, String> {
let b64 = match (ps(p, "image"), ps(p, "path")) {
(Some(b), _) => b.trim().to_string(),
(None, Some(path)) => {
base64::engine::general_purpose::STANDARD.encode(read_picture_file(path, MAX_PICTURE).map_err(PictureFileError::message)?)
}
(None, None) => return Err("a picture needs an image or a path".into()),
};
match (ps(p, "image"), ps(p, "path")) {
(Some(b), _) => checked_picture(b.trim().to_string()),
(None, Some(path)) => picture_file(path, path),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a twin the change missed. picture_file(path, path) still names the full path in a refusal, so on this route (graphics.add, and presentations, which share picture()) a login-shaped path reaches the command error, the notice and the Assistant's tool result. user:pw@host:/a.png is refused as an address on the layout commands and never echoed there, but here a missing file gives user:pw@host:/a.png: No such file or directory. The layout commands now name the file by its name only (picture_file_name), so the leak stays open for map graphics.

Pre-existing on main, and the PR says map graphics are unchanged on purpose. But this change moved the shared helper (read_picture_file / picture_file) in front of both routes, so the same fix should either follow here (refuse an address before any read, and name the file by its name), or the PR should say why graphics keep the echo. Read from the code, not run. Confidence: medium.

Category: security

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left as it is, on purpose, and here is why. graphics.add and presentations name the path the caller gave in a refusal on main, and this pull request does not change what they say: picture_file(path, path) is that route's old behaviour, word for word, and the new test asserts it (graphics.add with a missing file still answers {path}: {error}). The helper was split so that the layout commands could name a file their own way; the map-graphics route got no new input, no new caller and no new text. Changing it (refusing an address before the read, naming the file by its name) is a behaviour change to two commands outside layout pictures, with their own tests, parameter text and user guide passages, so it belongs in its own change where it can be reviewed as one; the PR description says map graphics' refusals are unchanged.

(None, None) => Err("a picture needs an image or a path".into()),
}
}

/// The bytes of the picture file at `path` as base64: read by [`read_picture_file`], at most
/// 16 MiB, and a PNG or JPEG. A file that doesn't open or read is called `named` in the refusal.
pub(crate) fn picture_file(path: &str, named: &str) -> Result<String, String> {
let bytes = read_picture_file(path, MAX_PICTURE).map_err(|e| e.message(named))?;
checked_picture(base64::engine::general_purpose::STANDARD.encode(bytes))
}

/// `b64` when it is at most 16 MiB of a PNG or JPEG image.
pub(crate) fn checked_picture(b64: String) -> Result<String, String> {
if b64.len() > MAX_PICTURE / 3 * 4 + 4 {
return Err("the picture is too large".into());
}
Expand All @@ -417,7 +426,8 @@ pub(crate) fn picture(p: &Value) -> Result<String, String> {
Ok(b64)
}

/// Why [`read_picture_file`] gave no picture, with how many of its bytes were read.
/// Why [`read_picture_file`] gave no picture, with how many of its bytes were read. The reasons
/// never hold the path: [`PictureFileError::message`] names the file as its caller chooses.
pub(crate) enum PictureFileError {
/// It isn't a regular file, or doesn't open: none read.
Unopened(String),
Expand All @@ -436,10 +446,10 @@ impl PictureFileError {
}
}

/// What a command says of it.
pub(crate) fn message(self) -> String {
/// What a command says of it, the file called `named` where it is the file's fault.
pub(crate) fn message(self, named: &str) -> String {
match self {
Self::Unopened(why) | Self::Unread(why, _) => why,
Self::Unopened(why) | Self::Unread(why, _) => format!("{named}: {why}"),
Self::TooLarge(_) => "the picture is too large".into(),
}
}
Expand All @@ -449,13 +459,14 @@ impl PictureFileError {
/// or endless file is too), its provenance kept. Only a regular file is opened: opening a named
/// pipe or a device (`/dev/stdin`) waits for a writer, and this runs on the command's thread.
pub(crate) fn read_picture_file(path: &str, max: usize) -> Result<Vec<u8>, PictureFileError> {
let unopened = |e: std::io::Error| PictureFileError::Unopened(format!("{path}: {e}"));
// The system's own words for an error (`std::io::Error`'s display) don't hold the path.
let unopened = |e: std::io::Error| PictureFileError::Unopened(e.to_string());
if !std::fs::metadata(path).map_err(unopened)?.is_file() {
return Err(PictureFileError::Unopened(format!("{path}: not a regular file")));
return Err(PictureFileError::Unopened("not a regular file".into()));
}
let file = rustgis_data::provenance::open(path).map_err(unopened)?;
let bytes = read_within(&file, max).map_err(|(e, n)| match e {
Some(e) => PictureFileError::Unread(format!("{path}: {e}"), n),
Some(e) => PictureFileError::Unread(e.to_string(), n),
None => PictureFileError::TooLarge(n),
})?;
rustgis_data::provenance::buffer(std::path::Path::new(path), &file, &bytes);
Expand Down
8 changes: 7 additions & 1 deletion crates/engine/src/cmd/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ use legend::*;
pub(crate) use legend::{
legend_columns_param, legend_counts_param, legend_fit_param, legend_names_param, legend_sizes_param, legend_subtitle_param,
};
mod picture;
pub(crate) use picture::gives_picture;
pub(in crate::cmd) use picture::say_pictures_not_drawn;
use picture::*;
mod page;
use page::*;
mod profile;
Expand Down Expand Up @@ -232,7 +236,7 @@ pub fn commands() -> Vec<C> {
r##""angle"?: degrees anticlockwise from pointing right, centred on the page unless x or y is given (line, arrow; it sets the box and the direction, so w, h and dir are not used with it), "##,
r##""length"?: mm (line, arrow), "##,
r##""image"?: base64, "##,
r##""path"?: picture file, "##,
r##""path"?: picture file (picture: read, and remembered as its file, so a picture whose image goes missing names it and layout.update can read it again; an address is refused, and image and path together; refused in the browser, which has no file paths: give its image; refused for other kinds), "##,
r##""layer"?: (table, chart; colorbar: a raster layer, default the top visible raster with a colour scale, not drawn by classes, which a legend lists; profile: a raster layer held whole, not read in place, default the top one shown), "##,
r##""field"?: (chart: a numeric field, default the layer's first; any field when it groups and counts, default then the field it groups by), "##,
r##""label"?: a field (chart: each bar's label when not grouped), "##,
Expand Down Expand Up @@ -393,6 +397,8 @@ pub fn commands() -> Vec<C> {
r##""barOutline"?: {"color"?, "width"?: points, 0 to 5, a wider one held to 5, the keys not given keeping the outline's}|null (null or a width of 0 for none), "##,
r##""hideLabels"?: bool (chart, as in layout.addElement: null leaves each other one as it is; refused for other elements unless null), "##,
r##""rows"?, "##,
r##""image"?: base64 (picture: its new image, its file no longer remembered, which is said when it had one), "##,
r##""path"?: a PNG or JPEG file (picture: read again, its image replacing the one it has, and remembered as its file; a file missing, over 16 MB, not a PNG or JPEG, or one that can't be drawn is refused and the picture left as it was; image and path together are refused; refused in the browser, which has no file paths: give its image; null leaves each as it is; refused for other elements), "##,
r##""background"?: {"fill"?, "outline"?, "width"?, "radius"?, "padding"?, as in layout.addElement, the keys not given keeping theirs} | null (removes it); a map frame takes none}"##,
),

Expand Down
11 changes: 9 additions & 2 deletions crates/engine/src/cmd/layout/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ pub(crate) fn color(p: &Value, k: &str, d: Rgba) -> Result<Rgba, String> {
}

pub(in crate::cmd::layout) fn add_element(s: &mut Session, p: &Value) -> CmdResult {
const NO_PICTURE: &str = "a picture needs an image or a path";
let kind = ps(p, "kind").ok_or("kind is required")?;
// A profile reads its own keys (#2863 part 2), several of them other kinds' too.
if kind == "profile" {
Expand Down Expand Up @@ -391,7 +392,9 @@ pub(in crate::cmd::layout) fn add_element(s: &mut Session, p: &Value) -> CmdResu
BackgroundParam::Absent | BackgroundParam::Remove => None,
};
let i = index(s, p)?;
let image = if kind == "picture" { Some(crate::cmd::graphics::picture(p)?) } else { None };
// A picture's image, read and checked to draw before anything is added.
let picture = if kind == "picture" { Some(picture_given(p)?.ok_or(NO_PICTURE)?) } else { None };
let unremembered = picture.as_ref().is_some_and(|g| g.unremembered);
let l = s.project.layouts.get(i).ok_or("no layout")?;
let (pw, ph) = (l.width, l.height);
let (name, rect, k) = match kind {
Expand Down Expand Up @@ -510,7 +513,8 @@ pub(in crate::cmd::layout) fn add_element(s: &mut Session, p: &Value) -> CmdResu
(if kind == "text" { "Text" } else { "Dynamic Text" }, place(p, l, (15.0, 12.0, 120.0, (size * 0.5).max(8.0)))?, k)
}
"picture" => {
("Picture", place(p, l, (pw - 60.0, ph - 50.0, 45.0, 35.0))?, ElementKind::Picture { image: image.unwrap_or_default() })
let GivenPicture { image, source, .. } = picture.ok_or(NO_PICTURE)?;
("Picture", place(p, l, (pw - 60.0, ph - 50.0, 45.0, 35.0))?, ElementKind::Picture { image, source })
}
"table" => {
let frame = frame_of(l, p)?;
Expand Down Expand Up @@ -734,6 +738,9 @@ pub(in crate::cmd::layout) fn add_element(s: &mut Session, p: &Value) -> CmdResu
if let Some(said) = empty_colorbar {
s.warn(said);
}
if unremembered {
s.notify(picture_unremembered(), false);
}
let mut held = held_to_limits(p, Shape::of_name(kind));
if kind == "table" {
held.extend(held_rows(p));
Expand Down
11 changes: 10 additions & 1 deletion crates/engine/src/cmd/layout/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn layout_bytes_for(
/// millimetres from the page's top left), drawn at that `dpi` rather than cut out of the whole
/// page: what the assistant's `view_map` shows of a layout. It says what exporting the page says
/// of it: texts cut off, named fonts still being read, frames drawn without their cast shadows,
/// charts' notices.
/// pictures drawn as a grey box, charts' notices.
pub fn layout_png(s: &mut Session, li: usize, dpi: f64, region: Option<[f64; 4]>) -> Result<Vec<u8>, String> {
let layout = s.project.layouts.get(li).ok_or("no layout")?.clone();
if let Some(note) = named_fonts_unread(&layout) {
Expand All @@ -83,6 +83,10 @@ pub fn layout_png(s: &mut Session, li: usize, dpi: f64, region: Option<[f64; 4]>
if let Some(r) = region {
gaps.retain(|g, _| layout.element(g.frame).is_some_and(|e| rustgis_render::layout::meets(e, r, 0.0)));
}
let mut grey = rustgis_render::layout::pictures_not_drawn(&layout);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
if let Some(r) = region {
grey.retain(|g| layout.element(g.id).is_some_and(|e| rustgis_render::layout::meets(e, r, 0.0)));
}
let mut profiles: ProfileNotes =
rustgis_render::layout::profiles_not_drawn(&layout, &s.project.maps).into_iter().map(|n| (n, 1)).collect();
if let Some(r) = region {
Expand Down Expand Up @@ -111,6 +115,7 @@ pub fn layout_png(s: &mut Session, li: usize, dpi: f64, region: Option<[f64; 4]>
if let Some(note) = rustgis_render::layout::sections_notice(&gaps, 1) {
s.warn(note);
}
say_pictures_not_drawn(s, &grey, "");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This notice is said on every call of layout_png, and the Assistant's view can call layout_png more than once. draw_layout runs draw_within (crates/assistant/src/tools.rs), which redraws at a smaller size while the PNG is over its byte limit. draw_view drops repeated texts from the tool's own result, so the Assistant's answer is fine. But each pass still adds a copy to the session's notices, so the app's Messages can show the grey-box notice once per pass. The sections notice a few lines above has the same repeat, so this is an existing pattern that this change extends. A fix would keep only the last pass's notices for layout_png, and it is best done for all of its notices together.

Confidence: medium on the mechanism, low on how often users see it.

Category: quality

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on the mechanism, and left as it is for the reason given: every notice layout_png says (texts cut off, sections not drawn, legends, charts) is said once a pass when the Assistant's view redraws smaller, and the grey-box notice sits beside them and behaves the same; the Assistant's own result drops the repeats. Keeping only the last pass's notices is a change to layout_png and draw_within for all of those notices at once, so it belongs in its own change, not as a special case for this one notice.

for note in rustgis_render::layout::profiles_notice(&profiles, 1) {
s.warn(note);
}
Expand Down Expand Up @@ -318,6 +323,8 @@ pub(in crate::cmd::layout) fn layout_bytes_inner(
if let Some(note) = rustgis_render::layout::sections_notice(&gaps, pages.len()) {
s.warn(note);
}
// A series' pages move its frame only: its pictures are the same on every page.
say_pictures_not_drawn(s, &rustgis_render::layout::pictures_not_drawn(&saved), "");
for note in rustgis_render::layout::profiles_notice(&profiles, pages.len()) {
s.warn(note);
}
Expand Down Expand Up @@ -555,6 +562,7 @@ fn layout_svg(s: &mut Session, li: usize, dpi: f64, download: Option<(crate::cmd
let clipped = rustgis_render::layout::clipped_text(layout, &s.project.maps, dpi, &info);
let note = rustgis_render::layout::clipped_text_notice(layout, &clipped);
let gaps = rustgis_render::layout::sections_not_drawn(layout, &s.project.maps).into_iter().map(|g| (g, 1)).collect();
let grey = rustgis_render::layout::pictures_not_drawn(layout);
let profiles: ProfileNotes = rustgis_render::layout::profiles_not_drawn(layout, &s.project.maps).into_iter().map(|n| (n, 1)).collect();
let ((drawn, unfitted), charts) = rustgis_render::layout::drawn_charts(|| {
rustgis_render::layout::unfitted_legends(|| {
Expand All @@ -568,6 +576,7 @@ fn layout_svg(s: &mut Session, li: usize, dpi: f64, download: Option<(crate::cmd
for note in [note, rustgis_render::layout::sections_notice(&gaps, 1)].into_iter().flatten() {
s.warn(note);
}
say_pictures_not_drawn(s, &grey, "");
for note in rustgis_render::layout::profiles_notice(&profiles, 1) {
s.warn(note);
}
Expand Down
Loading
Loading