Reactor.Mermaid behaviour (reactor v0.15.2)
View SourceConverts Reactors and their related entities into a Mermaid diagram.
See Mermaid for more information.
Summary
Types
@type options() :: Keyword.t()
Callbacks
@callback to_mermaid(module() | struct(), options()) :: {:ok, Reactor.Mermaid.Node.t()} | {:error, any()}
Functions
Convert the Reactor into Mermaid.
Options
:expand?(boolean/0) - Whether or not to expand composed Reactors The default value isfalse.:describe?(boolean/0) - Whether or not to include descriptions, if available The default value isfalse.:direction- The direction to render the flowchart Valid values are :top_to_bottom, :bottom_to_top, :right_to_left, :left_to_right The default value is:left_to_right.:indent(non_neg_integer/0) - How much to indent the resulting mermaid The default value is0.:output- Specify the output format.iodatais more performant Valid values are :iodata, :binary The default value is:iodata.
Convert the Reactor into Mermaid
Raising version of to_mermaid/2