---
status: accepted
date: 2026-10-08
---

# A node turns about its pivot: `rotate` and `scale` on any node, paint-only, carried by the clip entry

> **Accepted and built 2026-10-08**, the day it was proposed; the
> *Amendment* at the end records what the building changed, and a second
> (2026-10-28) adds a stretch, `scaleX` / `scaleY` (backlog C149). Asked by
> berainder (backlog F131): a card that tilts a few degrees towards the
> side it is being dragged to is the swipe's whole look, and the app
> tweened `width` and `height` instead and called it depth. [ADR
> 0041](0041-a-mask-turns-about-its-centre.md) gave `rotate` to a
> `path` alone and listed "a transform on any node" under *Considered
> options* as "the general thing, and a different document" — every
> quad kind turns, glyphs leave the pixel grid, the clip stops being a
> rect in framebuffer space, a scroller inside a turned box scrolls
> along a tilted axis, hit-testing inverts a matrix per ancestor, the
> access tree's rects become bounding boxes. This is that document. It
> takes each of those costs, decides which to pay and which to decline,
> and lands on a turn and a uniform scale about a pivot, **paint-only**:
> layout is what it was, and everything after layout — the quads, the
> clip, the hits, the access rect — is drawn, cut, hit and read through
> the transform. [ADR 0005](0005-the-paint-vocabulary.md)'s paint
> vocabulary gains two slots and no quad kind; ADR 0041's path turn
> composes under this one and is otherwise untouched.

## Context

- **What a turning box costs today: everything.** No node has a
  transform. `slide`, `enter` and `exit` move and fade; ADR 0025 gave
  layout a scale factor (the DPI), not a rotation; backlog V7 declined
  a layout `zoom` — a subtree laid out in its own logical space — until
  a second app asks for it, and berainder did not: it asked for the
  *look* of a tilt, with the card taking the room its upright self
  takes. A view that wants one today fakes it (width and height eased
  against each other), or draws the card as a `path` (which cannot
  hold a photo or text), or goes to a framework with CSS transforms.
- **The vertex stage already turns.** ADR 0041 put a path's turn in the
  quad: the `blur` slot carries radians for kinds 1 and 3, and
  `vs_main` turns the four corners about the quad's centre
  (`shader.wgsl`). `local` and `uv` stay the quad's own, so the fragment
  stage's SDF, border, radii and image sampling come out right on a
  turned quad without knowing it turned. The one thing that does not
  turn is the clip, tested against the framebuffer position.
- **The clip is already a table.** Since ABI 11 a quad names a
  [`Clip`] entry in `DisplayList::clips` rather than carrying its rect
  (`display.rs`): one entry per *distinct* clip a frame reaches, a
  handful, interned by run length as emission walks paint order. Every
  quad under one card names the same entry. An entry is the space a
  quad is painted in; today that space is "framebuffer, cut to this
  rounded rect".
- **Hits are by shape.** ADR 0026 made a region's hit test the rect and
  then a shape inside it — rounded corners, a stroke's pieces, a
  polygon, a path's outline — in the region's own coordinates
  (`input.rs`, `contains`). A region's test is local already; what it
  lacks is the step from the pointer to local.
- **The slots are a list.** `anim::Slot` names nine things a transition
  tweens; an entrance and a keyframe stop name five of them through
  `Slots` (`slots.rs`), parsed in one place for every binding. A tenth
  slot is a row in that enum, a lane in that struct and a branch in
  `ease_transitioning`.
- **What a turn is for, in the apps this repo has seen.** A card that
  tilts with a drag and springs back; a pulse (`scale` 1 → 1.05 → 1 on
  a cycle); a wobble (`rotate` ±0.01 on a cycle); a spinner that is a
  box and not an arc; a chip that enters at `scale: 0.8` and settles;
  an icon that flips. Every one is a turn or a uniform scale about a
  point in the box, and every one wants to **tween**. None is a skew,
  a matrix or a 3D flip.

## Decisions

