Snapping and the grid

Two kinds of snap — connector snap and grid snap — and when each one wins.

The planner has two snapping behaviours. Connector snap is always on; grid snap is off until you turn it on. They don't fight each other — connector snap takes priority whenever the cursor is near a free end.

Connector snap

#

When the cursor is on a free connector of an existing piece (an open end), the ghost snaps on there by its first connector, carrying the track on, however long the piece is. Bringing one of the ghost's own ends to a free connector snaps it too, and when the cursor is on one end while the ghost's own end reaches another, the end under the cursor wins. Either way the ghost rotates so the two connectors mate end-to-end. Two connectors mate when:

  1. They face each other (their headings differ by exactly 180°), and
  2. Their connector_type strings match exactly (no fuzzy matching across track systems).

If a snap looks wrong, check both conditions. The most common case is mismatched connector types — Hornby Setrack and Jouef look similar but their geometry differs, and the planner won't pretend otherwise. Use a transition piece if you need to bridge two systems.

Grid snap

#

When the ghost isn't near a free connector, it falls back to grid snap. The grid is set per layout (typically 10 mm or 25 mm in true millimetres) and the ghost rounds its position to the nearest grid intersection. The same applies when you drag a piece that's already placed: if it doesn't snap to a connector, its position rounds to the grid (the rest of the group moving with it).

Turn grid snap on or off with Snap to grid in the options bar (it's there for the Select, Place, Measure, Annotate and Boards tools) or Track → Snap to grid; the button names the step on hover. Layout settings changes the step: whole millimetres from 10 to 1000, so a decimal rounds to the nearest one and 12.5 mm is stored as 13 mm. Anything outside that range, or an empty field, is dropped and the field goes back to the step you had. In inches, the field keeps what you typed, though the step is still whole millimetres: 1 in is stored as 25 mm, a shade under a true inch. After a reload, what you typed has gone, so the field reads the roundest inch value that stores those millimetres. Whole inches, tenths and quarters come back as you typed them, and anything else can come back a few hundredths off, so 3.14 in, stored as 80 mm, reads 3.15 in. Editor defaults in the planner app's Profile, or Planner preferences in the Planner section of your account on the website, sets the step for any layout that hasn't got its own, and takes the same values. The website's field is always in millimetres. When it's off, the ghost follows the cursor pixel-precisely. The grid lines themselves stay visible either way — they're a visual reference — and Grid at the top right of the canvas hides or shows them.

The infinite grid

#

The grid is rendered as an infinite plane in 2D mode. Pan as far as you want — the grid keeps drawing. There's no "edge of the canvas". The minimap and home chevron will help you find your way back to your layout if you wander.

The grid spacing adapts to your zoom so the lines stay a legible size on screen. At normal zoom it's the familiar 100 mm cell with a bolder line every 500 mm; as you zoom in the spacing steps down — 50, 20, 10, 5, 2 mm — to a 1 mm graph-paper grid up close, and coarser as you zoom out. Zoom is bounded to that range — out until the 10 m grid appears, in until the 1 mm grid — so the view doesn't scroll endlessly into empty space. It's a visual aid only; it doesn't change where pieces snap (that's set by the grid snap step).

A scale bar in the bottom-left corner reads the current zoom as a round real-world distance (mm / cm / m), like the scale on a map — handy for eyeballing how much room a run of track will take. For exact numbers, turn on the rulers (⌥R) or use the Measure tool (M) — see Measuring distances and rulers.