Modules
The Frame (spec/01 §1): one visual, which every chart, map and diagram is. It draws one frame document (spec/02), whose frames, each a coordinate model with its layers, axes and legend, share one text summary and one keyboard reach.
The benchmark harness (spec/12 §6), the core of visualize's Visualize.Benchmark:
what the gates count, measured in time and bytes, so a person can see the trade between
targets. It reads a clock only through its clock: option, so a fake clock makes it
deterministic (visualize D-39).
The Frame's budget/3 and budget/4 (spec/05 §2): each slot's rows from the pixels its
layers are drawn in, copied from visualize's Visualize.Board.Budget.slot/5 (its
feeds/5 and slots/6, a board's pooling, are the host's here and not carried over).
Catalog fragments (spec/13 §1): a ready-made frame document, or a ready-made set of
layers, registered under an id so a page places a line chart or a sankey diagram without
writing one. Copied from visualize's Visualize.Chart.Presets (names/0, defaults/1,
design/2); its assign mapping sources/2 is not carried over: the data reaches the
Frame through slots bound to sources, the size is the Frame's and colors are theme
roles.
The catalog store (spec/13 §1.3): a registry's catalog modules as a read-only
Macaw.Layers.Store of frame document fragments, its context the registry
(%{id => module}, Macaw.Frame.Catalog.registry/1). Reach it through
Macaw.Frame.Catalog.store/1.
charts.area (spec/13 §4.2): a filled area to the clamped zero baseline under its edge
line, per series, both broken at the same gaps. Copied from visualize's
Visualize.Chart.Presets.area_chart/1.
charts.bar (spec/13 §4.4): one bar per category from zero to its value, down from zero
for a negative value, with an optional label of the value past each bar's end. Copied
from visualize's Visualize.Chart.Presets.bar_chart/1: its accessors are the slot's
roles, its fill the theme's series_1.
charts.boxplot (spec/13 §7.1), a second-cut chart: a box per category from its first
to its third quartile, the median across it and whiskers to its least and greatest
readings within the fences, with the readings beyond as points. Every number is
macaw_data's (macaw_data#336): aggregate(fn: ["box", "min", "max"], by: category)
writes the quartiles, the whiskers' ends and the extremes as packed float64 columns,
and the outliers step keeps each reading beyond its group's fences as its own input
row. The box kind draws the summary and a symbol layer the outliers; the frame
computes no statistic. New in the second cut.
charts.bubble (spec/13 §4.8): charts.scatter with each circle sized through a sqrt
size scale, drawn largest first so small bubbles stay visible, and labeled where a label
fits. Copied from the gallery's Examples.Charts.BubbleChart
(examples/lib/examples/charts/bubble_chart.ex).
charts.bullet (spec/13 §7.1), a second-cut chart: the newest row's value as a bar
over its qualitative ranges (a many role, each a range's bound) shaded in the
theme's grid, with a rule-like mark at its target. Each range is a translucent
rect from the poor end of the measure to its bound, so where ranges overlap the shade
deepens: the poorest range is the darkest. polarity says which end is poor:
"higher_is_better" shades from the measure's zero, "lower_is_better" from its far
end. The ranges are a fold of their fields (macaw_data's), the newest row a take;
the frame computes nothing. The target is a segment across the middle of the bar's
band, so it stands out of the value's bar. New in the second cut.
charts.calendar_heatmap (spec/13 §7.1), a second-cut chart: a cell per day, its column
the day's week and its row its weekday, its color its value through a sequential or
diverging scale, each month outlined. The calendar parts are macaw_data's time_parts
operation (macaw_data#309, #336) over the day window field: week, weekday and
month, the weeks and weekdays starting on week_start ("monday"), never the
frame's arithmetic. New in the second cut.
charts.candlestick (spec/13 §7.1), a second-cut chart: a candle per interval, its body
from the interval's first price to its last and its wick from the least to the greatest.
The candles are macaw_data's (macaw_data#336): the bucket step adds each reading's
interval start over the t window field, and aggregate(fn: ["first", "max", "min", "last"], by: "bucket") makes one row an interval holding its open, high, low and close.
The candle kind draws them, a rise in the theme's good and a fall in its bad, each
with its glyph; style: "ohlc" draws ticks instead of bodies. The frame computes no
statistic. New in the second cut.
charts.chord (spec/13 §5.6): the groups' arcs on a ring and the ribbons ending on its
inner edge at the groups' angles about one center, groups labeled outward, named a
chord diagram. Copied from the gallery's Examples.Charts.ChordDiagram
(examples/lib/examples/charts/chord_diagram.ex). Its arcs are the chord step's own
sector paths, so groups and ribbons share the step's one center and radius.
charts.density (spec/13 §7.1), a second-cut chart: a kernel density estimate of a
number's readings, one filled area per series. The estimate is macaw_data's density
operation (macaw_data#309), grouped by series when it is bound, never the frame's:
the area reads its value and density columns as x and y. New in the second cut.
charts.dumbbell (spec/13 §7.1), a second-cut chart: each category's from and to
readings as two circles joined by a segment, on a band per category. orientation
lays the categories down the left ("horizontal", the readings along x) or along the
bottom ("vertical"). It needs no statistic. New in the second cut.
charts.error_bars (spec/13 §7.1), a second-cut chart: an error bar per row from its
lo to its hi (the interval kind) and a point at its value (a symbol), colored
by an optional series. It needs no statistic: the bounds are the rows' own. The
orientation parameter lays the bars "vertical" (a band or a number along x) or
"horizontal" (x along y, the bounds along x). New in the second cut.
charts.force_graph (spec/13 §5.7): one force layout per realization shared by the
links and the nodes (the step's prepare/3), warm across deliveries and cold in a
printout, links ending at their nodes, contrast labels hidden where they don't fit.
Copied from the gallery's Examples.Charts.ForceGraph
(examples/lib/examples/charts/force_graph.ex). Its nodes are the flows' distinct ids,
drawn in the first series color: the optional nodes slot and its group, which would
color them by group, are not read.
charts.funnel (spec/13 §7.1), a second-cut chart: a stage per row, in the rows' order,
a bar centered across the plot whose width is its value's share of the greatest stage,
at least neck of the plot, labeled with its conversion share of the first stage. The
widths and shares are the funnel spatial step's (Macaw.Frame.Transforms.Funnel, over
macaw_data's max), a frame concern; the bars are rects at its pixel edges along x
and a band per stage along y. New in the second cut.
charts.gauge (spec/13 §4.10): three status zones with their glyphs, a fill to the
reading and a needle at the newest row over the sweep, the reading labeled with its
unit; polarity reverses the zones. Copied from the gallery's Examples.Charts.GaugeChart
(examples/lib/examples/charts/gauge_chart.ex). The zones come from the parameters, not
a slot: each is a rect at constant edges over the slot's newest row, its role's glyph
written as its label at its middle, so the zones read in grayscale.
charts.grouped_bar (spec/13 §4.4): each series' bar placed inside its category's band
by an x_offset band over the series, colored by series. Copied from the gallery's
Examples.Charts.GroupedBarChart (examples/lib/examples/charts/grouped_bar_chart.ex).
charts.heatmap (spec/13 §4.9): a cell per row colored through a sequential or
diverging scale, over band or continuous x, its legend titled on top. Copied from the
gallery's Examples.Charts.Heatmap (examples/lib/examples/charts/heatmap.ex); whether
x is a band or continuous with x_end is the x_scale parameter, since a fragment
cannot read its bindings.
charts.horizontal_bar (spec/13 §4.4): charts.bar turned on its side, the categories
on a band y reading top to bottom and the values along x from zero. Copied from
visualize's Visualize.Chart.Presets.horizontal_bar_chart/1.
charts.line (spec/13 §4.1): one line per series through the x scale its x_scale
parameter names, points on demand, axis titles when given, and a legend only from two
series. Copied from visualize's Visualize.Chart.Presets.line_chart/1 and
Visualize.Components.line_chart/1: the x scale its first datum chose is the
x_scale parameter, its accessors a slot's roles, its colors theme roles.
charts.pack (spec/13 §5.4): translucent group circles and branch-colored leaves,
labels hidden where they don't fit. Copied from the gallery's
Examples.Charts.CirclePacking (examples/lib/examples/charts/circle_packing.ex).
charts.parallel (spec/13 §7.1), a second-cut chart: parallel coordinates, a polyline
per row through its dimensions (a many role), each dimension a band along x with
its own scale up y. The rows are folded long by macaw_data's fold, and the parallel
spatial step (Macaw.Frame.Transforms.Parallel) places each reading through its
dimension's scale, its domain the dimension's extent (macaw_data's), or with
normalize: "zero" that extent widened to zero; the polyline kind draws one line per
row's declared identity. normalize applies to every dimension: the step takes one
(decision, macaw_frame#89). New in the second cut.
charts.partition (spec/13 §5.3): a sunburst of arcs on the partition's own angles and
radii, or an icicle of rects, below the root and only positive values, with truncated
contrast labels. shape chooses the frame's model (polar for the sunburst, cartesian
over the unit square for the icicle) and which of the two layers draws (spec/02 §7.5). Copied from visualize's
Visualize.Chart.Presets.sunburst_chart/1.
charts.percentile_band (spec/13 §4.12): the outer and inner bands and the median of a
latency over time, broken at gaps, a dashed bad rule at the target when given, and
median points colored by which side of the target they are on under the polarity.
Copied from the gallery's board demo latency design (Examples.BoardDemo,
examples/lib/examples/board_demo/latency.ex).
charts.pie (spec/13 §4.5): a pie, or a donut through inner, over its values with the
pad angle, a ring from inner to the outer radius, contrast labels hidden where they
don't fit, and a center text in a donut. Copied from visualize's
Visualize.Chart.Presets.pie_chart/1 and the gallery's Examples.Charts.DonutChart
(examples/lib/examples/charts/donut_chart.ex); the preset's outer radius R − 10 is
the frame's margin of 10.
charts.radar (spec/13 §4.11): each series as a closed polygon of chords over the
spokes with its translucent volume beneath, rings and spokes as its grid. Copied from
the gallery's Examples.Charts.RadarChart (examples/lib/examples/charts/radar_chart.ex).
charts.ridgeline (spec/13 §7.1), a second-cut chart: a density per series, each a ridge
on its own baseline, the ridges stacked down the plot and overlapping by overlap. The
estimate is macaw_data's density operation grouped by series (macaw_data#309), never
the frame's. The baselines are a frame concern: the ridge spatial step places each
series on a band scale down the plot's height, the series its domain, and writes each
row's baseline pixel and its top, the baseline less the density scaled so the
greatest density spans 1 + overlap bands (decision, macaw_frame#96). An area draws
each ridge from y0 its baseline to y its top, and a text names each ridge at the
left of its baseline. The x axis is the readings'; the y axis is the ridges', so it
draws none. New in the second cut.
charts.rose (spec/13 §4.6): one petal per category around a full turn out to its value,
colored by value or by category, with radial outward labels kept inside the plot by the
polar ring rule. Copied from the gallery's Examples.Charts.RadialBarChart
(examples/lib/examples/charts/radial_bar_chart.ex).
charts.sankey (spec/13 §5.5): ribbons colored by their source under the node rects,
each node labeled outside its rect toward the nearer edge. Copied from the gallery's
Examples.Charts.SankeyDiagram (examples/lib/examples/charts/sankey_diagram.ex).
Nodes are the flows' distinct ids, labeled by id (spec/13 §5: the nodes slot is
optional and this fragment reads links alone).
charts.scatter (spec/13 §4.7): a circle per row colored by its series, a legend from
two series. Copied from visualize's Visualize.Chart.Presets.scatter_plot/1; its x
scale is the x_scale parameter, since a fragment cannot read its data (spec/13
decisions).
charts.slope (spec/13 §7.1), a second-cut chart: an entity's before and after
readings joined by a segment across two band columns, before on the left and after
on the right, with a text at each end. Each row's two readings are moved under their
columns by two macaw_data folds (before to k0 and v0, after to k1 and v1),
so a segment reads both ends from one row and the column bands are named by the roles;
the frame computes nothing. A segment that rises is drawn in its series color, as one
that falls: color is the entity's. New in the second cut.
charts.sparkline (spec/13 §4.14): the Sparkline component's document
(Macaw.Frame.Sparkline, spec/01 §6): a furnitureless line with an optional area under
it, a dot at the newest reading and a rule at the field's declared target, broken at
gaps, named by the bound field's label and summarized by its first, last, least and
greatest readings.
charts.stacked_area (spec/13 §4.3): the many values role stacked by macaw_data's
stack and one area per key between its y0 and y1; offset and order reach the
step, and under silhouette or wiggle it is a streamgraph. Copied from the gallery's
Examples.Charts.StackedAreaChart (examples/lib/examples/charts/stacked_area_chart.ex).
charts.stacked_bar (spec/13 §4.4): the many values role stacked by macaw_data's
stack, one segment per key in each category's bar, a legend of the keys. Copied from
visualize's Visualize.Chart.Presets.stacked_bar_chart/1.
charts.status_timeline (spec/13 §4.13): a stretch per row at its entity, colored by
its state's declared role, a legend listing every declared state by name, and a brush
on x writing the window. Its state field must declare its values and status, so
its legend and colors come from the source's meaning: one that does not is {:requires, "state", :values} at the binding. Copied from the gallery's board demo status design
(Examples.BoardDemo, examples/lib/examples/board_demo/status.ex).
charts.tree (spec/13 §5.1): a tree or a cluster (a dendrogram) laid out in either
orientation, its links curved, elbowed or straight, internal nodes filled, leaves
labeled outward. Copied from visualize's Visualize.Chart.Presets.tree_diagram/1 and
Visualize.Components.Tree, and the gallery's Examples.Charts.ClusterDendrogram
(examples/lib/examples/charts/cluster_dendrogram.ex): a layout frame whose layers lay
out the nodes slot by the tree or cluster step.
charts.treemap (spec/13 §5.2): the leaves tiled by value with padding and the tile
method, each colored by its branch, contrast labels truncated to their cells. Copied
from visualize's Visualize.Chart.Presets.treemap_chart/1.
charts.violin (spec/13 §7.1), a second-cut chart: a violin per category, the mirrored
kernel density estimate of its readings. The estimate is macaw_data's density
operation grouped by category (macaw_data#309), drawn by the violin kind, which
scales each point's density to the band; the frame computes no statistic. New in the
second cut.
charts.waterfall (spec/13 §7.1), a second-cut chart: a bar per category from the
running total before it to the running total after it, so the bars step from the first
delta to the last, then a total bar from zero. The running totals are macaw_data's
cumulative step with before: (macaw_data#336): each row holds the exact sum of the
deltas strictly before it and up to it, so a bar's foot is, to the bit, the previous
bar's head. The total is macaw_data's sum of the deltas, the same exact sum, folded
into one row under the total_label category. The frame computes no statistic.
Clipping a layer to the plot and culling what the clip would hide (spec/03 §3.5).
The one place the Frame and its layers read a table's columns (spec/05 §4.2, spec/12
§3): data stays columnar and uncopied along the whole path, a delivery's
Macaw.Data.Table held as it arrived, and every read of its values goes through this
module.
A frame document compiled (spec/02 §12.2): what Macaw.Frame.Document.compile/3 answers
and the Frame's init/2 holds, copied from visualize's Visualize.Chart.Compiled (its
struct and compile steps; its regions' closures, static strings and rescue sites are
not carried over).
Building a Frame (spec/01 §2.3): use Macaw.Frame.Component defines a module that is the
Frame in every respect but its name and its registry.
What the Frame needs from macaw_component's contract and macaw's core, and which of it has landed (spec/01 §9, spec/05 §9): one table, so every fallback is read in one place and each switches on where its addition lands.
The coordinate-model behavior and the model registry (spec/03 §1).
The cartesian model (spec/03 §6): position scales x and y, their offsets, color
and any other scale its axes and layers name. The default model, and the one a
Sparkline uses.
The facet model (spec/03 §10): small multiples by a field, over any registered model.
The geographic model (spec/03 §8): a projection and a view. It owns no position scales:
positions come from the projection spatial step, which reads the model's projection
through its context. It owns color and any other non-position scale.
The layout model (spec/03 §9): a layout assigns the positions, and the frame runs its layout once per realization; its layers read the layout's outputs.
The realized model (spec/03 §1.2): what every callback after realize/3 reads.
The polar model (spec/03 §7): angle and r as position scales, color and any other
declared scale. Its grid, layers and polar axes sit in a group translated to the plot's
center; R = min(w, h) / 2 is the outer radius.
The Frame's configured declarations, derived from its compiled frame document (spec/01
§2.2), copied from visualize's Visualize.Observation.declared/2 and
Visualize.Event.declared/1.
diagrams.class (spec/13 §7.3): a layered DAG of compartmented class nodes joined by relations, in a layout frame over the layered step. Its
slots are Macaw.Frame.TextForms.Class's: nodes (id, label holding the members' lines, shape opt, group opt), edges (source, target, label, head, tail, line, each opt but the ends) and members (node, text, visibility opt, kind opt), filled by a use site's text
(classDiagram / A <|-- B) or bound to sources.
diagrams.er (spec/13 §7.3): a layered DAG of entities joined by relations with crow's-foot ends, in a layout frame over the layered step. Its
slots are Macaw.Frame.TextForms.Er's: nodes (id, label holding the attributes' lines, shape opt, group opt), edges (source, target, label, head, tail, line, each opt but the ends) and attributes (entity, name, type, key opt), filled by a use site's text
(erDiagram / A ||--o{ B : has) or bound to sources.
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.
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.
diagrams.page_flow (spec/13 §7.5): how data flows through a Macaw page, from its
sources through the state its controls change to the cells that show it, drawn as a
layered flowchart over the layered step in a layout frame, as SVG with no script.
diagrams.sequence (spec/13 §7.3): sequence lanes: participants as vertical lanes, messages down them in order, in a layout frame over the sequence step. Its
slots are Macaw.Frame.TextForms.Sequence's: nodes (participants: id, label, shape opt) and messages (from, to, label, kind, activate, deactivate: messages, notes and activations in order), filled by a use site's text
(sequenceDiagram / A->>B: text) or bound to sources.
diagrams.state (spec/13 §7.3): a layered DAG of states with start and end pseudo-states, composite states as groups, in a layout frame over the layered step. Its
slots are Macaw.Frame.TextForms.State's: nodes (id, label, shape opt, group opt), edges (source, target, label, head, tail, line, each opt but the ends) and groups (composite states: id, label, parent opt), filled by a use site's text
(stateDiagram / [*] --> Idle) or bound to sources.
diagrams.timeline (spec/13 §7.3): swimlanes over a time axis: each event a milestone in its period, in a layout frame over the gantt step. Its
slots are Macaw.Frame.TextForms.Timeline's: events (t, label, period opt), filled by a use site's text
(timeline / 2026 : Launch) or bound to sources.
The frame document: the macaw_layers document type a Frame draws (spec/02).
Application (spec/02 §7): a design's variables resolved and its facts read, so what is left is a design with no hole in it.
The frame document's part of composition (spec/02 §8.4, §16.4): where a composite's
site lands, how its defaults reach what it places, how a whole saved design is placed
under a key, how ids left at reference sites resolve, and how a whole design cuts into
inline sites. The machinery (use sites, the stack, flattening) is
Macaw.Layers.Composite's; Macaw.Frame.Document answers its hooks from here.
Coverage of a field's declared values (spec/02 §7.3, D-194): a mapping by a field — a
layer's style stack holding {:field, f}, or a kind's own mapping named under on with
its cases — is held to the field's declared values wherever the slot's schema
declares them. Every value must name a style (the design's or the theme's palette) or a
case, else {:uncovered, f, missing} at the layer's style or the kind's key, missing
in declared order. A field with no declared values is not checked. Coverage is
accessibility's too: a value with no style has no cue beyond hue (11 §7).
A design's contract with its slots' schemas, and the facts it reads from them (spec/02 §7.3).
The variables a stack still demands (spec/02 §15.2): one entry per variable still open
in a fragment or a stack of fragments, ordered by name, each
%{name, uses, parameter, required, expects}: its uses as Macaw.Layers.Var.free/2
answers them, each %{path, layer, expects} with the schema's type at its path (which a
form chooses a control by), its declaration under the stack's vars (nil when none
declares it), required when the declaration gives no default, and every type the
schema expects where it stands, the type a value given for it is held to once applied.
The frame document's own limits (spec/02 §9.2): what rendering a design read from elsewhere can be made to cost, checked over the migrated value.
The frame document's version line and its canonical value (spec/02 §9.1).
The frame document's schema as data (spec/02 §1.2–§1.5, §13.2).
The design-level node kinds of the frame document (spec/02 §2, §3, §6): the design, its meta, slots, variables, theme, styles and their parts, paints, defaults, layout grid, interaction and labels.
The frame's node kinds of the frame document (spec/02 §4): the frame, its margin, scales, axes and their ticks and measures, legend, the model-specific nodes and the transition node.
The layer's node kinds of the frame document (spec/02 §5): the layer's common keys, its data and steps, channels, scale renames, offset, options, inline label and tooltip.
The key spec builder the schema's tables are written with (spec/02 §1.2–§1.5).
The frame document's $ tag table (spec/02 §11.2), a Macaw.Layers.Tags table.
The type check of a design's bindings against its slots' schemas (spec/02 §7.3).
Every fault of a frame document, by path (spec/02 §10).
The closed vocabularies a reader of a frame document looks words up in (spec/02 §9.3, §11.1).
The Frame's own drawn state, and how a state other than live is drawn over or in
place of the drawing (spec/01 §4.3). Copied from the drawing-over parts of visualize's
Visualize.Board.State and Visualize.Board.Draw (a state painted over the last
drawing, so a person still sees the last data with what is wrong with it); the states
are Macaw.Component.Drawn's eight, and visualize's :over_budget and its SVG panels
are not carried over.
The Frame's events: each built as one Macaw.Data.Event with its element, identity and
value (spec/01 §5.3), and what the server writes into the drawing so a hook can send a
pick-like event with no resolution against rows (§4.4, §5.3; spec/10 §7.1, §7.3).
Copied from visualize's Visualize.Event (element/2, declared_identity/2, the
declared names); its click decoding and resolve/3 against a drawing token are not
carried over, because a Macaw event names its item by identity.
A fact of a slot's schema in a design (spec/02 §7.3).
The fixture sets the components run macaw_component's kit over (spec/01 §10;
macaw_component spec/04 §3): one fixture for each distinct declaration shape of the
Frame — a layer kind, a coordinate model, a backend, an interaction set and a bound
parameter — each with its deliveries, its resolved bindings and its schemas, and a
pair with equal settings and different deliveries for the kit's :token check.
The grid and the axes a model places (spec/03 §3, §3.1, §3.2), and the order a frame's groups draw in.
The frame's legend (spec/03 §3.3): its entries, its placement, and whether it is drawn, all from one layout, so the drawing, the extent, the margin it takes and its fit cannot disagree.
Gap breaking over packed columns (spec/04 §6), copied from visualize's
Visualize.Board.Rows without the board's state and named for the frame.
Hit-testing (spec/03 §4): keyed elements, the hit index, and the client inversion attributes.
The Frame's client hooks (spec/10 §7, §7.11), copied from visualize's Visualize.Hooks
(its file list, ratio/1 and resolution/1; install!/0 and js_code/0 are not carried
over: hooks are static files declared through the component contract, imported by the
host's JS that macaw_live generates from the registry).
The brush's selection helpers (spec/10 §7.5), visualize's Visualize.Hooks.Brush
selection_to_domain/2: FrameBrush emits "brush" with a window in domain units it
worked out in the browser; window(selection, frame) is the server's inverse, a pixel
selection of the frame's plot (%{x0, x1}, and %{y0, y1} for a y or xy brush) read
back through the frame's continuous scales, {:ok, %{"from" => lo, "to" => hi}} with
lo ≤ hi (and "y_from", "y_to" for the y edges), or {:error, :no_scale} for a
frame with no continuous scale on the brushed axis. visualize raised on a missing
scale.
The crosshair's data arrays (spec/10 §7.4), copied from visualize's
Visualize.Hooks.Crosshair (its attrs/3 and at_resolution/3): FrameCrosshair snaps
a rule and a marker per series to the nearest x of arrays the server wrote once, so it
serves SVG and canvas alike (visualize D-76).
The hit index of a canvas drawing (spec/10 §7.3), copied from visualize's
Visualize.Hooks.Tooltip.Items: what FrameTooltip reads on a canvas, where no element
carries an item, so a click at one point emits the same event on SVG, the canvas
commands and the binary canvas.
View states as data (spec/10 §7.2), copied from visualize's Visualize.Hooks.States: a
hook draws a hover or a focus in an overlay outside the patched subtree, where the
style stack cannot reach it, so the server resolves the state's look and hands it over.
The zoom transform helpers (spec/10 §7.6), visualize's Visualize.Hooks.Zoom: the
transform FrameZoom writes on the drawing's zoom group, translate(x,y) scale(k), as
%{k, x, y}, so the server reads what the client did with the same arithmetic. The
transform is client-side: it costs the server nothing; the hook emits "zoom" only
when the view needs more detail, "view" when a geographic pan ends, "reset" on a
double-click.
The keyboard's request and answer (spec/11 §5.6), the server side of visualize's
Visualize.Hooks.Keyboard, carried on macaw_component's request transition
(request/2, macaw_component spec/02 §7.3): the Frame declares the requests "arm",
"disarm" and "key", and its hook (FrameKeyboard, proposal #12) sends them on the
runtime's request path.
A diagram's stops and edges as the keyboard follows them (spec/11 §5.7): what the
Frame writes on its keyboard element as data-mw-graph, so FrameKeyboard moves along
a diagram's edges on the client, one diagram's few nodes rather than a series' rows.
The frame's labels (spec/03 §3.4): one text at its anchor, placed by the model.
The layer-kind behavior (spec/04 §1.1) and the checked layer every callback is given (§1.6).
The budget hint and the slot's reducer (spec/04 §1.10).
A channel declaration (spec/04 §1.2): a typed slot of a layer kind, with its role.
Device pixels, covered points and provisional parts (spec/04 §1.12), copied from
visualize's Visualize.Chart.Mark.M4, .Covered, .Provisional and .Cut. Each rule
is close, not identical, to drawing every row, and each is held to the ink bound of
visualize spec/15 §8.2 on the raster: beyond one device pixel, at most 0.08 % of the ink
lost and 0.03 % invented.
The drawing rules every layer kind shares (spec/04 §1.7), copied from visualize's
Visualize.Chart.Mark (the group), Visualize.Chart.Mark.Series, .Strokes,
.Styled and .Identity.
A layer's inline label (spec/04 §1.8): anchors, fit and contrast ink, copied from
visualize's Visualize.Chart.Mark.Label and Visualize.Chart.Label.Polar (the polar
rotation is Macaw.Frame.Labels.rotation/4's).
Reading a layer's channels from its packed columns through the frame's scales (spec/04
§1.3, §1.12), copied from visualize's Visualize.Chart.Mark.Channels and
Visualize.Chart.Mark.Pixels.
A layer's text-summary contribution (spec/04 §1.11): what summary/3 of a layer kind
answers, from which the frame's text summary is assembled (spec/11).
A layer's datum attributes, declared events and hover text (spec/04 §1.9), copied from
visualize's Visualize.Chart.Mark tooltip part and the server half of
Visualize.Hooks.Tooltip.
The layer kit (spec/04 §3): the checks every layer kind passes, as every component
passes Macaw.Component.Conformance, and shaped the same way.
The layer registry (spec/04 §2): layer kinds are members of packages, as
macaw_data's operations are. A package is a module whose __members__/0 lists its
modules; a member's behavior is read from its @behaviours.
The arc kind (spec/04 §4.10), copied from visualize's Visualize.Chart.Mark.Generic
arc: a pie's, a donut's or a sunburst's slice.
The area kind (spec/04 §4.2), copied from visualize's Visualize.Chart.Mark.Shapes
area.
The band kind (spec/04 §4.3), copied from visualize's Visualize.Chart.Mark.Shapes
band: a stretch in a status timeline.
The box kind (spec/04 §5.1): a box plot's box per row, new in the second cut.
The candle kind (spec/04 §5.1): a candlestick, or an OHLC bar, per row, new in the
second cut.
The choose kind (spec/04 §4.15), copied from visualize's Visualize.Chart.Mark
:choose: each row drawn by the case its value names.
The circle kind (spec/04 §4.8), copied from visualize's Visualize.Chart.Mark.Generic
circle: a pack's or a force graph's node, a scatter's point.
The edge kind (spec/04 §5.2): a diagram's edge, the route a layout assigned with its
markers and its label, new in the second cut.
The flow kind (spec/04 §5.3): a map's flow per row, an arc from its origin to its
destination, new in the second cut.
The grid kind (spec/04 §5.2): a Gantt chart's time grid, its columns and their
headers (a calendar's days, weeks or months), new in the second cut.
The interval kind (spec/04 §5.1): an error bar per row, new in the second cut.
The lane kind (spec/04 §5.2): a band a diagram's layout assigned, with its header and
label, new in the second cut: a swimlane, a Gantt chart's section, a sequence diagram's
participant and its lifeline.
The line kind (spec/04 §4.1), copied from visualize's Visualize.Chart.Mark.Shapes
line.
The needle kind (spec/04 §4.9), copied from visualize's Visualize.Chart.Mark.Shapes
needle.
The node kind (spec/04 §5.2): a diagram's node, the shape at the box a layout
assigned and its label inside it, new in the second cut.
The path kind (spec/04 §4.13), copied from visualize's Visualize.Chart.Mark.Generic
path: a layout's link, a chord's ribbon, a contour ring, a hexagon, a Voronoi cell, a
projected region.
The percentile_band kind (spec/04 §4.6), copied from visualize's
Visualize.Chart.Mark.Shapes percentile band.
The polyline kind (spec/04 §5.1): parallel coordinates, new in the second cut.
The rect kind (spec/04 §4.12), copied from visualize's Visualize.Chart.Mark.Generic
rect: a bar, a heatmap cell, a treemap tile.
A layer registry (spec/04 §2): kinds by name, the packages it was built from in
order, and its digest.
The rose kind (spec/04 §4.11), copied from visualize's Visualize.Chart.Mark.Shapes
rose.
The rule kind (spec/04 §4.5), copied from visualize's Visualize.Chart.Mark.Shapes
rule.
The segment kind (spec/04 §5.1): a straight segment per row, new in the second cut,
for slope charts and dumbbells (with circle or symbol layers at each end).
The symbol kind (spec/04 §4.7), copied from visualize's Visualize.Chart.Mark.Shapes
symbol.
The text kind (spec/04 §4.14), copied from visualize's Visualize.Chart.Mark.Generic
text.
The tiles kind (spec/04 §4.16), copied from visualize's Visualize.Chart.Mark.Tiles:
a basemap of raster tiles beneath every other layer.
The violin kind (spec/04 §5.1): a mirrored area per category, new in the second cut.
The x_band kind (spec/04 §4.4), copied from visualize's Visualize.Chart.Mark.Shapes
x band: an event span.
The shared Legend (spec/01 §7, spec/13 §7.4): one legend for several Frames, for a page
whose charts share a color mapping, so each of them can drop its own (legend: "none").
The Frame's :local keys and its adapter for their values on the client bus (spec/01
§5.2), copied from visualize's Visualize.Hooks.Sync: its sync groups are these keys,
named by the cell's sync setting, and its bus's domain units are the spelling below.
No sync bus is carried over: the bus is macaw_component's (its spec/02 §8.2).
maps.choropleth (spec/13 §7.2), a second-cut map layer: each region's GeoJSON
geometry projected (projection(field: geometry)) into a path filled by its value
through choropleth.color, a sequential scale, or a threshold scale over
thresholds, along the theme's sequential ramp turned by polarity, with its legend.
maps.clusters (spec/13 §7.2), a second-cut map layer: points projected and grouped
within radius pixels by the point_cluster spatial step (spec/04 §5.3's cluster,
Macaw.Frame.Transforms.PointCluster) at the view's zoom, so the clusters re-run on
every view change. A cluster of more than one point is a circle sized by its count
through a sqrt scale with a text of the count over it; a lone point is drawn as
maps.points draws one, a small circle. The two are macaw_data filters of the step's
rows by count. New in the second cut.
maps.contour (spec/13 §6.6), a map layer: the contour step's rings over a grid of
values spanning bounds ([west, south, east, north]), answered as geometries in
degrees and projected through the map's projection (projection(field: "geometry")),
each filled by its threshold through contour.color, a sequential scale, with its
titled legend outside the map's right. Copied from the gallery's contour plot
(examples/lib/examples/charts/contour_plot.ex).
maps.density (spec/13 §6.5), a map layer: the slot's points projected, then the
spatial density_2d step's rings (weighted by weight when it is bound), each filled by
its level through density.color, a sequential scale. Copied from the gallery's
contour and hexbin designs (examples/lib/examples/charts/contour_plot.ex).
maps.flows (spec/13 §7.2), a second-cut map layer: a flow per row from its origin
to its destination (each a {longitude, latitude} point), its width by value
through a sqrt size scale up to max_width, along the great circle when
great_circle is set. Both ends go through the map's projection: the origin's pixels are
moved to x0 and y0 by macaw_data's fold (a rename: one column a fold), and the
destination's are the second projection's x and y; a flow whose origin the
projection clips has no origin and draws nothing. New in the second cut.
maps.hexbin (spec/13 §6.4), a map layer: the slot's points projected, then binned into
hexagons of a radius in pixels by the hexbin step, each cell filled by its count
through hexbin.color, a sequential scale over [0, auto], with its titled legend
inside the map's bottom left. The cells are in pixels, so a view change bins again.
Copied from the gallery's hexbin chart (examples/lib/examples/charts/hexbin_chart.ex).
maps.map (spec/13 §6.1): a clipped geographic frame of its projection, fitted with a
padding and a minimum span to the slot its fit parameter names, panning into the box
window, drawing nothing of its own until map layers (the :layers fragments of
Macaw.Frame.Maps) are stacked into it at its use site. Copied from the gallery's map
frames (examples/lib/examples/charts/world_map.ex, day_night_gps.ex,
marathon.ex): their geographic frame, its projection and the surface ocean.
maps.points (spec/13 §6.3), a map layer: each row's longitude and latitude projected
through the map's projection (a clipped or malformed one keeps its row with no
position, so nothing draws for it), a circle sized through a sqrt size scale when
size is bound, colored by category through points.color with its legend inside the
map's bottom left, and a pick writing the row's declared identity. Copied from the
gallery's marathon field and day/night GPS satellites
(examples/lib/examples/charts/marathon/field.ex, day_night_gps.ex).
maps.route (spec/13 §7.2), a second-cut map layer: a track's positions projected
(projection(fields: [longitude, latitude])) and drawn as one line in time order,
broken where its readings are further apart than their continuity (spec/04 §6: a
line over a projected track is placed by the slot's window field t and breaks on its
longitude's and latitude's continuity), with its newest reading as a circle (head).
A track with a declared identity draws one line per identity. A route is maps.points'
slot with a line instead (spec/13 §6.3); its positions are its longitude and
latitude roles, as maps.points' and the map's fit read. New in the second cut.
maps.tiles (spec/13 §6.2), a map layer: the tile basemap, a tiles layer
(spec/04 §4.16) beneath every other layer, its tiles drawn from the proxy route it
declares and its attribution in the plot's corner. It has no default URL: the provider
and its usage policy are the host's, so url and attribution are required. A map
whose projection is not tile-aligned refuses it at the layer. Copied from the gallery's
marathon basemap (examples/lib/examples/charts/marathon.ex).
maps.voronoi (spec/13 §6.7), a map layer: each projected point's Voronoi cell bounded
by the plot, outlined in axis and filled by category when fill_by asks, with the
points' dashed hull from delaunay(output: "hull") on demand. A pick on a cell writes its
point's identity, so the cells are the points' nearest-neighbor hit areas. Copied from
the gallery's scatter plot's Voronoi (examples/lib/examples/charts/scatter_plot.ex).
macaw_frame's own package (spec/03 §1.3, spec/04 §2): the members every Frame module's
registry holds whatever packages it lists. Its coordinate models are the five of
spec/03, its layer kinds spec/04's (the first cut's sixteen and the second cut's
chart, diagram and map kinds, §5.1–§5.3), its spatial steps Macaw.Frame.Transforms.all/0
(spec/04 §7), and its catalog fragments catalogs/0 (spec/13): the charts, maps and
diagrams namespaces, members of this one package until one moves to a package of its
own under the same module names and ids (spec/13 §2).
Running the layers' steps (spec/04 §7.3, spec/05 §5.2): each layer's steps are one list,
data and spatial steps in any order, validated together by
Macaw.Data.Operations.validate/3 against the Frame's operations registry with the
frame's context, and run in order through Macaw.Data.Operations: a column-native step
through the held Macaw.Data.Operations.Cache, so a delivery of a chunked table re-runs
only the chunks that changed, any other by its run/3.
Each item placed once, shared by the drawing and the keyboard (spec/11 §5.5), copied
from visualize's Visualize.Chart.Placements (#811, #1064, D-202).
Presets as registered fragments (spec/02 §14), replacing visualize's
Visualize.Chart.Presets and its function components: a preset is a stored composite
or design fragment with its variables declared as parameters, found by name and placed
as any fragment is. Nothing is a function component.
A Frame's keyboard points held on the server, answered one at a time (spec/11 §5.4),
copied from visualize's Visualize.Chart.Reach (#1070, #1071, D-278).
A delivery read into its slot's table (spec/05 §4), copied from visualize's
Visualize.Chart.Compiled.Sources (the one function every place a delivery's data
enters calls, a source its slot cannot read a fault, never a raise) and
Visualize.Data.Same (two terms the same data when their tables are equal by content,
never by chunking). Its five rescue sites are not carried over: every answer is a
value.
The Frame's render per mode (spec/01 §3.7, §4; spec/10 §2.6, §3.6; spec/11 §1, §3, §4),
copied from visualize's Visualize.Components.Chart markup and Visualize.Backend.Hybrid's
layering, without the hybrid's inline-styled container.
The rows a scroll's strip draws (spec/10 §4.9, spec/12 §5.2), the table half of
visualize's Visualize.Backend.CanvasIncremental.filter_to_regions/3: Macaw.Draw reads
columns, never a table (macaw_draw spec/06 §1.1), so the Frame reads a layer's two pixel columns,
asks Macaw.Draw.Render.Incremental.filter_to_regions/2 which rows lie in the strip,
and keeps those rows of its table by index, from the packed columns, never row by row
(spec/12 §3). A tick therefore carries its strip, not its window.
The budget picks each layer's renderer (spec/10 §2.7), copied from visualize's
Visualize.Chart.Compiled targets (its spec/14 §12.3) and .Compiled.Regions.
What a slot asks of its request (spec/05 §3): its order, whether the window reaches it,
and how its rows may be reduced. The host builds the request (macaw spec/06 §3.5): its
params from the binding, its window from window, its budget from budget/4 under the
ceiling; the Frame says only these. Copied from visualize's
Visualize.Board.Budget.reducer/2; its board-wide feed_reducers/2 and the board's
window resolution (Visualize.Board.window/2) are the host's here.
Scale ownership (spec/03 §2): a frame owns its scales, and this module realizes them.
The selection as a cell's fields hold it, and the view state each data layer draws it
through (spec/05 §7.1), copied from visualize's Visualize.Interaction
(selection_fields/1, holds?/2) and the selection drawing of Visualize.Visual. The
interaction holder itself is not carried over: a Frame draws the selection it is
handed, never one it holds.
The slots a frame document declares and each slot's roles and their requirements, from
its layers' channels (spec/05 §1). Copied from visualize's
Visualize.Board.required_sources/3 (a slot per source a design reads, one design in
two cells two sets of slots) and Visualize.Chart.contract/1 and check_types/2 (what
each field a layer reads through a scale needs of its type, visualize spec/14 §7.4,
D-153); binding a slot and checking the binding are the host's,
Macaw.Component.Slot.check/3 (§1.3).
The Sparkline (spec/01 §6): a minimal Frame with no furniture, for a table cell, a stat or a line of prose. One data layer over one slot, no axes, no legend, no labels, no hooks, drawn as phrasing content.
The style grammar of the frame document (spec/02 §3, §13.3): a style declared once under
styles, derived with extends, stacked at the site that uses it, defaulted by its
containers, and resolved through the theme into what an element draws.
Defaults inherited by container and layer kind (spec/02 §3.8): what a style does not say comes from the containers the element sits in.
Generator results at a style site (spec/02 §3.13): what a host's generator returned,
held to the type its position needs. A generator in a stack returns a style (a name, a
node or a list of them, with no generator and no gradient written in place); one at a
:color position returns a typed color or :none. A result of another type is a
fault at that site that applies nothing, the layers under it showing through; it
never fails the render. A generator that raises is a host bug and surfaces as one:
nothing here rescues it (visualize's three rescue sites are not carried over).
What an element inherits under its style (spec/02 §3.7, §3.8): the defaults its
containers lay, layers 1 to 3 of the precedence, and the theme the stack resolves in.
Macaw.Frame.Style.stack/4 lays a site's stack over it.
A style's motion parts resolved (spec/02 §3.10–§3.12): its transition, its animation,
and how an element enters and exits, each with its defaults in place. Motion is a
generated stylesheet, never a <style> element in the drawing: each distinct resolved
part is a class whose rule goes into the Frame's generated stylesheet (spec/10).
A style's compound parts (spec/02 §3.1, §3.5): their shorthands normalized on read and the merge rule one style is laid over another by.
Sizes in units (spec/02 §3.9): a size written in any common unit ({1.5, :pt},
{1.2, :em}, {2, :mm}) is a number of user units when the style resolves, so every
backend gets a number and a canvas and SVG agree. A bare number keeps its meaning.
The text summary of a realized Frame (spec/11 §2, §3, §10): what a screen reader says
for it, generated rather than written, so every Frame has one and it follows the
data. Copied from visualize's Visualize.Chart.Summary, reading the Frame's drawing
and its layers' contributions (Macaw.Frame.Layer.Summary, spec/04 §1.11) in place of
an applied chart and a list of mark types.
The keyboard's points of a data layer that draws no number (spec/11 §5.2, §5.3): a grid
of states, a status strip, a row of glyphs. Copied from visualize's
Visualize.Chart.Summary.Identities, without its inferred identity: a pick never infers
one (spec/01 §5.3), so its rows are reached by the slot's declared identity, and a
slot that declares none is read by the layer's tooltip fields alone.
A realized Frame's keyboard points indexed, none built (spec/11 §5.1–§5.4), copied from
visualize's Visualize.Chart.Summary.Points.
The data-table fallback of a realized Frame (spec/11 §4), copied from visualize's
Visualize.Chart.Summary.Table: the rows each data layer draws, one <table> per
layer, each value written as the summary writes it (§2.4), for the Frame's markup to
place beside its root, never inside it, visually hidden and still read.
Macaw.Frame.Summary.table/2 is its public face.
A text as one string with holes (spec/02 §7.4): "Uptime for #{var(host)}".
A text form of the frame document (spec/02 §11.3): a notation a person types, read into a fragment of the frame document type and judged as any value is. A text form never defines a second document type.
The second cut's text forms (spec/02 §11.3, spec/13 §7.3): one Macaw.Frame.TextForm
per diagram, each mermaid-like, read into a design of a layout frame whose node,
edge, lane and grid layers draw the diagram's slots, the slots filled with
static rows (a slot's rows), so the same design bound to sources draws a live
diagram instead.
The classDiagram text form (spec/02 §11.3, spec/13 §7.3): a class diagram written as
mermaid writes one, read into a layered diagram's design (Macaw.Frame.TextForms) whose
nodes are compartmented: a class's name over its members.
The erDiagram text form (spec/02 §11.3, spec/13 §7.3): an entity–relationship diagram
written as mermaid writes one, read into a layered diagram's design
(Macaw.Frame.TextForms) whose edges end in crow's feet.
The flowchart text form (spec/02 §11.3, spec/13 §7.3): a flowchart written as
mermaid writes one, read into a layered diagram's design (Macaw.Frame.TextForms).
The gantt text form (spec/02 §11.3, spec/13 §7.3): a Gantt chart written as mermaid
writes one, read into a design whose gantt step lays its tasks against a time grid
(Macaw.Frame.TextForms).
The pageFlow text form (spec/02 §11.3, spec/13 §7.5): a page's data flow walked as a
nested list, source by source, read into the layered design diagrams.page_flow draws
(Macaw.Frame.TextForms).
The sequenceDiagram text form (spec/02 §11.3, spec/13 §7.3): a sequence diagram
written as mermaid writes one, read into a design whose sequence step lays its
participants across and its events down (Macaw.Frame.TextForms).
The stateDiagram text form (spec/02 §11.3, spec/13 §7.3): a state diagram written as
mermaid writes one, read into a layered diagram's design (Macaw.Frame.TextForms).
The timeline text form (spec/02 §11.3, spec/13 §7.3): a timeline written as mermaid
writes one, read into a design whose gantt step sets each event on a time grid as a
milestone (a symbol diamond and a text label beside it), its sections banded as
lanes (Macaw.Frame.TextForms).
The theme mode's frame side (spec/02 §17), copied from visualize's
Visualize.Chart.Builder.ThemeSheet without its LiveView markup: what an editor of any
kind needs from macaw_frame to show what a theme does to a Frame. The editor itself is
out of scope.
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).
The chord step (spec/04 §7.2): a chord diagram of the flows, laid out by
Macaw.Draw.Layout.Chord (needs: [:frame]).
The cluster step (spec/04 §7.2): the dendrogram of a hierarchy, its leaves at one depth, x and y per node, laid out by Macaw.Draw.Layout.Cluster in the
plot (needs: [:frame]).
The contour step (spec/04 §7.2): iso-lines of a grid of values, by
Macaw.Draw.Contour (needs: [:frame]).
The delaunay step (spec/04 §7.2): the Delaunay triangulation of the pixel points
fields: [x, y], by Macaw.Draw.Geo.Delaunay (needs: [:frame]). A row with a nil
or non-numeric coordinate is dropped. output: "triangles" answers one row per
triangle, index, vertices (its three input rows) and its path; "hull" one row,
the closed hull's path, or none for fewer than three hull points.
The density_2d step (spec/04 §7.2, spec/05 §5.3): a two-dimensional kernel density estimate of the
pixel points fields: [x, y] over the plot (or size), contoured, by
Macaw.Draw.Contour.Density (needs: [:frame]). field weights each point (1
without, and for a nil reading); bandwidth (20) is the kernel's standard deviation
in pixels, thresholds (20) a count or a list of density values, cell (4) the
grid's cell in pixels. A row with a nil or non-numeric coordinate is dropped. One row
per ring of every threshold, its value and closed path.
The force step (spec/04 §7.2, spec/05 §5.3): a force-directed layout of the flows, a
Macaw.Draw.Layout.Force simulation in the plot (needs: [:frame]).
The funnel step (spec/04 §5.1, §7.1): a funnel's stages as centered widths across the
plot, a frame concern (needs: [:frame]), drawn by a rect layer.
The gantt step (spec/04 §5.2, §7.2): tasks as bars against a time axis, in rows grouped
by section, laid out by Macaw.Draw.Layout.Gantt (macaw_draw spec/08 §14) across the plot
(needs: [:frame]), for the node, edge, lane and grid kinds of a Gantt chart
or a timeline.
The hexbin step (spec/04 §7.2): the pixel points fields: [x, y] binned into hexagons
of radius (20), by Macaw.Draw.Layout.Hexbin (needs: [:frame]: pixel binning is
spatial, spec/05 §5.3). A row with a nil or non-numeric coordinate is dropped.
output: "cells" answers one row per non-empty cell, x, y, count and its hexagon's
path; "points" one row per binned input row, its columns with its cell's cx, cy
and count.
The layered step (spec/04 §5.2, §7.2): a directed graph laid out in ranks with routed
edges by Macaw.Draw.Layout.Layered (macaw_draw spec/08 §11), in the plot (needs: [:frame]), for
the node and edge kinds of a flowchart, a state, class or ER diagram.
The month_outline step (spec/04 §7.1, spec/13 §7.1): a calendar heatmap's month
outlines, a frame concern (needs: [:frame]), drawn by a path layer.
The pack step (spec/04 §7.2): circle packing, x, y and r per node, padding between circles, laid out by Macaw.Draw.Layout.Pack in the
plot (needs: [:frame]).
The parallel step (spec/04 §5.1, §7.1): parallel coordinates' per-dimension scales, a
frame concern (needs: [:frame]), for the polyline kind.
The partition step (spec/04 §7.2): the adjacency diagram (an icicle; a sunburst in polar), x0, y0, x1, y1 per node, padding between siblings, laid out by Macaw.Draw.Layout.Partition in the
plot (needs: [:frame]).
The point_cluster step (spec/04 §5.3, §7.1): a map's marker clustering, points in
pixels grouped within radius (40) by a grid-and-merge pass at the view's zoom. It is
the spec's cluster step for points, named apart from the hierarchy's cluster
(Macaw.Frame.Transforms.Cluster) so the two share one registry, as density_2d is
named apart from macaw_data's density.
The projection step (spec/04 §7.2): positions through the frame's projection
(needs: [:projection]), by Macaw.Draw.Geo.Path.
The radial step (spec/04 §5.2, §7.2): a radial tree or dendrogram of a hierarchy, laid
out by Macaw.Draw.Layout.Radial (macaw_draw spec/08 §15) around the plot's center
(needs: [:frame]), for the node and edge kinds of a mind map.
The ridge step (spec/04 §7.1, spec/13 §7.1): a ridgeline's baselines, a frame concern
(needs: [:frame]), for an area per series.
The sankey step (spec/04 §7.2): a flow diagram of the flows, laid out by
Macaw.Draw.Layout.Sankey in the plot (needs: [:frame]).
The sequence step (spec/04 §5.2, §7.2): a sequence diagram's participants as lanes
across and its events down, laid out by Macaw.Draw.Layout.Sequence (macaw_draw spec/08 §12) in
the plot (needs: [:frame]), for the lane, edge and node kinds.
The swimlanes step (spec/04 §5.2, §7.2): a layered graph banded into lanes by
Macaw.Draw.Layout.Swimlanes (macaw_draw spec/08 §13), in the plot (needs: [:frame]), for the
node, edge and lane kinds of a process map or an activity diagram.
The tree step (spec/04 §7.2): the tidy tree of a hierarchy, x and y per node, laid out by Macaw.Draw.Layout.Tree in the
plot (needs: [:frame]).
The treemap step (spec/04 §7.2): nested rectangles by value, x0, y0, x1, y1 per node, padding and tile (squarify), laid out by Macaw.Draw.Layout.Treemap in the
plot (needs: [:frame]).
The voronoi step (spec/04 §7.2): the Voronoi diagram of the pixel points
fields: [x, y] bounded by the plot (or size), by Macaw.Draw.Geo.Voronoi
(needs: [:frame]). A row with a nil or non-numeric coordinate is dropped.
output: "cells" answers one row per kept input row, its columns with index and its
clipped cell's path; "edges" one row per edge, x0, y0, x1, y1 and its path.
The Frame's contained value and its transitions as pure functions (spec/01 §3), copied
from visualize's Visualize.Visual, the runtime as a value with transitions, on
macaw_component's contract (macaw_component spec/02 §7). Its state/4, resolve/2,
drawing tokens resolving clicks and its two rescue sites are not carried over.
What a model writes (spec/03 §5): a Frame changes the page only by emitting events, and the host applies them to the page's state.