The frame's spatial steps (spec/04 §7.2, spec/05 §5.3): Macaw.Data.Transform members
of Macaw.Frame.Package that read the plot, the projection or a layout, so each
declares what it needs (needs/0) and is unreachable from a derived source, which has
no frame (spec/04 §7.1).
| Step | Module | Needs |
|---|---|---|
tree, cluster, pack, partition, treemap | Tree, Cluster, Pack, Partition, Treemap | [:frame] |
chord, sankey, force | Chord, Sankey, Force (with prepare/3) | [:frame] |
contour, density_2d, hexbin, delaunay, voronoi | Contour, Density, Hexbin, Delaunay, Voronoi | [:frame] |
projection | Projection | [:projection] |
parallel, funnel (the second cut's charts, §5.1) | Parallel, Funnel | [:frame] |
point_cluster (the second cut's marker clustering, §5.3) | PointCluster | [:frame, :projection] |
layered, swimlanes, sequence, gantt, radial (the second cut's diagram layouts, §5.2) | Layered, Swimlanes, Sequence, Gantt, Radial | [:frame] |
Every step reads and answers a Macaw.Data.Table; its options are declared Options;
the columns it adds are strings; a path column is :term holding
Macaw.Draw.IR.Paths; its outputs/2 names the columns run/3 answers, in order and
of their types. It calls the layouts and geo algorithms of Macaw.Draw and computes no
statistic of its own.
Faults are values. What a node's declaration can refuse is refused by
Macaw.Data.Operations.validate/3. What only the data can show (a cycle in a
hierarchy, a flow naming a node the nodes table lacks) run/3 answers as
{:error, {key, reason}}, which Macaw.Data.Operations.apply/4 places at the step's
index: {[i, "by"], {:hierarchy, reason}}, {[i, "fields"], {:unknown_node, id}}. A
step never raises.
This module holds what the steps share: all/0 and the column helpers.
Summary
Functions
@spec all() :: [module()]
Every spatial step's module, in spec/04 §7.1's order.