Edit on the canvas

What's different about editing a sequence diagram by hand, from selecting and the selection bar to renaming and deleting.

You can build and change a sequence diagram by hand on the canvas. This page covers what's specific to sequence diagrams. For what works the same in every kind, see Edit on the canvas.

How the canvas works

The app lays out every sequence diagram for you: columns left to right, messages top to bottom. You change what's there and in what order, and the layout follows.

Every edit is a small, named change. It shows up in the version history, and you can undo it.

Pan and zoom as on any canvas. See Move around. When you pan down a long diagram, the participants' heads stay pinned along the top, so you always know which column is which.

The rest of editing has its own pages:

Select

Click an element, such as a participant, a message, a note, a fragment or a divider, to select it. Shift-click, ⌘ A (Ctrl A on Windows and Linux) and Esc work as in every kind. See Select.

To select an area, drag across empty canvas. Inside a fragment or a box counts as empty canvas. The area picks what it touches, but it picks a fragment, or a box round participants, only when it holds all of it.

The arrow keys move the selection:

  • ↑ and ↓ go through messages, notes, fragments and dividers in reading order.
  • ← and → go between participants.

Use the selection bar

When you select an element, a bar of tools floats above it. What it starts with depends on the element:

SelectedTools
ParticipantIts kind, Rename, its box (or Group in box), Add message, Colour
BoxRename, Colour
MessageIts arrow, Rename, Flip direction, Add reply, Colour
FragmentIts kind, Rename, Add else branch, Add parallel branch or Add option, Colour
NoteIts position, Edit text, Colour

Every element then has Ask assistant and Comment. The bar ends with More (⋯), or press ., as in every kind.

More also has the rarer tools:

  • Move left, Move right, Move up and Move down.
  • A message's From, To, Wrap in fragment… and Add message.
  • Add note.
  • A fragment's Rename branch.
  • Properties.

More ends with Delete, which does what ⌫ does. On a fragment, Unwrap and Remove branch come before it.

Flip direction swaps a message's sender and receiver.

With several elements selected, the bar offers Group in box for participants or Wrap in fragment… for messages. Then come Colour, Ask assistant and Comment.

Right-click an element, long-press it on a touch screen, or press ⇧ F10 for the same menu as More. On a participant's lifeline, the menu adds what happens at the row you clicked. See Add at a row.

Rename and edit notes

Double-click an element, or select it and press Enter or F2, to rename it in place. This works for participants, boxes, messages, fragments, notes, refs, dividers and delays. Press Enter to save or Esc to cancel. See Rename and style text.

What you edit depends on the element:

  • A message's text. Shift Enter starts a new line.
  • A note's or a ref's text, also with Shift Enter for a new line.
  • A fragment's first condition. To change a later branch's condition, double-click its dashed line, or use Rename branch in More.

A new element opens for naming straight away. Type and press Enter. A parallel fragment is the exception, since it has no condition to start with.

Delete

Select elements and press ⌫ (Backspace) or Delete.

  • Deleting a participant also deletes its messages.
  • Deleting a fragment deletes what's in it. To keep the messages, use Unwrap instead.
  • With a box selected, Ungroup removes the box and keeps its participants.

Read a diagram

These work in every kind. In a sequence diagram:

  • Trace from a message shows the message that caused it and the ones it causes in turn. From a participant, it starts at 1 hop, since every participant usually talks to every other.
  • Walk through steps through the messages in order. At an alt frame you pick its branch, and at an opt, break or loop you take it or skip it.
  • Detail levels fold each fragment to its header, or leave out the notes.
  • A ref frame opens the sequence diagram its first line names. Any element can link to another diagram.

Comment, ask and undo

These work as in every kind:

  • Press M to comment on the selection. See Comments.
  • Press ⌘ L to ask the assistant about it. The assistant takes "this" or "these" to mean the selection.
  • Press ⌘ Z to undo and ⇧ ⌘ Z to redo. See Undo and redo.

To change the colour of an element, see Colour. For the spacing between participants and rows, see Layout and spacing.

On this page