Macaw.Frame.Diagrams.Flowchart (macaw_frame v0.1.0)

Copy Markdown View Source

diagrams.flowchart (spec/13 §7.3): a layered DAG with routed edges in a layout frame, its nodes drawn by the node kind and its edges by the edge kind over the layered step, in the rank direction its direction parameter names. Its slots are Macaw.Frame.TextForms.Flowchart's: nodes (id, label, shape opt, group opt), edges (source, target, label, head, tail, line, each opt but the ends) and groups (subgraphs: id, label, parent opt), filled by a use site's text (flowchart LR / A[Label] --> B{Choice}) or bound to sources.

iex> Macaw.Frame.Diagrams.Flowchart.id()
"diagrams.flowchart"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixtures (spec/14 §1): a release flow left to right.

The fragment: the text form's design, its direction a parameter.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §3, §7.3): the conventions and direction.

Its slots: the flowchart text form's nodes, edges and groups.

The parameters a read text sets: its header's direction.

Its text form (spec/13 §7.3).

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixtures (spec/14 §1): a release flow left to right.

fragment()

@spec fragment() :: map()

The fragment: the text form's design, its direction a parameter.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §3, §7.3): the conventions and direction.

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slots: the flowchart text form's nodes, edges and groups.

text_bind(arg1)

@spec text_bind(map()) :: %{required(String.t()) => term()}

The parameters a read text sets: its header's direction.

text_form()

@spec text_form() :: module()

Its text form (spec/13 §7.3).