Macaw.Draw.Layout.Sequence.Result (macaw_draw v0.1.0)

Copy Markdown View Source

A sequence diagram (spec/08 §12.5), as Macaw.Draw.Layout.Sequence.generate/3 answers it, every record's index (or row) the event it came from:

  • participants: %{id, row, x, header: {x0, y0, x1, y1}, footer, lifeline: {y0, y1}} in lane order, footer the mirrored box or nil;
  • messages: %{index, from, to, kind, x0, x1, y, path, label, end_angle}, path the arrow's Macaw.Draw.IR.Path (a three-segment loop for a self-message), label its label's center or nil;
  • activations: %{row, lane, depth, x0, y0, x1, y1};
  • notes: %{index, placement, lanes, x0, y0, x1, y1};
  • fragments: %{index, kind, depth, x0, y0, x1, y1, sections: [y], label}, label the label's center;
  • destroys: %{index, lane, x, y, path};
  • width and height.

Summary

Types

t()

@type t() :: %Macaw.Draw.Layout.Sequence.Result{
  activations: [map()],
  destroys: [map()],
  fragments: [map()],
  height: number(),
  messages: [map()],
  notes: [map()],
  participants: [map()],
  width: number()
}