v3.2.0
2026-12-01 · GitHub release · Diff
Colors written in a map win over theme palettes again, a line’s color is optional and can differ between light and dark mode, and hand edits in the playground behave predictably around section boxes and the canvas.
Line colors: the map wins, and colors are optional
Section titled “Line colors: the map wins, and colors are optional”A color in a %%metro line: directive is kept under every theme.
A line with no color takes the theme’s palette, in declaration order.
This restores the 2.x behavior: 3.0.0 let a theme’s line_colors replace a map’s own colors (london-tube and the other palette themes), and 3.1.0 did the same for seqera.
The color field is optional, and can be a light and dark pair:
%%metro line: rna | RNA-seq%%metro line: dna | DNA-seq | #0570b0, #7ab8e6%%metro line: qc | QC | light-dark(#2db572, #6fdc9f) | dashed%%metro line: alt | Alternative | dotted | inactiveFields after the name are read by what they contain: solid, dashed or dotted is the style, inactive is the state, an empty field is skipped, and anything else is the color.
Every earlier form parses as before.
A misspelt keyword gets a did-you-mean, and a color the parser cannot read leaves the line to the theme.
In dark mode, a single pinned color too dark to read against the background (below 3:1 contrast) is lightened to reach it; a pair is used as written.
Every built-in theme, including default and transparent, now has a palette.
If your map sets a color on every line and you want a theme’s colors, remove the colors from the lines. In the playground, Map settings → Line colours → ↺ Reset all does that in one undoable edit, and the hint under the theme picker offers the same.
Other color changes:
%%metro theme:is the documented spelling of the theme directive;%%metro style:keeps working.nf-metro validatenotes lines whose own color differs from the theme’s palette (not counted by--strict).nf-metro inforeports each line’s resolved light and dark color and whether it is pinned.nf-metro convertwrites lines without colors, so converted maps take the theme’s palette.
Hand edits around boxes and the canvas
Section titled “Hand edits around boxes and the canvas”Lines between sections now follow the boxes beside them. Moving or resizing a section re-centres the corridors in its gaps and keeps them clear of its edges, as the engine draws them; a box grown over a corridor pushes it out. A corridor you have dragged into place keeps its spot unless a box edge comes too close.
Dragging lines is more predictable:
- Dragging the run off a hidden fork junction no longer drags the junction away from its section; the line leaves it through a jog.
- A dragged bundle keeps its lane order through every turn.
- A run can be dragged past its corners, a step of more than a row between sections is drawn as a riser rather than a long diagonal, and a drop just off a corner’s level snaps level with it.
- Free edit no longer refuses a node dropped onto another one.
Fit canvas now trims the canvas once. The fit is stored as the window the SVG shows, so drags, Reset and the section position panel all work on the same coordinates after a fit, and the canvas grows on any side to keep the map in view. Maps saved with the earlier fit still draw exactly as before.
Embedding
Section titled “Embedding”A map with a fitted canvas has a viewBox that may not start at 0 0.
The manifest carries the window’s origin as optional top-level x and y (0 when absent), and overlay_svg() uses them, so progress overlays still line up.
Unedited maps are unchanged.
Known issues
Section titled “Known issues”variant_calling: excess column gaps in the layout (#1863).variantbenchmarking: thesv_statslabel is nudged to clearbcftools_stats(#1863).legend_combo: the “Somatic Calling” label is nudged to clear an adjacent label (#1863).