v3.1.0
2026-11-30 · GitHub release · Diff
The playground gets a Free edit mode, and the hand edits you make there can now live in the map file and render from the CLI and the docs site.
Free edit in the playground
Section titled “Free edit in the playground”Drag section boxes, stations, ports, junctions, the legend and any stretch of line, and reorder the lanes of a bundle, without changing the source.
Edits keep the map’s rules: 45-degree angles, parallel bundles and symmetric fans.
Fit box to content, Fit all boxes and Fit canvas tidy the result, and Engine layout (E) flips to the map without your edits and back.
Edits survive theme changes and changes elsewhere in the source, such as a new section or line, because synthetic nodes are now named by what they are.
In Select mode you can also drag a section to another grid cell (or onto an occupied one to swap) and drag its right or bottom edge to set its span.
Each drag writes a %%metro grid: directive.
Lines can be dragged into a new order from a selected line or Map settings, which reorders the %%metro line: directives.
The layout around the map changed too: one editing toolbar above the map, map settings in the side panel, Save and Export menus, a help dialog (?), a full window mode (⤢, or ?full=1 in the link), and a command palette (Ctrl/Cmd + K) that lists every station and section.
Share links restore the map faithfully, and ?mode=free-edit opens the playground straight into an edit mode.
Hand edits in the map
Section titled “Hand edits in the map”Save → Map + edits writes the edits as one %%metro edits: line at the end of the map.
nf-metro render, render-many and the docs site’s <Metro> embeds apply them with no extra options, and Open reads them back.
An embed of a map with edits adds a Without edits tab to compare against the engine’s own layout.
New CLI options work with edits files and edits lines:
nf-metro render map.edits.jsonrenders an edits file.nf-metro render --edits FILEapplies one to a map, and--no-edits(no_editsinrender-many) ignores the map’s own edits line.nf-metro check-edits FILEreports which edits the engine reproduces, from an edits file or a map with a%%metro edits:line.
Save → Hand edits report writes one .edits.json file with the map, its net edits, both layouts and any uploaded logos, to attach to a layout report.
Routing and themes
Section titled “Routing and themes”- An edge that skips a station gets one chained bypass path with one helper per skipped column, and edges of a line that skip the same station share one loop (#2234).
- The
seqeratheme follows the 2026 Seqera brand manual: Nextflow green and deep purple, with a brand-only line palette and a readable dark-mode badge (#2216). - On the docs site, each embedded map has its own SVG class prefix, so maps with different palettes on one page no longer override each other’s colours (#2217).
- Drawn routes carry
data-route-id(<source>-><target>:<line>), and the driver contract is now1.1.
Playground fixes
Section titled “Playground fixes”Lane swatches use the colours the map draws. A burst of edits runs one render at a time, and a failed render offers Retry. Opening a share link keeps the draft it replaces in Recent, and a malformed link says so instead of stopping the page. Dialogs are native modal dialogs, the line picker works from the keyboard, and form fields meet WCAG contrast. Touch scrolling works, and the zoom controls are no longer hidden behind the side panel. The runtime no longer waits on PyPI to start, and the page loads under a Content Security Policy.
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).