The sequence step (spec/04 §5.2, §7.2): a sequence diagram's participants as lanes
across and its events down, laid out by Macaw.Draw.Layout.Sequence (macaw_draw spec/08 §12) in
the plot (needs: [:frame]), for the lane, edge and node kinds.
Its input is the events, one a row in order: fields: [from, to] (["from", "to"]),
label, and kind: a message's sync, async or reply, or a note's note
(over from, or over from and to), note_left or note_right (beside from).
activate ("target" or "source") opens an activation bar on that end of a message,
deactivate closes one. The participants are the rows of the nodes slot (id,
label), else the lanes the events name in order of first appearance; a header is
header (32) tall and as wide as its label by the text estimate at font_size with
padding. participant_sep (40) and message_sep (16) reach the layout.
Outputs, each centered across the plot where it fits:
"participants":id,label,x(the lifeline), the header boxx0,x1,y0,header_y1, andy1the lifeline's end: what a verticallanedraws;"messages": the event rows that are messages, withpath,label_x,label_y, each end's place and bearing, and the marker and line their kind draws (head:arrowfor a call or a reply,openfor an async one;line:dashedfor a reply);"notes": the note rows withx,y,width,heightandshapenote;"activations":lane,depth,x,y,width,heightand an emptylabel.
A message naming no participant is {"fields", {:unknown_participant, id}}; a
deactivate with no open bar {"op", :no_activation}.
Summary
Functions
@spec phrase() :: String.t()
What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).