Boxart.Render.Sequence (Boxart v0.3.1)

Copy Markdown View Source

Renderer for sequence diagrams.

Draws participants as boxes at the top, vertical lifelines, horizontal message arrows between them, activation boxes, interaction blocks (loop/alt/opt/par), and notes.

Uses Boxart.Canvas for all drawing operations.

Summary

Functions

Renders a SequenceDiagram to a string.

Renders a SequenceDiagram to a Boxart.Canvas.

Types

arrow_type()

@type arrow_type() :: :arrow | :open | :cross | :async

event()

line_type()

@type line_type() :: :solid | :dotted

participant_type()

@type participant_type() :: :participant | :actor

Functions

render(diagram, opts \\ [])

Renders a SequenceDiagram to a string.

Options

  • :charset:unicode (default) or :ascii
  • :padding_x — horizontal padding inside participant boxes (default: 4)
  • :gap — minimum gap between participant centers (default: 16)

render_canvas(diagram, opts \\ [])

Renders a SequenceDiagram to a Boxart.Canvas.