1. **`rotate`, `scale`, `pivotX`, `pivotY` on any node.** `rotate` in
   turns, clockwise with y down, 0 for none — the unit a `path`'s
   `rotate` and a gradient's `angle` already take. `scale` a uniform
   factor, 1 for none. `pivotX`/`pivotY` fractions of the node's box,
   `0.5, 0.5` — the centre — by default, the point the turn and the
   scale are about. In Rust `NodeSpec::rotate(turns)`, `scale(f)`,
   `pivot(fx, fy)`; JSX `rotate`, `scale`, `pivotX`, `pivotY`; Lua
   their snake case; C `rotate`, `scale` (0 is 1), `pivot_set`,
   `pivot_x`, `pivot_y` on `KuiSpec`; Odin the generated `Spec` fields.
   Container rows — a box, an image, an edit, a `line`, a `polygon`;
   on a `text` they are dropped with the `unknown-prop` warning every
   container row on a text raises (put them on the box around it). On
   a `path`, `rotate` and `pivot` keep ADR 0041's meaning — the path's
   own turn about a point in `d`'s coordinates, which does not tween —
   and `scale` is the node's; a path that wants a tweened turn is put
   in a box. The two should become one; see *Open questions*.
2. **Paint-only.** Layout does not see the transform: the node takes
   the room its upright self takes, its siblings do not move, a scroller
   around it scrolls the untransformed content size, `onLayout` reports
   the layout rect, `rect_of` and `layout_of` answer it. A transform is
   `opacity`'s kind of row — something applied after layout to
   everything the subtree draws — and not `width`'s. V7's layout zoom
   stays declined on its own terms; nothing here is it.
