Reactor.Mermaid.Node (reactor v0.15.0)

View Source

A node in the mermaid graph

Summary

Functions

Render the node at the provided indent level.

Types

node_data()

@type node_data() :: node_list() | binary() | byte() | t()

node_list()

@type node_list() :: [node_data()] | node_data()

t()

@type t() :: %Reactor.Mermaid.Node{
  children: node_list(),
  id: nil | String.t(),
  post: node_list(),
  pre: node_list()
}

Functions

render(node, indent)

@spec render(t(), non_neg_integer()) :: iodata()

Render the node at the provided indent level.