Skip to content

3.3.0 - Free edit: port sides, section turns, label side

Latest

Choose a tag to compare

@pinin4fjords pinin4fjords released this 03 Dec 08:27
d4385f1

Hand edits in the playground now survive the rearrangements a real map needs: ports can move to another side of their box, a section can be turned, and a station label can flip above or below its marker.

Moving ports and turning sections

A port dragged onto another side of its box moves there.
The editor snaps it onto the nearest edge of its own box and previews the change.
Inner lanes meet the new side square with a full turn, and the outer route leaves outward and goes round boxes and section titles.
Ports keep off station rows, and a box too shallow for the turn grows on that side.

Moving or resizing a box re-sides ports that end up facing away, and ports on a dragged edge travel with it.

Changing a section's %%metro direction: now carries its hand edits onto the turned layout.
The turned box keeps its place, stays clear of the corridors around it, and keeps the traveller's left and right.

A new label_side edit flips a station label above or below its marker.
nf-metro check-edits reports it as match or differs.

Saner drags and smaller saves

  • A moved or resized section edge locks onto the edge of another section within a few screen pixels of the cursor, even off the grid.
  • Straight lines beat edge locks, and resize locks respect the section's minimum size.
  • Saving, copying or sharing a map drops the hand edits the rest of the changeset already draws, so the %%metro edits: line is shorter. Undo is unaffected, and edits whose target is missing are kept.
  • An engine-placed legend moves clear when edited lines run under it.

Playground

  • A map link skips the welcome dialog.
  • SVG logos are refused with a message, because the renderer cannot read them (#2251).
  • A failed render states its cause over the canvas, and diagnostics can be dismissed.
  • Reset restores the map as opened.
  • A Logo scale control sets the logo size.
  • A grid drop that would break the flow is undone.

Known issues

  • variant_calling: excess column gaps in the layout (#1863).
  • variantbenchmarking: the sv_stats label is nudged to clear bcftools_stats (#1863).
  • legend_combo: the "Somatic Calling" label is nudged to clear an adjacent label (#1863).