3. **A node's whole subtree turns with it, about the node's pivot.**
   Every quad the subtree emits — backgrounds, borders, shadows,
   glyphs, images, fragments, segments, masks — is drawn through the
   same similarity: `pixel = R(angle) · scale · p + t`, with `t` chosen
   so the pivot stays put. Transforms **nest** by composition: a node
   turned inside a turned node turns about its own pivot in its
   parent's turned space. A float anchored to its parent turns with the
   parent as its content does; a viewport float does not; a float
   anchored to a node by key (the devtools' tabs) does not.
4. **The clip entry carries the space.** [`Clip`] gains three fields:
   `transform` — angle in radians, scale, `tx`, `ty`, the similarity
   every quad naming the entry is drawn through — and `inner` with
   `inner_radius`, a second clip in the quad's own space, before the
   transform. The entry's `rect` and `radius` stay what they were: the
   clip in framebuffer space. A clipping node *outside* any turn
   narrows `rect`; one *inside* a turn narrows `inner`, since its box is
   in the turned space. Between two nested turns a clip is approximated
   by its bounding box in the inner space (its corners drop to square);
   a tilted card inside a tilted card inside a scroller is the one
   shape that pays, by a sliver at a corner. A frame with no transform
   interns exactly the entries it interned before, with the identity
   transform and no inner clip, so the run-length intern and every
   backend that ignores the new fields are unchanged.
5. **The shader turns the corners and tests two clips.** `vs_main`
   applies the entry's transform after a path's own turn (decision 1 of
   ADR 0041 composes under it, as that document said it would), and
   passes the pre-transform position down as a varying. The fragment
   stage tests the framebuffer clip against the framebuffer position,
   as before, and the inner clip against the pre-transform position —
   an affine function of position, so the interpolated varying is
   exact, and no inverse is computed per pixel. A segment's capsule SDF
   reads the pre-transform position too, so a turned stroke is a
   stroke. The instance grows by three `vec4`s (48 bytes); the quad on
   the wire does not change. A fragment pipeline's epilogue
   (`fragment::EPILOGUE`) tests the inner clip the same way, so a
   `fragment` inside a turned card is cut by the card.
6. **Hit where drawn.** A region under a transform carries it and the
   inner clip; `contains` unprojects the pointer into the node's space
   and tests the rect, the shape and the inner clip there, and the
   framebuffer clip with the pointer as it is. A tilted card is grabbed
   on its tilted edge; its rounded corners still miss; a press in its
   box off its outline falls through. Drag payloads stay in viewport
   px — what a drag means to the app that moves the card is where the
   pointer is on screen. A scroll region inside a turned node is hit
   the same way, so the wheel over a tilted list scrolls it; what moves
   is the content along the node's own axes, since the offset is
   applied in layout and the turn after.
7. **The access rect is the bounding box.** Assistive technology gets
   an axis-aligned rect, so a turned node's is the bounding box of its
   turned layout rect, cut to the framebuffer clip as every rect is.
   Reading order and actions are untouched.
8. **A turn and a scale are one slot, and it tweens.** `Slot::Transform`
   carries `[rotate, scale, 0, 0]`: with a `transition` a card follows
   the pointer while a drag holds the transition off and springs back
   when it is on, as `slide` does for position. An entrance names
   `rotate` and `scale` (`enter: { scale: 0.8 }` settles a chip in), an
   exit names them (`exit: { rotate: 0.1, scale: 0 }` spins a card
   away), a keyframe stop names them (`keyframes: [{ scale: 1.05, at:
   0.5 }]` pulses; `[{ rotate: 0 }, { rotate: 1 }]` spins a box) —
   through `Slots`, so every binding gets them from the one parser. A
   lane a stop or an entrance leaves out is the node's own value,
   which for `scale` is 1 and not 0: a stop that names only `rotate`
   does not shrink the box.
9. **A ghost keeps its turn.** A departing subtree is replayed with the
   transform its nodes declared, the root's eased toward the exit's;
   the turns of ancestors outside the picture — which may be gone — are
   not replayed, as their clips are not.
10. **What is declined.** A matrix, skew, 3D, a per-axis scale, a
    transform origin outside the box (`pivot` past 0..1 is allowed and
    means what it says; it is not clamped). CSS's `transform` is the
    general thing; a turn and a uniform scale are what every app has
    asked for, and each is one float that tweens. A `backdropBlur`
    under a turn blurs its upright box (the blur reads the framebuffer
    region); `pixelSnap` snaps the layout rect before the turn, so a
    turned snapped box is a turned box. Both are said in `props.md`.

## Considered options

- **The transform on the quad.** Four floats on every quad of every
  frame, for a feature almost no quad uses; and the inner clip has no
  room there at all. The clip table exists for exactly this reason
  (ABI 11), and a quad under a turned card already names the entry its
  siblings do. Not taken.
- **Rasterize the subtree offscreen and draw the texture turned.** One
  quad, exact clipping, and the way a browser composites a transformed
  layer. It costs a render target per turned subtree per frame, a copy
  of every pixel under it, and text rendered to a texture and
  resampled — blurry at any angle, which is the one thing a glyph
  turned by its own quad is not. The backdrop pass (F129) does this
  for a blur because a blur needs the pixels; a turn does not.
- **A transform on the clip only, hits and access left upright.** Half
  the build and a lie: a tilted card hit on its upright rect is grabbed
  in the air beside its corner. ADR 0026's shapes make the honest
  version cheap.
- **Unify the path's `rotate` with this one now.** The path's turn
  would become a node transform, its `pivot` a point in the box, the
  square box ADR 0041 sweeps unnecessary, and its turn would tween for
  free. It is the right end state and the wrong day: `path` is
  released, its `pivot` is in `d`'s coordinates by a decision this
  repo argued, and `path_coverage.rs` pins the sweep. Left open below.
- **A per-axis scale (`scaleX`/`scaleY`).** A flip (`scaleX: -1`) is
  the one use, and a flip of a box with text in it mirrors the text.
  The slot's lanes have room for it if an app asks.

## Consequences

- **A tilt is one row and it tweens.** berainder's card is
  `rotate(lean * 0.03)` with its transition held off while dragging,
  and the spring back is the transition it already has.
- **The instance grows.** Three `vec4`s per quad in `kui-wgpu`: half a
  megabyte more upload on a 10,000-quad frame, a few microseconds.
  Nothing on the core's side of the wire grows per quad; the clip
  table's entries grow from 32 to 80 bytes, and a frame has a handful.
- **The C ABI bumps to 27.** `KuiClip` grows (a `[lib]` struct a host
  strides with its own `sizeof`), `KuiSpec`, `KuiEnter` and
  `KuiKeyframe` gain fields, and the conformance digest hashes the
  whole clip entry. The Node `clips()` buffer's stride grows with it;
  `decodeClips` reads the new fields.
- **Every binding gets the four rows and the two slot lanes** from the
  schema and the one slot parser; the Odin layer regenerates its
  `Spec`, `Enter`, `Keyframe` and `Clip`.
- **Glyphs leave the pixel grid under a turn**, as a turned path's
  mask does: a turned text is resampled at its angle and reads
  softer. A text that must stay crisp is not turned. Under a scale, the
  SDF ramps scale with the box, so a box scaled up has an edge
  `scale` times as soft; a UI scale stays near 1.
- **The devtools' facts show `rotate` and `scale`** beside `opacity`.

**2026-11-04 update:** [ADR 0077](0077-kit-presentations-as-code.md)
adds output-resolution rasterization for enlarged static glyphs, including
fixed presentation canvases. Rotation still resamples glyphs, and SDF
edge ramps retain the scaling behavior described above.

## Open questions

- **The path's own turn.** When a release can break `path`, its
  `rotate` should be this one — tweened, composed, about a pivot in
  the box — and `pivot` should take the box's fractions as every other
  node's does; ADR 0041's square sweep goes with it. Condition: the
  first app that wants a path's turn to tween.
- **Text sharpness under a turn.** A glyph mask is bilinear-sampled at
  its angle. If a turned paragraph is ever asked for — not a card with
  a word on it — the answer is a supersampled mask or a rasterization
  at the angle, both of which the atlas's turn-bin rejection in ADR
  0041 already priced.

## Measurements to take

- `frame_10k_rects` and the guarded `frame` rows: the transform walk is
  behind `Tree::any_transform`, so a frame with none should read as it
  did (the guard allows the noise floor).
- A frame of 1,000 turned boxes, each its own clip entry, against the
  same frame upright: the cost of the per-node compose and the
  bounding-box cull. Taken 2026-10-09 (RG155): `frame_1k_turned_rects`
  reads ~136 µs against `frame_1k_rects`' ~79 µs, about 56 ns a turned
  node — its own interned entry (a turn about its own box makes every
  entry distinct), the compose, the bounding-box cull.

## Amendment: what the building changed (2026-10-08)

- **`KuiSpec` is 744 bytes, not 728.** The five appended fields land
  after the 8-byte-aligned tail, and the parity test said so.
- **`pivot_set` is two bits.** A C host setting one axis — the parity
  test's one-row-at-a-time check was the first — needs to say which, so
  `KUI_PIVOT_X` and `KUI_PIVOT_Y` are bits as `KUI_VALUE_*` are, and the
  Odin lowering ORs them in. `scale` stays "0 is 1".
- **The slot bits are `KUI_KF_ROTATE` 64, `KUI_KF_SCALE` 128,
  `KUI_ENTER_ROTATE` 64, `KUI_ENTER_SCALE` 128.**
- **A glyph cull reads the clip in the quad's space.** The text, cell
  and editor painters compared glyph positions against the entry's
  framebuffer rect; under a turn that is the wrong space. They read
  `Clip::visible` — the inner clip narrowed by the outer one pulled
  back through the transform — which is the rect itself when nothing
  turns.
- **The pre-transform position is a varying, not an inverse.** `pre` at
  location 10 of `VsOut`; the fragment epilogue takes it at the same
  location, with `inner` and `inner_radii` at 11 and 12. A fragment
  entry point lists a subset of the vertex outputs, so an app's
  fragment compiled against the old prelude still links.
- **A scrollbar's thumb under a turn is hit upright.** The bar is drawn
  turned (its quads name the scroller's entry) but its track is tested
  as an upright rect. A turned scroller is a demonstration shape, and
  the wheel over it is right; the thumb waits for an app that drags one.
- **What a press means for text is read on the upright layout.** The
  caret a press places, the drag that extends it, a selection drag, a
  grid's cell, `text_hit` and a sink's `line` / `byte` pull the pointer
  back through the node's turn first (`Core::unturned`), and
  `caret_rect` and the IME anchor are the caret as drawn. Alpha.46's
  pre-tag pass found them reading the pointer upright; built the day
  after the tag (RG155), with the square inner clip ramped over `AA` as
  a rounded one is. A sink's lines are each read through their own
  turns; a turn nested inside a selectable scope is read against the
  scope's turn.
- **The Odin layer was regenerated by hand.** No Odin ran on the
  building machine (its binary wants an LLVM the machine does not have),
  so `kui_c.odin`, `layout.odin`, `generated.odin`, `types.odin` and the
  generator's policy were written as the generator writes them, and
  CI's `odin.nu gen --check` is what says whether they match.
  It did not, at first: `KuiSpec` embeds `KuiEnter` twice (`enter`,
  `exit`), whose eight new bytes moved every field after them by 16,
  and the hand-written `layout.odin` moved only the tail. Found while
  building F133 (2026-10-09) and rewritten from the C mirror's own
  asserts (`target/kui-abi-assert.c`), all 77 offsets, with every field
  of every mirrored struct checked to have one.
- **Lua's `path` strips the row.** Lua reads every key of a table as a
  schema row before an element reads its own, so `path { rotate = }`
  turned the node as well as the mask and the `path` scene's digest
  moved; the arm now drops the node transform the generic walk read.
  Node's encoder had the same fault and the same fix (its `path` case
  writes the rows without `rotate`): the full run that cleared this ADR
  loaded a stale addon and passed, and the next one, building F133,
  caught it. C and Odin take a path's turn as an argument.
- **The conformance digest hashes twenty words a clip** in all five
  adapters, and the `transform` scene is the first whose digest moves
  if a turn, a scale or an inner clip does.
- **Measured, and given back (2026-10-09).** The first build passed
  the bench guard against `v0.1.0-alpha.44` with every frame that turns
  nothing 4% to 9% slower. Investigated before merging, against the
  build's own parent (`acbbbb4d`, RG154 — which reads as alpha.44 does,
  so all of it was this ADR's), by alternating the two bench binaries
  and profiling with `sample`. Six costs, each found by an experiment
  before it was fixed:

  1. **The paint path carried the whole clip.** `Paint` held the
     80-byte `Clip` by value into `emit_node` and `paint_box`, which
     rescaled all twenty floats for every node. It holds the clip's rect
     and id now; a leaf that culls — a text, a grid, an editor — reads
     the scaled entry from the display list, and the table rules look
     the logical clip up by node.
  2. **The walk carried it too.** `emit_frame` built an 80-byte value
     per node and read its rect. It carries the rect, the cull rect and
     the id; the clip stays in `self.clips`, which is pushed in tree
     order instead of filled and overwritten, and children of one
     clipper share one intersect and one intern through a two-index
     cache (a list's rows were interning the same 80 bytes each).
  3. **A tenth tween slot on every transitioning node.** 96 bytes a
     node whether it turned or not. The turn's tween lives in
     `AnimStore::turns`, for the nodes that turn.
  4. **The test for a turn inside `ease_transitioning`.** It is eased
     after the other slots, in `ease_transform`, out of line, behind a
     two-box check in `ease_spec`; `ease_transitioning` is alpha.44's.
  5. **An inlining cliff.** The drive body shared by the array slots and
     the turn was force-inlined into both callers, so `Tween::eased_at`
     and `spring_step` gained a second caller and stopped being inlined —
     4% on the transitioning row by itself. The shared body is the
     out-of-line function now, as `NodeAnim::drive` was, and the
     helpers inline into it again.
  6. **A test that stopped `prepare_spec` inlining.** The check for a
     turn in `ease_spec` scanned the keyframe stops inline, which made
     `prepare_spec` too big to inline into `open_content`, and every node
     paid a call (+2% on 10,000 gradient cells). The scan is out of line.

  Smaller: the hit region's turn is boxed (36 bytes inline was 1% on a
  thousand buttons), the transform inside the interact group is boxed
  (so a gradient or a hover allocates the group in the class it did),
  the leaves that do not cull by the clip never copy it, and the
  turned-space cull is asked only on a frame that turns. Medians against
  RG154, on mains power:

  | row | first build | now (median) | now (fastest) |
  | --- | --- | --- | --- |
  | `frame_10k_rects` | +5.9% | +0.5% | +0.5% |
  | `frame_1k_typical` | +4.7% | −0.3% | −0.1% |
  | `frame_10k_rects_with_text_and_hits` | +4.5% | −0.3% | −0.6% |
  | `frame_10k_segments` | +5.2% | +0.2% | +0.6% |
  | `frame_10k_rects_with_access_tree` | +4.1% | −0.1% | −0.5% |
  | `list_10k_rows_virtual` | +8.1% | +0.4% | +2.1% |
  | `frame_1k_curves` | +1.1% | +0.1% | +0.3% |
  | `frame_10k_rects_all_transitioning` | +11.0% | −2.7% | −3.9% |
  | `deep_nesting_64_levels` | +5.7% | +3.0% | +0.5% |
  | `frame_10k_rects_with_gradient` | +6.2% | +1.2% | +1.6% |
  | `frame_10k_rects_all_declaring_exit` | +13.6% | +4.6% | +0.6% |
  | `frame_10k_rects_rounded_clip` | +17.4% | −6.1% | −6.0% |

  `deep_nesting_64_levels` never clips or turns, and what moved in it is
  layout, whose code is unchanged and the same size: placement, not
  cost. The exit row's medians span 15% on this machine, and its fastest
  samples are level; what it keeps is its entrance and exit, 16 bytes
  bigger each for `rotate` and `scale`, which every node declaring one
  allocates. The rounded clip is faster than before ADR 0043 because a
  clipper's children now share one intersect. Two
  traps for the next one: the Mac on battery, and another session's
  builds, made the transitioning row unreadable (medians spanning 2×)
  until the race waited out `rustc` and read the fastest sample beside
  the median; and the guard's base was alpha.44, which hid that RG154
  sat between it and this build.

## Amendment: a stretch, `scaleX` / `scaleY` (2026-10-28)

Decision 10 declined a per-axis scale until an app asked, and *Considered
options* named a flip as its one use. Kit asked, with another: its line
chart's y glide (backlog C149) asked for a frame every frame for 240 ms
when the rounded range changed and ran the view in each, and the fix —
the glide as a transition on the plot's vertical scale and offset — needs
the plot's lines drawn shorter or taller than their box. A uniform scale
squeezes the time axis with it. So:

1. **`scaleX` and `scaleY` on any node**, factors along the node's own
   axes, multiplying `scale`, 1 for none; about the pivot, applied before
   the turn — `pixel = R(angle) · scale · diag(sx, sy) · p + t`. Rust
   `NodeSpec::scale_x` / `scale_y`; JSX `scaleX` / `scaleY`; Lua their
   snake case; C `KuiSpec.scale_x` / `scale_y`, 0 being 1 as `scale`'s
   is; Odin the generated fields. Paint-only, everything decisions 2 to
   7 say of a turn: layout, the room and `onLayout` are the node's own;
   the quads, the clip, the hits and the access rect (its bounding box)
   are stretched.
2. **The clip entry carries the stretch.** `geom::Transform` is an
   affine map kept as a turn, a uniform scale, a stretch and a move:
   `R(angle) · scale · U · p + t`, `U = [[sx, shear], [0, sy]]`. `shear`
   is never declared: it is what a turned node nested inside a stretched
   one composes to (the product's QR split), so nesting stays exact and
   no case is approximated. A frame that stretches nothing composes the
   way the similarity did, number for number. `KuiClip` takes `stretch`
   (sx, sy, shear) after `transform`, 23 words a clip; the conformance
   digest hashes them in all five adapters, and the `transform` scene
   stretches a box about its foot holding a turned one. `kui-wgpu`'s
   instance grows by one `vec4` (`stretch`, location 12), applied to the
   corner before the turn, branchless; a renderer that ignores the words
   draws a stretched box unstretched.
3. **It tweens as the transform slot's second leg.** The slot's four
   lanes were taken (`rotate`, `scale`, and C105's `dx` / `dy`), so the
   stretch is a tween of its own, `[sx, sy]`, kept beside the turn's in
   `AnimStore::stretches` for the nodes that stretch — a node that only
   turns carries nothing for it. It eases from none when a node already
   drawn starts declaring it, back to none when it stops, and an
   entrance, an exit or a keyframe stop names `scaleX` / `scaleY` through
   `Slots` (`scale_x` / `scale_y` as Lua writes them; C's bits
   `KUI_ENTER_SCALE_X` / `_Y`, `KUI_KF_SCALE_X` / `_Y`). A ghost keeps
   its stretch, eased toward the exit's.
4. **What is inside is drawn through it.** A glyph is a quad of its
   upright raster, so a stretched text is drawn wide or tall and
   resampled, as a turned one is (*Consequences*); a segment's capsule is
   read before the transform, so a stroke stretched down is thicker where
   it runs across; an SDF edge ramps stretch with the box. None of it is
   corrected: a stretch is for a box of lines and shapes on the way to a
   factor of 1 — a chart's plot gliding to its range — or for a flip, and
   text that must read crisp is put outside it. A mip level reads the
   transform's larger axis.
5. **Kit's line chart glides on it.** The lines are drawn for the new
   range at once, in a box keyed by the glide that enters at `{ scale_y,
   dy }` — where the range on screen had them, the stretch about the
   plot's top — and settles out of a cubic over 240 ms; gridlines and
   labels are keyed by value and slide. The frames between are built
   from the kept tree (`Core::reframe`, backlog C138).
