DOT (Graphviz) rendering for Choreo.FSM state-machine diagrams.
Produces classic state-machine visualisation:
- Normal states — filled circles
- Initial states — filled circles with a black entry-point dot
- Final states — double circles
- Transitions — labeled arrows
- Layout is left-to-right by default
Themes
:default— light grey states, dark text, left-to-right:dark— dark background, neon accentsChoreo.Themestruct — full custom control
Summary
Functions
Renders an FSM to a DOT string.
Functions
@spec to_dot( Choreo.FSM.t(), keyword() ) :: String.t()
Renders an FSM to a DOT string.
Options
:theme—:default,:dark, or aChoreo.Themestruct
Examples
iex> fsm = Choreo.FSM.new() |> Choreo.FSM.add_state(:a)
iex> dot = Choreo.FSM.Render.DOT.to_dot(fsm)
iex> String.contains?(dot, "digraph")
true
iex> String.contains?(dot, "rankdir=LR")
true
iex> String.contains?(dot, "a")
true