Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
fe26f09
fix(layout): a legend's title wraps to its box, and its rows start un…
choupeanut Nov 28, 2026
780c53e
fix(layout): review fixes for the legend title wrap (#3129)
choupeanut Nov 28, 2026
103e9e1
layout: leave omitted title lines out of the publication legend's row…
choupeanut Nov 28, 2026
8d546ba
Merge remote-tracking branch 'origin/main' into fix/3129-legend-title…
choupeanut Nov 28, 2026
13a6710
Merge remote-tracking branch 'origin/main' into fix/3129-legend-title…
choupeanut Nov 29, 2026
2c2aa9d
render: legend title fit allows rounding slack at translated boxes (#…
choupeanut Nov 29, 2026
d29ec56
Merge origin/main into fix/3129-legend-title-wrap
choupeanut Nov 29, 2026
1ad99dc
layout: title-wrap tests follow the legend's subtitle (#3129)
choupeanut Nov 29, 2026
ab442e7
layout: a legend's subtitle is checked against the page under its wra…
choupeanut Nov 29, 2026
118e83f
Merge branch 'main' into fix/3129-legend-title-wrap
giswqs Nov 29, 2026
3931f6a
fix(layout): say when a legend title's lines leave its box
giswqs Nov 29, 2026
ad91682
layout: the legend tests follow main's legend sizes (#3129)
choupeanut Nov 30, 2026
ebec849
Merge remote-tracking branch 'origin/main' into fix/3129-legend-title…
choupeanut Nov 30, 2026
8747922
layout: a legend added with no title or subtitle says nothing of its …
choupeanut Nov 30, 2026
aa57db8
ci: rerun docs-preview (runner was shut down)
choupeanut Dec 1, 2026
53db910
Merge main into fix/3129-legend-title-wrap
choupeanut Dec 1, 2026
5ac23d3
test: fill LegendAsked.column_breaks in the legend title test (#3129)
choupeanut Dec 1, 2026
72ce7bc
test: fill column_breaks in the legend title layout tests (#3129)
choupeanut Dec 1, 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
2 changes: 1 addition & 1 deletion crates/engine/src/cmd/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ pub fn commands() -> Vec<C> {
r##""case"?: "none"|"upper"|"lower" (text, dynamicText: drawn in upper or lower case once its dynamic text is filled in, its text kept as typed; default none; refused for other kinds), "##,
r##""font"?: "sans"|"serif"|an installed font family's name, as labels.fonts lists them (text, dynamicText, a northArrow's N and a scaleBar's labels; a family not installed here is drawn in its fallback, and a serif where none is installed in the sans, with a warning; refused for other kinds), "##,
r##""fallback"?: "sans"|"serif" (a named font's, where it isn't installed; default its own class, else sans), "##,
r##""title"?: legend title (default "Legend"); chart: its own title ("" for none; default: its field, or the statistic of its field by the group); profile: written over its curve ("" for none; default its layer's name), "##,
r##""title"?: legend title (default "Legend"; wrapped within the legend's box); chart: its own title ("" for none; default: its field, or the statistic of its field by the group); profile: written over its curve ("" for none; default its layer's name), "##,
r##""subtitle"?: text (legend: one line under its title, at the rows' text size, up to 200 characters; "" for none, the default; refused for other kinds), "##,
r##""allClasses"?: bool (legend: every class, not only those the frame draws), "##,
r##""hideOther"?: bool (legend: leave out <all other values>), "##,
Expand Down
6 changes: 5 additions & 1 deletion crates/engine/src/cmd/layout/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,11 @@ pub(in crate::cmd::layout) fn add_element(s: &mut Session, p: &Value) -> CmdResu
say_chart_losses(s, i, id);
}
say_table_cut(s, i, id);
say_text_fit(s, i, id, true);
// A legend's title lines its box has no height for are said when it is given a title or a
// subtitle (#3129), as `layout.update` does; a legend given neither says nothing, as before.
if kind != "legend" || ["title", "subtitle"].iter().any(|k| p.get(*k).is_some_and(|v| !v.is_null())) {
say_text_fit(s, i, id, true);
}
Comment on lines +856 to +860

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.

A legend added with neither title nor subtitle skips say_text_fit, but its default title "Legend" now wraps to the box too (#3129). In a legend narrower than that word, or shorter than two of its title lines, a line of the title is left out at layout.addElement and nothing is said until an export's cut-off check. Before this change the default title drew whole, so this loss is new. The rule in AGENTS.md ("lines left out below a text's box are said as soon as they are") and the layouts guide both promise the setting-time notice. say_text_fit already says nothing for a legend whose title fits, so the guard isn't needed for silence. Suggested change: call it for every legend. Please add a test for a default-titled legend in a too-short box (one notice) and a roomy one (none). I could not run the test suite here, so existing addElement tests that count warnings should be checked too.

Category: bug

say_text_statistics(s, i, id);
if let Some(said) = empty_colorbar {
s.warn(said);
Expand Down
16 changes: 11 additions & 5 deletions crates/engine/src/cmd/layout/legend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ pub(in crate::cmd::layout) fn say_raster_keys(s: &mut Session, li: usize, id: u3

/// Whether a legend `kind`, after a command with `p`, says what it loses in its box (#2581): the
/// one rule `layout.addElement` and `layout.update` both take. Told when it is given what sets
/// what it needs of its box (its columns, its missing-value row, its fit, its layer names, or its
/// text size, `null` included, which gives the default back) or labels (text chosen for the box),
/// what it needs of its box (its columns, its missing-value row, its fit, its layer names, its
/// title, which wraps to the box and takes the rows' room (#3129), or its text size, `null`
/// included, which gives the default back) or labels (text chosen for the box),
/// and, in columns, at a text size of its own or under a fit, which can stop fitting, when its box
/// or what it lists changes. A move changes neither.
pub(in crate::cmd::layout) fn tells_legend_fit(kind: &ElementKind, p: &Value) -> bool {
Expand All @@ -127,15 +128,17 @@ pub(in crate::cmd::layout) fn tells_legend_fit(kind: &ElementKind, p: &Value) ->
*columns > 1 || !column_breaks.is_empty() || *text_size != rustgis_map::layout::LEGEND_TEXT_PT || fit.kept() != LegendFit::Manual;
let refitted =
["w", "h", "title", "allClasses", "hideOther", "exclude", "layerOrder", "labels", "classLabels"].iter().any(|k| given(k));
["columns", "showNoData", "labels", "classLabels", "fit", "showLayerNames", "showCounts", "subtitle", "sizes"].iter().any(|k| given(k))
["columns", "showNoData", "labels", "classLabels", "fit", "showLayerNames", "showCounts", "title", "subtitle", "sizes"]
.iter()
.any(|k| given(k))
|| p.get("textSize").is_some()
|| (watched && refitted)
|| given("columnBreaks")
}

/// Says what a legend loses in its box, as `layout.publication` does for its own, or that it can't
/// tell. A manual legend is measured in its own columns at its own size; a fitted one by the
/// drawing's own fit ([`crate::render::layout::legend_fitted_mm`]), in the room its title leaves,
/// drawing's own fit ([`crate::render::layout::legend_fitted_mm`]), in the room its wrapped title leaves,
/// so it says nothing when the page draws it whole and what it tried when it can't.
pub(in crate::cmd::layout) fn say_legend_fit(s: &mut Session, li: usize, id: u32) {
let Some(l) = s.project.layouts.get(li) else { return };
Expand Down Expand Up @@ -167,7 +170,10 @@ pub(in crate::cmd::layout) fn say_legend_fit(s: &mut Session, li: usize, id: u32
Some(ElementKind::MapFrame { map, center, scale, .. }) => Some((map.clone(), *center, *scale)),
_ => None,
};
let room = (e.w, e.h - crate::render::layout::legend_head_mm(title, subtitle, *text_size));
// The title wraps to the box (#3129), and a subtitle takes a row under it: the rows have what is left.
let head = crate::render::layout::legend_title_block_mm(title, (e.w, e.h), *text_size)
+ crate::render::layout::legend_head_mm("", subtitle, *text_size);
let room = (e.w, e.h - head);
let (all_classes, hide_other, show_no_data, exclude, columns, labels, text_size) =
(*all_classes, *hide_other, *show_no_data, exclude.clone(), *columns, labels.clone(), *text_size);
let (fit, layer_names, class_labels) = (fit.kept(), show_layer_names.shown(), class_labels.clone());
Expand Down
10 changes: 8 additions & 2 deletions crates/engine/src/cmd/layout/publication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2030,10 +2030,16 @@ pub(in crate::cmd::layout) fn publication(s: &mut Session, p: &Value) -> CmdResu
let bar_need = bar.as_deref().map_or(0.0, |title| colorbar_mm(title, iw));
let bar_fit = colorbar_fit(bar_need, ih, ch + bar_gap, over_map);
let rows_h = (ih - bar_fit - if bar.is_some() { bar_gap } else { 0.0 }).max(0.0);
let (mut too_wide, too_tall) = overflows((cw, ch), (iw, rows_h));
// A title wider than the box is named: the width past it is the title's, unless the rows
// are wider still.
// are wider still. It wraps to the box (#3129), and the lines it draws past its first take
// the rows' room, which `ch` (one line of title) doesn't hold. A line the box has no height
// for is left out, takes none, and is the text-loss report's to say, not the rows'.
let title = legend.as_ref().map(|l| l.title.as_str()).filter(|t| ch > 0.0 && !t.is_empty());
let title_extra = title.map_or(0.0, |t| {
let drawn = crate::render::layout::legend_title_block_mm(t, (iw, rows_h), legend_pt);
(drawn - crate::render::layout::legend_title_mm(legend_pt)).max(0.0)
});
let (mut too_wide, too_tall) = overflows((cw, ch + title_extra), (iw, rows_h));
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

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.

The wrapped title's extra lines are counted here, but the placement that chooses this box doesn't count them. PublicationLegend::sizes (publication/parts.rs:146-147) still gives the title one line of height, and the fit check that accepts a box (around line 2252, !overflows((cw, ch), (iw, rows))) uses the same ch. So placement can accept a legend whose rows then lose room to the wrapped lines. This warning then says rows are left out, although another column count or a taller box could have kept them all. Nothing is hidden, since the warning is said, but the sheet ends up with a worse layout than placement chose.

The PR says sizing still prefers a one-line title. If that is the intent, say in the PR description that a wrapped title can cost rows, and add a test where a wrapped title makes a column count lose rows that another column count keeps. If not, add the wrapped block's height to the sizes and to that fit check.

Confidence: medium (about 0.5). I read the code but did not run the layout with a wrapped title, so this is not verified by a test.

Category: bug

let title_w = title.map_or(0.0, |t| crate::render::layout::legend_title_width_mm(t, legend_pt));
if title_w > iw + LEGEND_FIT_MM {
warnings.push("the legend's title is wider than its box: shorten it".into());

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.

The title now wraps to the box, but this warning still tells the user to "shorten it" for any title wider than the box plus the fit margin. The wrapped title isn't lost on that account, so the advice is now only partly right. This is a wording point: consider "the title wraps to its box; shorten it to fit one line" or a shorter form. The test a_publication_legend_title_wider_than_its_box_is_named asserts the current text, so the test needs updating with any change.

Category: quality

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.

Claude autofix (declined): Left for the release quality pass. The wording is a point of style; the test a_publication_legend_title_wider_than_its_box_is_named would change with it.

Expand Down
5 changes: 3 additions & 2 deletions crates/engine/src/cmd/layout/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ pub(in crate::cmd::layout) const ONLY_LAYOUT_TEXT_SIZE: &str = "only legends, sc
/// layout view and an export count them: on the series' current page, measured at 300 dpi as a
/// wrapped text is broken, and, a notice of its own, that its ink runs off the page (#2703). A
/// `lines` of false (a move or a turn, which change no line) says only the edge. For a scale bar
/// `id`, whether its box is too short for its labels or one runs off the page (#2581).
/// `id`, whether its box is too short for its labels or one runs off the page (#2581). A legend's
/// title is said as a text's lines are, its wrapped lines that its box has no height for (#3129).
pub(in crate::cmd::layout) fn say_text_fit(s: &mut Session, li: usize, id: u32, lines: bool) {
let bar = match s.project.layouts.get(li).and_then(|l| l.element(id)).map(|e| &e.kind) {
Some(ElementKind::Text { .. }) => false,
Some(ElementKind::Text { .. } | ElementKind::Legend { .. }) => false,
Some(ElementKind::ScaleBar { .. }) => true,
_ => return,
};
Expand Down
7 changes: 6 additions & 1 deletion crates/engine/src/cmd/layout/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,12 @@ pub(in crate::cmd::layout) fn update(s: &mut Session, p: &Value) -> CmdResult {
}
// After the scale box is refitted: a text is measured in the box it is saved with, and a text
// or scale bar moved, whose ink can then run off the page, too.
if shown || TEXT_FIT_KEYS.iter().any(|k| p.get(*k).is_some_and(|v| !v.is_null())) || BAR_FIT_KEYS.iter().any(|k| p.get(*k).is_some()) {
// A legend's title or subtitle too: its lines may not fit the box they are wrapped to (#3129).
if shown
|| TEXT_FIT_KEYS.iter().any(|k| p.get(*k).is_some_and(|v| !v.is_null()))
|| BAR_FIT_KEYS.iter().any(|k| p.get(*k).is_some())
|| given(&["title", "subtitle"])
{
say_text_fit(s, li, id, true);
} else if given(&["x", "y", "rotation", "valign"]) {
// A move, a turn or a block alignment changes no line a text breaks into, but can take its
Expand Down
68 changes: 68 additions & 0 deletions crates/engine/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14166,6 +14166,74 @@ fn legend_said(s: &Session, mark: u64) -> Vec<String> {
s.notices_since(mark).iter().map(|n| n.text.clone()).filter(|n| n.starts_with("the legend")).collect()
}

/// A title that wraps to a legend's box takes the rows' room (#3129): the legend whose box held
/// its rows under a title of one line says what it loses when its title is made long, as it would
/// when its rows grew, and says nothing for a title that fits in a line.
#[test]
fn a_legend_titled_past_its_box_says_the_rows_the_wrapped_title_takes() {
use std::collections::BTreeMap;
let mut s = world();
s.run("layout.new", &json!({"page": "a4", "orientation": "landscape", "template": "map"})).unwrap();
let frame = s.project.layouts[0].first_frame().unwrap();
let labels = BTreeMap::new();
let asked = crate::render::layout::LegendAsked {
all_classes: true,
hide_other: false,
show_no_data: false,
layer_names: true,
text_size: 9.0,
exclude: &[],
layer_order: &[],
labels: &labels,
class_labels: &NO_CLASS_LABELS,
show_counts: false,
column_breaks: &[],
sizes: Default::default(),
};
let rows = legend_sizes(&mut s, frame, &asked)[0];
let title = crate::render::layout::legend_title_mm(9.0);
let mark = s.notice_mark();
let added = json!({"kind": "legend", "allClasses": true, "columns": 1, "title": "Key", "x": 10, "y": 10, "w": rows.0 + 5.0, "h": title + rows.1 + 0.5});
let id = s.run("layout.addElement", &added).unwrap()["element"].clone();
assert_eq!(legend_said(&s, mark), Vec::<String>::new());
let long = "A very long legend title that is much wider than the legend itself";
let mark = s.notice_mark();
s.run("layout.update", &json!({"element": id, "title": long})).unwrap();
assert_eq!(legend_said(&s, mark), ["the legend lists more than fits its box: its last rows or the ends of long labels are left out"]);
// Back to a title of one line, it fits again; and a box that is taller holds the long one.
let mark = s.notice_mark();
s.run("layout.update", &json!({"element": id, "title": "Key"})).unwrap();
assert_eq!(legend_said(&s, mark), Vec::<String>::new());
let mark = s.notice_mark();
s.run("layout.update", &json!({"element": id, "title": long, "h": 200.0})).unwrap();
assert_eq!(legend_said(&s, mark), Vec::<String>::new());
}

/// A legend title whose wrapped lines its box has no height for says how many are left out, when
/// the legend is added and when its title is set; a title that fits its box says nothing (#3129).
#[test]
fn a_legend_title_whose_lines_leave_its_box_is_said() {
let said = |s: &Session, mark: u64| -> Vec<String> {
s.notices_since(mark).iter().map(|n| n.text.clone()).filter(|n| n.contains("of the text")).collect()
};
let mut s = world();
s.run("layout.new", &json!({"page": "a4", "orientation": "landscape", "template": "map"})).unwrap();
// A box as tall as one line of title, so the lines a long title wraps to past its first are left out.
let h = crate::render::layout::legend_title_mm(9.0) + 0.5;
let long = "A very long legend title that is much wider than the legend itself";
let mark = s.notice_mark();
let added = json!({"kind": "legend", "allClasses": true, "columns": 1, "title": long, "x": 10, "y": 10, "w": 30.0, "h": h});
let id = s.run("layout.addElement", &added).unwrap()["element"].clone();
assert_eq!(said(&s, mark).len(), 1, "{:?}", said(&s, mark));
assert!(said(&s, mark)[0].contains("drawn; make the box taller"), "{:?}", said(&s, mark));
let mark = s.notice_mark();
s.run("layout.update", &json!({"element": id, "title": "Key"})).unwrap();
assert_eq!(said(&s, mark), Vec::<String>::new());
let mark = s.notice_mark();
s.run("layout.update", &json!({"element": id, "title": long})).unwrap();
assert_eq!(said(&s, mark).len(), 1, "{:?}", said(&s, mark));
}

/// A manual legend that overflows its box says so as it always has; the same legend set to a fit
/// that makes it fit says nothing, made a little smaller still nothing; given back manual, it says
/// so again, word for word.
Expand Down
36 changes: 35 additions & 1 deletion crates/engine/src/tests/layout_publication_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,48 @@ fn the_publication_legend_fixture_opens_and_keeps_its_requirement() {
assert_eq!(serde_json::to_value(&fixture).unwrap()["requires"], json!(["layout-publication-legend"]));
}

/// A title wider than a side column's box wraps (#3129), and its lines past the first take the
/// room of the rows, which the sheet then says it left out: a title of two lines in a panel's one
/// column used to say only that it was wider than its box.
#[test]
fn a_publication_legend_title_wrapped_in_its_box_says_the_rows_it_loses() {
let (_, r) = sheet(json!({"legend": {"title": "A legend title ".repeat(2), "columns": 1}, "style": "panel"}));
let said = r["warnings"].to_string();
assert!(said.contains("the legend's title is wider than its box: shorten it"), "{said}");
assert!(said.contains("the legend lists more than fits its box: its last rows or the ends of long labels are left out"), "{said}");
// A title that fits its box in one line loses nothing to it.
let (_, r) = sheet(json!({"legend": {"title": "Key", "columns": 1}, "style": "panel"}));
assert!(!r["warnings"].to_string().contains("legend lists more"), "{}", r["warnings"]);
}

/// A title line the box has no height to draw is left out (#3129), so it takes no room from the
/// rows: with one row and a two-line title in a box that holds the first line and the row, every
/// row is drawn and the sheet doesn't say rows are lost.
#[test]
fn a_publication_legend_title_line_left_out_does_not_say_a_drawn_row_is_lost() {
// One layer drawn in one plain colour: a single row.
let mut w = world();
w.map_mut().layers.retain(|l| l.name == "Rivers");
let (s, r) = {
let r = publish(&mut w, json!({"legend": {"title": "A legend title ".repeat(2), "columns": 1}, "style": "panel"})).unwrap();
(w, r)
};
let said = r["warnings"].to_string();
assert!(find(&s, "Legend").is_some(), "{said}");

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.

Nit: this find(&s, "Legend").is_some() only checks that a legend element exists, so it doesn't show that the row is drawn. The "no rows lost" assertion on the next line is the real check, and it holds even if the legend is missing. A stronger check would confirm that the legend element holds its one row. The (s, r) block above is also unneeded, since publish(&mut w, ...) can be called directly.

Category: quality

assert!(!said.contains("the legend lists more than fits its box"), "{said}");
}

#[test]
fn a_publication_legend_title_wider_than_its_box_is_named() {
let long = "A very long legend title ".repeat(8);
for (columns, style) in [(1, "classic"), (2, "classic"), (1, "panel")] {
let (_, r) = sheet(json!({"legend": {"title": long, "columns": columns}, "style": style}));
let said = r["warnings"].to_string();
assert!(said.contains("the legend's title is wider than its box: shorten it"), "{columns} {style}: {said}");
assert!(!said.contains("columns are wider") && !said.contains("ends of long labels"), "{columns} {style}: {said}");
// The title is named, not the rows' columns as wider than the box; its lines, wrapped to the
// box (#3129), take the rows' room, which is said.
assert!(!said.contains("columns are wider"), "{columns} {style}: {said}");
assert!(said.contains("its last rows"), "{columns} {style}: {said}");
}
let (_, r) = sheet(json!({"legend": {"title": "Key"}}));
assert!(!r["warnings"].to_string().contains("wider than its box"), "{}", r["warnings"]);
Expand Down
18 changes: 15 additions & 3 deletions crates/render/src/layout/colorbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,12 @@ pub(super) fn colorbar_title_style() -> TextStyle {
/// A colorbar's title's width in mm, its widest line, measured as [`colorbar_title_lines`] breaks
/// it.
pub fn colorbar_title_width_mm(title: &str) -> f64 {
let px = (COLORBAR_TITLE_PT * 1.33 * WRAP_PX_PER_MM / PT_PER_MM) as f32;
title_width_mm(title, COLORBAR_TITLE_PT)
}

/// A bold title's width in mm at `pt` points, its widest line, at the resolution titles are broken at.
fn title_width_mm(title: &str, pt: f64) -> f64 {
let px = (pt * 1.33 * WRAP_PX_PER_MM / PT_PER_MM) as f32;
let face = colorbar_title_style().face;
title.lines().map(|line| f64::from(text::styled_extent(line, px, face, 0.0).1)).fold(0.0, f64::max) / WRAP_PX_PER_MM
}
Expand All @@ -278,11 +283,18 @@ pub(super) const COLORBAR_TITLE_SLACK_MM: f64 = 0.01;
/// title of one line that fits is that line, as it is. Past 200 lines, one more line with text
/// says it goes on, as for a wrapped text.
pub fn colorbar_title_lines(title: &str, width: f64) -> Vec<String> {
title_lines(title, width, COLORBAR_TITLE_PT)
}

/// A bold title of `pt` points as the lines it is drawn in, broken to fit `width` mm
/// ([`colorbar_title_lines`], and a legend's, #3129, which differ only in size).
pub(super) fn title_lines(title: &str, width: f64, pt: f64) -> Vec<String> {
let pt = pt.clamp(2.0, 400.0);
let width = width + COLORBAR_TITLE_SLACK_MM;
if !title.contains('\n') && colorbar_title_width_mm(title) <= width {
if !title.contains('\n') && title_width_mm(title, pt) <= width {
return vec![title.to_string()];
}
wrapped(title, width, COLORBAR_TITLE_PT, colorbar_title_style()).lines().map(str::to_string).collect()
wrapped(title, width, pt, colorbar_title_style()).lines().map(str::to_string).collect()
}

/// How many of a colorbar's `lines` of title it draws in an element from `top` (pixels), its
Expand Down
Loading
Loading