# macaw_frame v0.1.0 - Table of Contents > Macaw's visual components: the Frame, Sparkline and Legend, and Macaw.Draw, the pure drawing library under them. ## Pages - [macaw_frame](readme.md) - [Changelog](changelog.md) ## Modules - [Macaw.Frame](Macaw.Frame.md): 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. - [Macaw.Frame.Benchmark](Macaw.Frame.Benchmark.md): 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). - [Macaw.Frame.Budget](Macaw.Frame.Budget.md): 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). - [Macaw.Frame.Catalog](Macaw.Frame.Catalog.md): 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. - [Macaw.Frame.Catalog.Store](Macaw.Frame.Catalog.Store.md): 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`. - [Macaw.Frame.Charts.Area](Macaw.Frame.Charts.Area.md): `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`. - [Macaw.Frame.Charts.Bar](Macaw.Frame.Charts.Bar.md): `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`. - [Macaw.Frame.Charts.Boxplot](Macaw.Frame.Charts.Boxplot.md): `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. - [Macaw.Frame.Charts.Bubble](Macaw.Frame.Charts.Bubble.md): `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`). - [Macaw.Frame.Charts.Bullet](Macaw.Frame.Charts.Bullet.md): `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. - [Macaw.Frame.Charts.CalendarHeatmap](Macaw.Frame.Charts.CalendarHeatmap.md): `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. - [Macaw.Frame.Charts.Candlestick](Macaw.Frame.Charts.Candlestick.md): `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. - [Macaw.Frame.Charts.Chord](Macaw.Frame.Charts.Chord.md): `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. - [Macaw.Frame.Charts.Density](Macaw.Frame.Charts.Density.md): `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. - [Macaw.Frame.Charts.Dumbbell](Macaw.Frame.Charts.Dumbbell.md): `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. - [Macaw.Frame.Charts.ErrorBars](Macaw.Frame.Charts.ErrorBars.md): `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. - [Macaw.Frame.Charts.ForceGraph](Macaw.Frame.Charts.ForceGraph.md): `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. - [Macaw.Frame.Charts.Funnel](Macaw.Frame.Charts.Funnel.md): `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 `rect`s at its pixel edges along `x` and a band per stage along `y`. New in the second cut. - [Macaw.Frame.Charts.Gauge](Macaw.Frame.Charts.Gauge.md): `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. - [Macaw.Frame.Charts.GroupedBar](Macaw.Frame.Charts.GroupedBar.md): `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`). - [Macaw.Frame.Charts.Heatmap](Macaw.Frame.Charts.Heatmap.md): `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. - [Macaw.Frame.Charts.HorizontalBar](Macaw.Frame.Charts.HorizontalBar.md): `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`. - [Macaw.Frame.Charts.Line](Macaw.Frame.Charts.Line.md): `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. - [Macaw.Frame.Charts.Pack](Macaw.Frame.Charts.Pack.md): `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`). - [Macaw.Frame.Charts.Parallel](Macaw.Frame.Charts.Parallel.md): `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. - [Macaw.Frame.Charts.Partition](Macaw.Frame.Charts.Partition.md): `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`. - [Macaw.Frame.Charts.PercentileBand](Macaw.Frame.Charts.PercentileBand.md): `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`). - [Macaw.Frame.Charts.Pie](Macaw.Frame.Charts.Pie.md): `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`. - [Macaw.Frame.Charts.Radar](Macaw.Frame.Charts.Radar.md): `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`). - [Macaw.Frame.Charts.Ridgeline](Macaw.Frame.Charts.Ridgeline.md): `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. - [Macaw.Frame.Charts.Rose](Macaw.Frame.Charts.Rose.md): `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`). - [Macaw.Frame.Charts.Sankey](Macaw.Frame.Charts.Sankey.md): `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). - [Macaw.Frame.Charts.Scatter](Macaw.Frame.Charts.Scatter.md): `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). - [Macaw.Frame.Charts.Slope](Macaw.Frame.Charts.Slope.md): `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 `fold`s (`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. - [Macaw.Frame.Charts.Sparkline](Macaw.Frame.Charts.Sparkline.md): `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. - [Macaw.Frame.Charts.StackedArea](Macaw.Frame.Charts.StackedArea.md): `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`). - [Macaw.Frame.Charts.StackedBar](Macaw.Frame.Charts.StackedBar.md): `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`. - [Macaw.Frame.Charts.StatusTimeline](Macaw.Frame.Charts.StatusTimeline.md): `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`). - [Macaw.Frame.Charts.Tree](Macaw.Frame.Charts.Tree.md): `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. - [Macaw.Frame.Charts.Treemap](Macaw.Frame.Charts.Treemap.md): `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`. - [Macaw.Frame.Charts.Violin](Macaw.Frame.Charts.Violin.md): `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. - [Macaw.Frame.Charts.Waterfall](Macaw.Frame.Charts.Waterfall.md): `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. - [Macaw.Frame.Clip](Macaw.Frame.Clip.md): Clipping a layer to the plot and culling what the clip would hide (spec/03 §3.5). - [Macaw.Frame.Columns](Macaw.Frame.Columns.md): 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. - [Macaw.Frame.Compiled](Macaw.Frame.Compiled.md): 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). - [Macaw.Frame.Component](Macaw.Frame.Component.md): 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. - [Macaw.Frame.Contract](Macaw.Frame.Contract.md): 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. - [Macaw.Frame.Coordinates](Macaw.Frame.Coordinates.md): The coordinate-model behavior and the model registry (spec/03 §1). - [Macaw.Frame.Coordinates.Cartesian](Macaw.Frame.Coordinates.Cartesian.md): 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. - [Macaw.Frame.Coordinates.Facet](Macaw.Frame.Coordinates.Facet.md): The facet model (spec/03 §10): small multiples by a field, over any registered model. - [Macaw.Frame.Coordinates.Geographic](Macaw.Frame.Coordinates.Geographic.md): 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. - [Macaw.Frame.Coordinates.Layout](Macaw.Frame.Coordinates.Layout.md): 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. - [Macaw.Frame.Coordinates.Model](Macaw.Frame.Coordinates.Model.md): The realized model (spec/03 §1.2): what every callback after `realize/3` reads. - [Macaw.Frame.Coordinates.Polar](Macaw.Frame.Coordinates.Polar.md): 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. - [Macaw.Frame.Declarations](Macaw.Frame.Declarations.md): 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`. - [Macaw.Frame.Diagrams.Class](Macaw.Frame.Diagrams.Class.md): `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. - [Macaw.Frame.Diagrams.Er](Macaw.Frame.Diagrams.Er.md): `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. - [Macaw.Frame.Diagrams.Flowchart](Macaw.Frame.Diagrams.Flowchart.md): `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. - [Macaw.Frame.Diagrams.Gantt](Macaw.Frame.Diagrams.Gantt.md): `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. - [Macaw.Frame.Diagrams.PageFlow](Macaw.Frame.Diagrams.PageFlow.md): `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. - [Macaw.Frame.Diagrams.Sequence](Macaw.Frame.Diagrams.Sequence.md): `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. - [Macaw.Frame.Diagrams.State](Macaw.Frame.Diagrams.State.md): `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. - [Macaw.Frame.Diagrams.Timeline](Macaw.Frame.Diagrams.Timeline.md): `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. - [Macaw.Frame.Document](Macaw.Frame.Document.md): The frame document: the `macaw_layers` document type a Frame draws (spec/02). - [Macaw.Frame.Document.Apply](Macaw.Frame.Document.Apply.md): 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. - [Macaw.Frame.Document.Composite](Macaw.Frame.Document.Composite.md): 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. - [Macaw.Frame.Document.Coverage](Macaw.Frame.Document.Coverage.md): 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). - [Macaw.Frame.Document.Facts](Macaw.Frame.Document.Facts.md): A design's contract with its slots' schemas, and the facts it reads from them (spec/02 §7.3). - [Macaw.Frame.Document.FreeVars](Macaw.Frame.Document.FreeVars.md): 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. - [Macaw.Frame.Document.Limits](Macaw.Frame.Document.Limits.md): 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. - [Macaw.Frame.Document.Migration](Macaw.Frame.Document.Migration.md): The frame document's version line and its canonical value (spec/02 §9.1). - [Macaw.Frame.Document.Schema](Macaw.Frame.Document.Schema.md): The frame document's schema as data (spec/02 §1.2–§1.5, §13.2). - [Macaw.Frame.Document.Schema.Design](Macaw.Frame.Document.Schema.Design.md): 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. - [Macaw.Frame.Document.Schema.Frame](Macaw.Frame.Document.Schema.Frame.md): 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. - [Macaw.Frame.Document.Schema.Layer](Macaw.Frame.Document.Schema.Layer.md): 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. - [Macaw.Frame.Document.Schema.Spec](Macaw.Frame.Document.Schema.Spec.md): The key spec builder the schema's tables are written with (spec/02 §1.2–§1.5). - [Macaw.Frame.Document.Tags](Macaw.Frame.Document.Tags.md): The frame document's `$` tag table (spec/02 §11.2), a `Macaw.Layers.Tags` table. - [Macaw.Frame.Document.Types](Macaw.Frame.Document.Types.md): The type check of a design's bindings against its slots' schemas (spec/02 §7.3). - [Macaw.Frame.Document.Validator](Macaw.Frame.Document.Validator.md): Every fault of a frame document, by path (spec/02 §10). - [Macaw.Frame.Document.Words](Macaw.Frame.Document.Words.md): The closed vocabularies a reader of a frame document looks words up in (spec/02 §9.3, §11.1). - [Macaw.Frame.Drawn](Macaw.Frame.Drawn.md): 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. - [Macaw.Frame.Events](Macaw.Frame.Events.md): 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. - [Macaw.Frame.Fact](Macaw.Frame.Fact.md): A fact of a slot's schema in a design (spec/02 §7.3). - [Macaw.Frame.Fixtures](Macaw.Frame.Fixtures.md): 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. - [Macaw.Frame.Furniture](Macaw.Frame.Furniture.md): The grid and the axes a model places (spec/03 §3, §3.1, §3.2), and the order a frame's groups draw in. - [Macaw.Frame.Furniture.Legend](Macaw.Frame.Furniture.Legend.md): 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. - [Macaw.Frame.Gaps](Macaw.Frame.Gaps.md): 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. - [Macaw.Frame.Hit](Macaw.Frame.Hit.md): Hit-testing (spec/03 §4): keyed elements, the hit index, and the client inversion attributes. - [Macaw.Frame.Hooks](Macaw.Frame.Hooks.md): 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). - [Macaw.Frame.Hooks.Brush](Macaw.Frame.Hooks.Brush.md): 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. - [Macaw.Frame.Hooks.Crosshair](Macaw.Frame.Hooks.Crosshair.md): 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). - [Macaw.Frame.Hooks.Items](Macaw.Frame.Hooks.Items.md): 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. - [Macaw.Frame.Hooks.States](Macaw.Frame.Hooks.States.md): 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. - [Macaw.Frame.Hooks.Zoom](Macaw.Frame.Hooks.Zoom.md): 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. - [Macaw.Frame.Keyboard](Macaw.Frame.Keyboard.md): 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. - [Macaw.Frame.Keyboard.Graph](Macaw.Frame.Keyboard.Graph.md): 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. - [Macaw.Frame.Labels](Macaw.Frame.Labels.md): The frame's labels (spec/03 §3.4): one text at its anchor, placed by the model. - [Macaw.Frame.Layer](Macaw.Frame.Layer.md): The layer-kind behavior (spec/04 §1.1) and the checked layer every callback is given (§1.6). - [Macaw.Frame.Layer.Budget](Macaw.Frame.Layer.Budget.md): The budget hint and the slot's reducer (spec/04 §1.10). - [Macaw.Frame.Layer.Channel](Macaw.Frame.Layer.Channel.md): A channel declaration (spec/04 §1.2): a typed slot of a layer kind, with its role. - [Macaw.Frame.Layer.Device](Macaw.Frame.Layer.Device.md): 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. - [Macaw.Frame.Layer.Draw](Macaw.Frame.Layer.Draw.md): 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`. - [Macaw.Frame.Layer.Label](Macaw.Frame.Layer.Label.md): 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). - [Macaw.Frame.Layer.Read](Macaw.Frame.Layer.Read.md): 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`. - [Macaw.Frame.Layer.Summary](Macaw.Frame.Layer.Summary.md): 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). - [Macaw.Frame.Layer.Tooltip](Macaw.Frame.Layer.Tooltip.md): 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`. - [Macaw.Frame.LayerKit](Macaw.Frame.LayerKit.md): The layer kit (spec/04 §3): the checks every layer kind passes, as every component passes `Macaw.Component.Conformance`, and shaped the same way. - [Macaw.Frame.Layers](Macaw.Frame.Layers.md): 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 `@behaviour`s. - [Macaw.Frame.Layers.Arc](Macaw.Frame.Layers.Arc.md): 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. - [Macaw.Frame.Layers.Area](Macaw.Frame.Layers.Area.md): The `area` kind (spec/04 §4.2), copied from visualize's `Visualize.Chart.Mark.Shapes` area. - [Macaw.Frame.Layers.Band](Macaw.Frame.Layers.Band.md): The `band` kind (spec/04 §4.3), copied from visualize's `Visualize.Chart.Mark.Shapes` band: a stretch in a status timeline. - [Macaw.Frame.Layers.Box](Macaw.Frame.Layers.Box.md): The `box` kind (spec/04 §5.1): a box plot's box per row, new in the second cut. - [Macaw.Frame.Layers.Candle](Macaw.Frame.Layers.Candle.md): The `candle` kind (spec/04 §5.1): a candlestick, or an OHLC bar, per row, new in the second cut. - [Macaw.Frame.Layers.Choose](Macaw.Frame.Layers.Choose.md): The `choose` kind (spec/04 §4.15), copied from visualize's `Visualize.Chart.Mark` `:choose`: each row drawn by the case its value names. - [Macaw.Frame.Layers.Circle](Macaw.Frame.Layers.Circle.md): 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. - [Macaw.Frame.Layers.Edge](Macaw.Frame.Layers.Edge.md): 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. - [Macaw.Frame.Layers.Flow](Macaw.Frame.Layers.Flow.md): 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. - [Macaw.Frame.Layers.Grid](Macaw.Frame.Layers.Grid.md): 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. - [Macaw.Frame.Layers.Interval](Macaw.Frame.Layers.Interval.md): The `interval` kind (spec/04 §5.1): an error bar per row, new in the second cut. - [Macaw.Frame.Layers.Lane](Macaw.Frame.Layers.Lane.md): 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. - [Macaw.Frame.Layers.Line](Macaw.Frame.Layers.Line.md): The `line` kind (spec/04 §4.1), copied from visualize's `Visualize.Chart.Mark.Shapes` line. - [Macaw.Frame.Layers.Needle](Macaw.Frame.Layers.Needle.md): The `needle` kind (spec/04 §4.9), copied from visualize's `Visualize.Chart.Mark.Shapes` needle. - [Macaw.Frame.Layers.Node](Macaw.Frame.Layers.Node.md): 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. - [Macaw.Frame.Layers.Path](Macaw.Frame.Layers.Path.md): 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. - [Macaw.Frame.Layers.PercentileBand](Macaw.Frame.Layers.PercentileBand.md): The `percentile_band` kind (spec/04 §4.6), copied from visualize's `Visualize.Chart.Mark.Shapes` percentile band. - [Macaw.Frame.Layers.Polyline](Macaw.Frame.Layers.Polyline.md): The `polyline` kind (spec/04 §5.1): parallel coordinates, new in the second cut. - [Macaw.Frame.Layers.Rect](Macaw.Frame.Layers.Rect.md): The `rect` kind (spec/04 §4.12), copied from visualize's `Visualize.Chart.Mark.Generic` rect: a bar, a heatmap cell, a treemap tile. - [Macaw.Frame.Layers.Registry](Macaw.Frame.Layers.Registry.md): A layer registry (spec/04 §2): `kinds` by name, the `packages` it was built from in order, and its `digest`. - [Macaw.Frame.Layers.Rose](Macaw.Frame.Layers.Rose.md): The `rose` kind (spec/04 §4.11), copied from visualize's `Visualize.Chart.Mark.Shapes` rose. - [Macaw.Frame.Layers.Rule](Macaw.Frame.Layers.Rule.md): The `rule` kind (spec/04 §4.5), copied from visualize's `Visualize.Chart.Mark.Shapes` rule. - [Macaw.Frame.Layers.Segment](Macaw.Frame.Layers.Segment.md): 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). - [Macaw.Frame.Layers.Symbol](Macaw.Frame.Layers.Symbol.md): The `symbol` kind (spec/04 §4.7), copied from visualize's `Visualize.Chart.Mark.Shapes` symbol. - [Macaw.Frame.Layers.Text](Macaw.Frame.Layers.Text.md): The `text` kind (spec/04 §4.14), copied from visualize's `Visualize.Chart.Mark.Generic` text. - [Macaw.Frame.Layers.Tiles](Macaw.Frame.Layers.Tiles.md): The `tiles` kind (spec/04 §4.16), copied from visualize's `Visualize.Chart.Mark.Tiles`: a basemap of raster tiles beneath every other layer. - [Macaw.Frame.Layers.Violin](Macaw.Frame.Layers.Violin.md): The `violin` kind (spec/04 §5.1): a mirrored area per category, new in the second cut. - [Macaw.Frame.Layers.XBand](Macaw.Frame.Layers.XBand.md): The `x_band` kind (spec/04 §4.4), copied from visualize's `Visualize.Chart.Mark.Shapes` x band: an event span. - [Macaw.Frame.Legend](Macaw.Frame.Legend.md): 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"`). - [Macaw.Frame.Local](Macaw.Frame.Local.md): 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). - [Macaw.Frame.Maps.Choropleth](Macaw.Frame.Maps.Choropleth.md): `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. - [Macaw.Frame.Maps.Clusters](Macaw.Frame.Maps.Clusters.md): `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 `filter`s of the step's rows by `count`. New in the second cut. - [Macaw.Frame.Maps.Contour](Macaw.Frame.Maps.Contour.md): `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`). - [Macaw.Frame.Maps.Density](Macaw.Frame.Maps.Density.md): `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`). - [Macaw.Frame.Maps.Flows](Macaw.Frame.Maps.Flows.md): `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. - [Macaw.Frame.Maps.Hexbin](Macaw.Frame.Maps.Hexbin.md): `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`). - [Macaw.Frame.Maps.Map](Macaw.Frame.Maps.Map.md): `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. - [Macaw.Frame.Maps.Points](Macaw.Frame.Maps.Points.md): `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`). - [Macaw.Frame.Maps.Route](Macaw.Frame.Maps.Route.md): `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. - [Macaw.Frame.Maps.Tiles](Macaw.Frame.Maps.Tiles.md): `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`). - [Macaw.Frame.Maps.Voronoi](Macaw.Frame.Maps.Voronoi.md): `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.Output](Macaw.Frame.Output.md): The Frame's output targets (spec/10 §10.2), copied from visualize's `Visualize.Render.to_document/2`, `Visualize.Stylesheet` (`rules/1`, `classes/1`, `embed/1`), `Visualize.Render.to_png/2` and `Visualize.Chart.render/2` (`root: true`): a Frame's value as a standalone document, which no page CSP governs. - [Macaw.Frame.Package](Macaw.Frame.Package.md): `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). - [Macaw.Frame.Pipeline](Macaw.Frame.Pipeline.md): 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`. - [Macaw.Frame.Placements](Macaw.Frame.Placements.md): 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). - [Macaw.Frame.Preset](Macaw.Frame.Preset.md): 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. - [Macaw.Frame.Reach](Macaw.Frame.Reach.md): 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). - [Macaw.Frame.Read](Macaw.Frame.Read.md): 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. - [Macaw.Frame.Render](Macaw.Frame.Render.md): 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. - [Macaw.Frame.Render.Strip](Macaw.Frame.Render.Strip.md): 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. - [Macaw.Frame.Render.Target](Macaw.Frame.Render.Target.md): 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`. - [Macaw.Frame.Requests](Macaw.Frame.Requests.md): 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. - [Macaw.Frame.Scales](Macaw.Frame.Scales.md): Scale ownership (spec/03 §2): a frame owns its scales, and this module realizes them. - [Macaw.Frame.Selection](Macaw.Frame.Selection.md): 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.** - [Macaw.Frame.Slots](Macaw.Frame.Slots.md): 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). - [Macaw.Frame.Sparkline](Macaw.Frame.Sparkline.md): 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. - [Macaw.Frame.Style](Macaw.Frame.Style.md): 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. - [Macaw.Frame.Style.Defaults](Macaw.Frame.Style.Defaults.md): 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. - [Macaw.Frame.Style.Generated](Macaw.Frame.Style.Generated.md): 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). - [Macaw.Frame.Style.Inherited](Macaw.Frame.Style.Inherited.md): 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. - [Macaw.Frame.Style.Motion](Macaw.Frame.Style.Motion.md): 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 `