Smart guides
Smart guides line things up while you work. When the item you drag comes close to lining up with another item, or to matching the spacing between two others, it snaps into place and a guide line shows what it matched. Guides also appear while you nudge with the arrow keys and while you drag out a new shape or text box.
Turning guides on and off
Section titled “Turning guides on and off”To turn smart guides on or off, choose View > Smart Guides, click the Smart Guides button in the action bar, or press Ctrl+;. They are on by default, and the setting is remembered in your browser.
Turning guides off also turns off the 15° angle snap of the Bond tool (see Bond tool). When the grid is on with snapping enabled, the grid places the item instead of smart guides; see Grid settings.
What lines up with what
Section titled “What lines up with what”While you drag, the edges and center of the dragged item are compared with the items around it. Lines pair only like with like:
- Box edges line up with box edges, and centers with centers.
- A line of text lines up with the same line of other text: baseline with baseline. Cap-height, x-height, and descender lines pair only between text of the same size.
- A molecule’s center line lines up with another molecule’s center line.
- Atoms of another molecule line up only with the atom you grabbed to start the drag.
- An arrow offers its middle and its two ends, not the box around its arrowhead.
A group you are not dragging counts as one block, measured by its outline, so its members do not offer lines of their own. A group you drag also moves as one block. Inside a group you have entered, the members are separate again.
Which items count
Section titled “Which items count”Only items that are on screen count. If you pan, or the canvas scrolls during the drag, the items that come into view count instead. To narrow the field, zoom in.
A guide takes hold when an item is within a few pixels of lining up. Items far away on the screen pull more weakly: a far item still lines up when you are nearly there, but it does not take over the drag from a distance.
Once a match has taken hold, it is kept until a clearly better one comes along, so the guides do not flicker as you move.
Which match wins
Section titled “Which match wins”Each direction (sideways and up-down) shows at most one guide. When several matches are in reach, the first of these wins:
- Text beside an arrow end: text dragged near the end of an arrow settles beside it at a standard gap. This works when the arrow, extended past its end, would pass through the text.
- Bond length: when you drag an atom, its bond snaps to the drawn length of a neighboring bond in the chain.
- Equal spacing.
- The standard gap between two boxes.
- Plain alignment of edges, centers, and text lines.
Reading a guide
Section titled “Reading a guide”A guide line runs only between the dragged item and the item it matched, and the matched item is outlined with a thin dashed box (or a ring around a matched atom). When the match is a line of text, the guide is labeled with its name, such as “baseline”. An open circle marks the dragged item’s end of the guide, and filled chevrons mark the matched item’s end; a circled plus marks a match on a text line or a molecule’s center line. A guide cut off by the edge of the view ends in a short tick. On release, the guides flash briefly to confirm the snap.
Equal spacing
Section titled “Equal spacing”When the gap between the dragged item and a neighbor can match a gap between two other items in the same row or column, the item snaps to make the gaps equal, and labels show the gap distance. A long chain of equal gaps shows its three nearest gaps, with a ”× N” count for the whole chain.
Equal spacing has its own limits:
- Only items on screen count.
- A gap wider than a third of the visible width (or height, for a column) is not treated as a gap.
- Gaps between the items you are not dragging count as equal only when they match to the pixel, so the spacing does not drift along a long row.
- Only the chain the item snaps to shows its gap labels.
Dragging several items
Section titled “Dragging several items”When you drag several items at once (two molecules, or a molecule and its caption), each item is compared with its neighbors by the same rules as a single item, and one match wins per direction. Its guide runs from the item that matched.
Dragging a named-selection box
Section titled “Dragging a named-selection box”When you drag a named selection’s box by its border, the box lines up by its outline with the other named-selection boxes on screen: edges, centers, and equal spacing, so you can set one box squarely under or beside another. Each other box counts as one block, so the molecules and labels inside it offer no lines of their own while you drag a box. Other drags (a molecule or a label on its own) do not line up with box edges.
Guides while nudging
Section titled “Guides while nudging”After each arrow-key nudge, the guides the selection lines up with exactly are shown. A nudge never snaps: each press moves 1 canvas unit (1 screen pixel at 100% zoom), 10 units with Shift, or 1 screen pixel with Ctrl+Shift. The guides clear 0.7 seconds after the last key.
Guides while drawing a shape or text box
Section titled “Guides while drawing a shape or text box”When you drag out a new shape with the Shape tool, or a text box with the Text tool, the moving corner snaps to other items’ edges and centers: sideways to their left, right, and middle lines, and up and down to their top, bottom, and middle lines.
The point where you pressed does not snap, and neither does a click. With the Shape tool, the corner snaps only once you have dragged a few pixels, so a click still makes a default-size shape. With Shift held for a square or circle, only the side that sets the size snaps. With the Text tool, a plain click places text where you click, without snapping; a dragged text box snaps once it is big enough to be a box.
To draw without snapping, hold Ctrl. With grid snap on, the grid places the shape instead. With the Shape tool, Alt still draws from the center.
Moving without snapping
Section titled “Moving without snapping”| While dragging | Effect |
|---|---|
| Alt | Turns off every snap, guides and grid alike. A text box or shape you drag also pulls free of the arrows drawn from it: the arrows stay where they are, and on release they let go of it. To keep the arrows attached, release Alt before the mouse button. One undo puts back both the move and the attachment. |
| Ctrl | Turns off every snap and keeps attached arrows attached, so they follow the item. |
For atoms, Ctrl also turns on merging and fusing; see Select tool.