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

Copy Markdown View Source

diagrams.gantt (spec/13 §7.3): a Gantt time grid over swimlanes: tasks as bars in their sections, milestones as diamonds, dependencies routed, in a layout frame over the gantt step. Its slots are Macaw.Frame.TextForms.Gantt's: tasks (id, label, section, from, to, duration, after, state, each opt but the label), filled by a use site's text (gantt / section A / Task :a1, 2026-01-01, 3d) or bound to sources.

iex> Macaw.Frame.Diagrams.Gantt.id()
"diagrams.gantt"

Summary

Functions

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

Its fixtures (spec/14 §1): a release plan.

The fragment: the text form's design.

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 a diagram takes, its margin leaving room right of the time axis's last tick for its label and a milestone at the end.

Its slots: the text form's.

The parameters a read text sets: its title.

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 plan.

fragment()

@spec fragment() :: map()

The fragment: the text form's design.

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 a diagram takes, its margin leaving room right of the time axis's last tick for its label and a milestone at the end.

slots()

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

Its slots: the text form's.

text_bind(arg1)

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

The parameters a read text sets: its title.

text_form()

@spec text_form() :: module()

Its text form (spec/13 §7.3).