Skip to content

M3 Implementation - #2

Merged
Jonathan-Schaefer-git merged 27 commits into
mainfrom
dev
Oct 5, 2026
Merged

Jonathan-Schaefer-git merged 27 commits into
mainfrom
dev

Conversation

@Jonathan-Schaefer-git

Copy link
Copy Markdown
Collaborator

What this changes

Why

M3 Implementation => Animations

Checklist

  • dotnet build is warning-free
  • dotnet test is green
  • The TeX gates ran, or the output says SKIPPED: and I have said so below
  • New public API has a runnable example in docs/guide.md or examples/
  • CHANGELOG.md updated under [Unreleased], if this is user-visible

Jonathan-Schaefer-git and others added 27 commits August 21, 2026 14:20
The tag `0.2.0` exists, the merge to `main` is #1, and api.nuget.org lists
0.2.0 for all seven packages — but the changelog still said "Complete, and not
yet published to nuget.org". That is M2 phase 7's own failure mode arriving one
commit after the sweep that fixed it: notes kept current, public record left
behind.

The heading had also drifted from the convention every other release uses
(`## v.0.2.0` against `## [0.1.1] — 2026-08-20`), so it is normalised and given
its compare link.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The encoder's own comment predicted this milestone and got the reason wrong:
"M2's Skia backend writes PNGs through libpng anyway, so this may well never
need to grow." That holds for the Skia backend and fails for TikZ's sidecar
raster, which must not acquire a native dependency to write a `.png` next to a
`.tex`. Second consumer, so F2's promote-on-the-second-consumer rule applies.

It is pure allocation-only F# with no BCL surface beyond arrays and
`Convert.ToBase64String`, so it satisfies Core's zero-dependency and Fable
rules unchanged. `Png.fs` sits after `Scene.fs` because `dataUri` takes an
`Image`.

No alias was needed, and the plan expected one. `Png` was a *sibling* of `Svg`
inside `namespace Marey`, not nested under it, so its fully-qualified name was
`Marey.Png` before the move and is `Marey.Png` after it. `SvgBackend.fs`'s
`Png.dataUri` call resolves to Core with no edit, and so does any caller
downstream.

738 tests green; all 43 goldens byte-identical without MAREY_UPDATE_GOLDEN,
which is the real proof the move was inert — `raster.svg` and
`all-nine-nodes.svg` both embed the encoder's output as a base64 data URI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`render`, `toFile` and `toSvg` all named `string` in their signatures. That is a
claim about the *artifact*, smuggled into the signature of a function that only
forwards it — and a raster backend does not fit through it, because a PNG has no
UTF-8 encoding and a PDF's is a lie.

`render` is generalised over the renderer's return type rather than gaining a
`renderBytes` sibling: one type parameter subsumes both, and `SvgBackend.render`
still yields a `string` with nothing annotated at the call site. `toFileBytes`
is a separate name regardless, because `WriteAllText` has an encoding and
`WriteAllBytes` does not — generalising `toFile` over the same `'a` would mean
branching on a runtime type inside it. `toFile` and `toSvg` are untouched in
both signature and behaviour, so they keep their UTF-8-no-BOM guarantee for the
golden masters.

The `IBackend` protocol never had this problem — `Finish` returns `unit` and the
artifact is exposed by the concrete type — so `renderTo` needed no change.

D60 weighed the general form against an inference risk (§12.2), so that risk is
now a test rather than an argument: `render still infers string from the
renderer alone` calls `String.length` on an unannotated binding, which only
compiles if inference pinned it. The byte path's own trap gets one too — a
renderer returning a BOM's bytes followed by 0xFF 0xFE, which no text encoding
round-trips, so an encoding acquired anywhere on the way to disk fails the test
instead of producing a file no decoder opens.

743 tests green (5 new); all 43 goldens byte-identical; every example and guide
snippet compiles untouched, which is what ExampleTests and GuideTests assert.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`RenderedDocument` — a document plus the files it refers to but does not
contain. Deterministic in both name and order, because two renders that
produced `plot-0.png` and `plot-1.png` in swapped order would be a golden diff
for no reason.

Deliberately *not* a member of `IBackend`. A backend that needs no sidecar does
not implement this and is not made to: the SVG backend keeps inlining a `data:`
URI, because a single self-contained file is the property that makes SVG the
notebook and golden format. That asymmetry is stated on the type rather than
discovered by the first person to look for `SvgBackend.renderWithAssets`.

`Name` is a file name and not a path, because a `.tex` and its sidecar have to
agree on a *relative* name and only the caller knows where the `.tex` is going.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Supersedes D31's `Rasters = false` paragraph. That `false` was correct for its
reason — "an honest raster needs a sidecar .png and \includegraphics, which
breaks the one-string-output contract" — and D31 named `renderWithAssets` as the
door. D64 built the door, so the reason expired rather than the judgement being
wrong. This is the first capability in the project to go from false to true.

**The capability belongs to the entry point, not to TeX.** `TikzBackend.render`
still promises a bare `string`, so it degrades against its own reduced caps and
leaves the raster out; `renderWithAssets` and `renderToFileWithAssets` return a
`RenderedDocument` and draw it. Emitting the `\includegraphics` and discarding
the bytes would produce a `.tex` that fails to compile with a missing-file
error — the same class of wrong output §5 exists to prevent, arriving as
somebody else's build error. That split is why `golden/raster.tex` and
`golden/all-nine-nodes.tex` are byte-identical across this change.

**No y flip, which is D29 again from the other side.** `Image` rows run
top-first and `\includegraphics` places row 0 at the top of its box; TeX is
y-up, so the rows land the right way up with nothing done. The SVG backend
needs an extra in-box flip for precisely the opposite reason.

The four corners are projected individually rather than one corner plus a size,
for D57's reason in a different mark. A CTM that rotates or shears cannot be
expressed as a node width and height at all, so that case is detected and
emitted through TikZ's `cm` — with `transform shape`, which is the half that is
easy to leave out: without it the node's *position* is transformed and its
*contents* are not, so a rotated image lands in the right place drawn the wrong
way round.

Asset names are positions in traversal order, no hash and no GUID, so a render
is reproducible in name as well as in bytes. `renderToFileWithAssets` writes
them beside the `.tex`, because that is the only place `\includegraphics` looks
without the host document setting `\graphicspath`.

Three tests inverted and each says so where it inverted, including the two
whose names contained the old claim. `Preamble` gains `graphicx`.

744 tests green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The producer D64 requires. `renderWithAssets` shipped one commit ago with no
caller, and D10 records what happens then: `Capabilities` was "a record nobody
reads" until the TikZ backend needed it. `grep -rn Raster src/Marey.Plot` used
to return nothing at all — `Chart.heatmap` is *tiles*, so `figure-heatmap.svg`
contains no raster and never did — and this is the first thing anywhere above
the IR that produces one. §5's ninth `Node` case stops being dead weight.

`GeomImage` is also the only geom in the file that does not bottom out in
`Path`, `Markers` or `Text`, which is worth stating because §5.5's standing
claim is that none of them needs to. D55 does not apply to it and the reason is
recorded on the case: it carries a whole image and one box — scalars, not a
per-point array — so a renumbered channel batch draws the same image in the
same place, correct rather than lucky.

The box is projected corner by corner, D57's correction applied before it could
become the same bug a third time. A mis-sized pixel buffer is refused at the
constructor rather than padded: the backends pad and comment, which is right for
a scene built by hand and wrong where the caller has the array in their hand.
Under a non-identity coord the corners' bounding box is used and the pixels are
*not* resampled along the warp — a limit, stated on the case, because resampling
means a rasteriser inside a zero-dependency package and D64 rules that out by
name.

**The gate is the golden pair.** `figure-image.tex` names a file,
`figure-image.png` is that file, and the test compiles them together under
pdflatex with the sidecar written beside the `.tex` — so an `\includegraphics`
pointing at a file nobody wrote fails as a TeX error rather than as a blank
region nobody notices. The committed `.png` is a binary baseline, which §13
otherwise argues against; it is admissible here because the bytes come from
Marey's own zero-dependency encoder over a hand-written pixel array, and because
it is the only place that encoder's output is checked at all — it has been in
the tree since M1 and every test of it until now went through base64.

Orientation is the one property no coordinate test can reach: a flip applied
wrongly to *both* backends satisfies cross-backend agreement. So the fixture's
top row is bright and its bottom dark, and `Raster.meanLevel` compares the
halves — `coverageIn` cannot see this bug, because a flipped image has ink in
the same box and the same amount of it. Verified non-vacuous by inverting the
fixture: "the image is upside down or missing: upper mean 117.7, lower mean
148.6".

`TexToolchain.compileWith` becomes a projection of `compileAssetsWith`, keeping
the file's rule that there is exactly one implementation of the engine plumbing.

753 tests green (6 new plus the pair); no existing baseline moved.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The third implementation of the IBackend contract, and the first whose artifact
is bytes. It is the eighth package and the only one in the solution with a
third-party PackageReference, which is why M2's plan split this milestone out of
the grammar release.

**netstandard2.1, measured rather than assumed** — the plan required that.
SkiaSharp 4.151.1 ships a netstandard2.1 assembly, so this backend targets the
same framework as every other one and nothing about the packaging story changes.
SkiaSharp 4 also deprecated every in-place edit on SKPath in favour of
SKPathBuilder, which TreatWarningsAsErrors turns into a compile error rather
than a note for later.

**Geometry is pre-transformed and the canvas matrix stays the identity**, for
D15 and D30's reason, which is stronger here than for the text backends: Skia
scales the pen with the canvas matrix exactly as SVG does with a group
transform, and Stroke.Width, Dash, DashOffset and MarkerBatch.Size are all in px
with no per-property opt-out. That also keeps this backend inside the
cross-backend oracle. The one canvas matrix in the file is the raster's, for the
same reason SVG emits a transform attribute there and nowhere else: an image is
defined by a box, so there are no vertices to pre-transform.

**Semantics = false is the first of its kind in the project.** A PNG has nowhere
to put an aria-label, so Degrade.forCaps now actually strips Annotated — which
Capabilities.full's comment warns about and which no scene had ever had done to
it. The cost is real and accepted: §5.3's structure is not reviewable through
this path.

TextShaping stays false, and a test asserts it. Phase 3 flips it; advertising
shaping before the shaper exists would be a lie in the one place the flag exists
to tell the truth. This phase deliberately lays out against ApproxTextMeasurer
so the traversal can be compared with the SVG backend's before shaping is
allowed to move anything — when the panel rectangle moves next phase, it is a
result rather than a regression.

Three places the two targets disagree and the difference is resolved toward SVG,
because §6 says to treat it as the spec: a LineTo with no preceding MoveTo
(Skia draws from the origin, putting a stray hairline across the figure), an
odd-length dash array (Skia rejects it, SVG repeats it), and an all-zero dash
array (Skia rejects it, SVG draws solid).

D66: the tests stay in Marey.Tests and skip loudly, because a second test
project is a second place for a gate to rot. Availability is probed by rendering
rather than by looking for a file — the failure being guarded against is a
DllNotFoundException three frames down.

**Gate 6 caught itself being vacuous.** The zero-dependency assertion first
searched AppDomain.CurrentDomain.GetAssemblies(), which is order-dependent
because .NET loads lazily: it reported "not loaded" under --filter and passed
with the full suite. It now loads by name through the deps file, the path a
consumer's application takes, and a companion test asserts that the Skia backend
*does* reference SkiaSharp — so five empty reference lists cannot be mistaken
for five clean ones.

publish.yml's package-count literal goes 7 to 8; dotnet pack confirms eight.

787 tests green, no skips, no golden moved. All fifteen corpus scenes render
with ink. The figure and the image were also rendered and looked at by hand,
which is the D33 discipline: every automated check here would pass on a
plausible-looking blank.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`SkiaTextMeasurer` over `SKShaper`/HarfBuzz — the second `ITextMeasurer` the
project has ever had, and the first for which `TextShaping = true` is not a
lie. `Chart.renderTo` needed no change, which is D8's M0 claim finally tested.

D61: Skia lays out against its own shaper, and a cross-backend comparison
states its measurer. The SVG-and-TikZ oracle is untouched — `Chart.render` has
always used `approx` — so the sharpest test in the repository loses nothing; it
now names the measurer it was already using.

D62: a family stack is resolved and *reported*. `SkiaBackend.ResolvedFaces`
names, for every distinct (family, weight, italic) in the scene, the entry that
matched and the face that was opened; `Matched = None` means the stack fell
through to Skia's default and the figure looks like nothing the theme asked
for. `SkiaOptions.FontFile` overrides resolution entirely, and is the only way
two machines produce the same pixels.

Gate 2, with the numbers rather than a description. At 12 px, `AVATAR`: 48.0117
unshaped, 44.5078 shaped, 48.012 approximated. The approximation is *exact*
against the unshaped face, so the whole 7.3% is kerning — asserted directly,
with `0123456789` as the control at 0.09%. The larger half of the effect is
vertical and the plan did not predict it: a real face's `hhea` ascent is 0.905
em against Helvetica's 0.718, 26% more. Both reach `Figure.arrangement` — the
panel moves 2.5 px left and 4.1 px down — without one line of `Layout.fs` or
`Figure.fs` changing.

The test suite states a face: Liberation Sans 2.1.5, SIL OFL, committed under
`tests/Marey.Tests/fonts/` with its licence. It is metric-compatible with Arial
to the last digit, which is what lets gate 2 isolate exactly one variable, and
it is what makes these numbers reproducible on CI's Ubuntu rather than on one
laptop.

Also: `HarfBuzzSharp.NativeAssets.Linux`, which `SkiaSharp.HarfBuzz` does not
pull in — the same omission as `SkiaSharp.NativeAssets.Linux`, a second time,
on a second version line.

Two inversions, both written to happen: `text shaping is not yet advertised`
became `text shaping is advertised, and this backend is the first to advertise
it`. And the panel-rectangle test had to be written twice — the first spelling
ignored the `Transform` node that places a panel (D15/D30) and measured the
domain padding, which is constant under both measurers.

801 tests, no golden moved.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`SkiaFormat.Pdf` beside `SkiaFormat.Png`, sharing one traversal: the whole
difference is in `Begin`, `Finish` and the page unit. Vector output from the
backend §6 calls the raster one — paths stay paths and glyphs stay glyphs,
which is what a publication figure wants without a TeX installation.

D63 expected a pinned timestamp and measuring showed there is none to pin.
Skia writes `/CreationDate` from a `DateTime` using the *renderer's* local UTC
offset, ignoring the value's `DateTimeKind`: one instant comes out `+01'00'`,
`-23'00'` or `-22'00'` depending only on how it was tagged. Both date keys are
optional in the specification, so neither is written. `Producer` is pinned for
the same reason at one remove — unset, Skia stamps `Skia/PDF m151` into every
file.

Two things `SKDocumentPdfMetadata()` gets wrong, found by looking rather than
by failing. `EncodingQuality` defaults to 0 — JPEG at its worst instead of the
lossless 101 — which would have silently destroyed any raster embedded in a
PDF, and no gate here would have caught it. And `RasterDpi` turns out to decide
the *page box's precision*: Skia snaps the MediaBox to whole device pixels at
that resolution, so 187.5 pt is written `188` at the default 72 and `187.5` at
96. Setting it from the render's own dpi is gate 4's fractional half and is
what it should have been anyway.

Gate 3: two renders byte-identical. Gate 4: 400x250 px is a 300x187.5 pt page,
asserted at three sizes and then again through Poppler, which rasterises it
back to exactly 400x250 pixels.

The page canvas takes one uniform 72/96 scale, which is the *opposite* case to
D15/D30: a unit conversion rather than a layout transform, so a 1 px hairline
correctly becomes 0.75 pt — exactly what TikZ already does through
`Space.ptOfPx`. `drawRaster` composes with Save/Concat rather than SetMatrix,
so the page scale survives under it; that has its own test, because the raster
path structurally cannot have the bug.

`Raster.ofPdfBytes` reuses `rasterise` for a PDF that needed no compiling —
F2's second-consumer rule rather than a second rasteriser.

811 tests, no golden moved.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
All eight of the M2.5 plan's gates hold. Five were built with the phases that
earned them; three needed work here.

Gate 8 is new. `SkiaNative` turns a native-loading failure into a sentence that
names the package to add — for *both* libraries, because SkiaSharp and HarfBuzz
are two natives on two version lines and naming only the first sends a reader
into the same wall one frame later. It recognises a `DllNotFoundException` two
levels inside a `TypeInitializationException`, which is the common shape, and
deliberately does not recognise anything else: a guard that translated every
exception would pass every positive test and mislead every reader of a real
stack trace. `guard` wraps `Begin`, `Finish`, `Result` and face resolution —
the four places a native library is *first* touched — rather than every call.

What it cannot test is stated rather than implied: a process cannot unload a
library it has loaded, so the placement of those four calls is verified by
reading and the translation machinery is tested exhaustively.

Gate 1 gained an absolute test. The quadrant check catches a flip and not a
scale off by a few per cent, a half-pixel offset, or an anisotropy on the wrong
axis — a rising line rises through all three. So the comparison runs the other
way: push an nd vertex through `RootTransform` and look at that pixel. Four
vertices of an asymmetric zig-zag inked, four point-reflections clean.

Gate 5 gained a PNG orientation test, because `coverage` cannot see a flip —
the same box, the same amount of ink, only the halves exchanged. Confirmed
non-vacuous by inverting it: upper 156.3, lower 43.2.

And the thing that is not a gate: the degraded scene read by hand. Six
`Annotated` wrappers removed and nothing else moved — no Group inserted, no
Path lost — and `Keyed "figure"` survives, which is what the backend claims and
what nothing had checked.

818 tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The guide's §15 becomes "Output: SVG, TikZ, PNG, PDF" and gains four
subsections — the two new formats, which font a PNG is drawn in and why it
matters, and what real shaping does to a layout. Every snippet is executed by
`GuideTests`, so the numbers it prints are this tree's. "What is not here yet"
loses "a raster backend with real text shaping", which is now here.

A seventh example, `shaped-text.fsx`: the same figure arranged by two measurers
and drawn by the same renderer, so the only difference in the two PNGs is what
measuring text properly does to a layout. It reports which face the machine
resolved, because that is the honest half of D62.

An eighth `PackageReadme.md`, the `CHANGELOG`'s `[Unreleased]` section, and the
package tables in `README.md`, `NUGET.md` and the guide.

Five things the plan's phase-6 list did not anticipate, all found by sweeping
rather than by failing:

  - `CONTRIBUTING.md`'s test count, baseline count and layering rules were all
    stale, and it now says why there is exactly one binary baseline and why
    there will never be a PNG of a rendered figure.
  - `.gitattributes` needed `*.ttf binary` once a font joined the tree. Git's
    heuristic had already got it right — the committed bytes match upstream's
    md5 — but a mangled font fails as "Skia opens the file and the metrics are
    nonsense", which is worth ruling out by hand.
  - `.github/tex-packages.txt` gains `libfontconfig1` and `libfreetype6`.
    `libSkiaSharp` needs them, the hosted image has them, and a slimmer runner
    later would take out every raster gate at once.
  - `ExampleTests` asked whether an example wrote a `.svg` or a `.tex`, and
    would have failed the new one for being a raster example rather than for
    being wrong.
  - Both doc harnesses need `SkiaSharp` and `SkiaSharp.HarfBuzz` on their
    reference lists: `SkiaTextMeasurer` has an internal member mentioning
    `SKFont`, and F# wants the defining assembly before it will type-check a
    construction. A reader never meets this — `#r "nuget: Marey.Backend.Skia"`
    brings both transitively — but the harnesses reference dlls directly.

819 tests. `dotnet pack` produces eight packages.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Gate 2's first test compared `ApproxTextMeasurer`'s Helvetica table against
D62's stated face measured through a default `SKFont` — which hints, and
hinting rounds every glyph advance to a whole pixel. "AVATAR" measured 48.0
that way against the face's true 48.0117, and the digits control measures
70.0 against a true 66.74. Neither is a number Marey ever computes: the
shipped `SkiaTextMeasurer` measures through `SKShaper`, which is unhinted,
and it is the shaper's numbers every other test in the section uses. So the
comparison was between an advance table and one rasteriser's grid fit,
dressed as a comparison between two advance tables.

`font.LinearMetrics <- true` makes it the latter. The section header has
said "48.012 against 48.0117" since M2.5; that is now what is measured.

`Assert.Equal(unshaped, approximated, 2)` is replaced by the difference it
was standing in for. The precision overload rounds both sides to a number of
decimal places and compares the rounded values, so its tolerance is however
far the two sit from a bucket edge — it can reject a closer pair than one it
accepts. The bound is now a tenth of the table's own 1/1000 em storage unit,
0.0012 px against an observed 0.00028; a whole unit would have separated the
hinted value only by double rounding, four parts in 1e16.

This test cannot have passed as written: both operands are deterministic —
the face is committed under `tests/Marey.Tests/fonts/` and the table is
arithmetic — and it fails identically on a pristine worktree of `origin/dev`.
M2.5's recorded 819 green does not reproduce on a clean checkout.

The gate was checked rather than assumed: restoring the hinted measurement
fails it, with its own message, naming 0.0120 px.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…s (D81)

Marey drives three programs it does not ship — `pdflatex` compiles the TikZ
goldens, `pdftoppm` rasterises the page for the ink gate, `dotnet fsi` runs
every example and guide snippet — and M3 adds two more, D75's `ffmpeg` and
D79's TeX engine. "Is the tool there?" was answered five times in four files.
`onPath` was written twice, the second copy admitting it in its own comment;
three call sites then phrased the absence differently, so a local run
reported one condition in three registers.

`Marey.Toolchain` is the one implementation, and the wording of "it is not
installed" is part of what it implements. Its own project rather than a file
in Core: a PATH walk and a `Process` are not meaningfully Fable-compatible,
and §13 defends that property actively. No PackageReference, so nothing that
references it acquires a transitive one. `IsPackable=false` by D64's own
rule — every consumer today is a test — with a note saying when it flips.

`ToolOutcome` has three cases rather than being a `Result`, because "not
installed" and "ran and failed" call for different behaviour at every call
site here: the first skips a gate and says so, the second fails it.
Collapsing them is how a gate goes quietly vacuous.

The consolidation found a bug live in all five copies. Reading one stream to
the end and then the other deadlocks whenever the child fills the second
pipe's buffer: it blocks writing stderr, so it never closes stdout, so the
parent waits on a read that can no longer finish. It survives every small
output and fails on the large one — which is to say on the run that finally
had enough errors to be worth reading. And the hang is unbounded, not slow:
the parent blocks inside `ReadToEnd`, which is before `WaitForExit timeoutMs`
is reached, so the timeout is dead code on the one path that needs it. CI
would have hung to its job limit with nothing naming the test.

A smaller hole closed with it: `onPath` proves a file exists, not that it can
be executed, so a non-executable file on PATH threw `Win32Exception` out of
whichever gate was unlucky. Now reported as unavailable, naming the path.

Ten tests, and the deadlock gate was checked against a deliberately restored
sequential implementation: 0.6 s with both 128 KiB payloads intact against a
run that did not complete at all. Gate 6 extended to assert the new project
never sees SkiaSharp. 830 tests, warning-free.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
M3 phase 0. Two gaps in the IR, closed together because both break all
three backends at compile time and doing them separately costs two
backend sweeps.

**D67 — `Opacity of float * Node`.** Scene.fs has said since M0 that
there is no group-opacity node, that `Color.A` covers the common case,
and that when M3 forced the issue it should be a costed decision rather
than a reflex. M3 forces it: fading a group is what a storyboard asks
for, and per-shape alpha cannot express it, because the moment two
shapes in the group overlap the fade shows a seam that is not in the
figure. The cost is paid as it was quoted — one variant, one
`Capabilities` field, one `Degrade` rule — and nothing else was let in
alongside it.

`Capabilities.GroupOpacity` guards it. SVG's `<g opacity>` and Skia's
`SaveLayer` are group opacity by definition, so both advertise it and
neither degrades.

**TikZ does not, and that is what makes this a capability rather than a
constant.** The plan expected all three to honour the node directly, on
the strength of pgf's scope `opacity=`. That key is inherited by each
path rather than composited over the scope, so it is the approximation
wearing the capability's name — and worse, a path's own `fill opacity=`,
which this backend emits for every colour carrying alpha, *overrides*
it, so a half-transparent series inside a fading group would come out at
its original alpha. The pgf feature that does composite is `transparency
group`, which the manual gates on driver support, and this backend hands
a string to an unknown preamble. So TikZ advertises `false` and
`Degrade.foldOpacity` gives it D11's own `Color.A` route, which agrees
with group opacity except where the group's shapes overlap. The rule is
live on the day it lands rather than dead code for M4.

`all-ten-nodes.svg` and `all-ten-nodes.tex` are that difference, in two
files a reviewer can open: the same two overlapping rectangles, faded
two ways.

**D68 — hierarchical keys.** `Marey.Plot` produced exactly one `Keyed`
node, at the root of every figure, so the diff §5.2 designed the IR
around had a granularity of one and `Keyed` was decoration — the outcome
D1 rejected closures to prevent, arriving by a route D1 did not cover.

The identity was never missing; it was in the other node. `Annotated`
already carries a panel's (row, col) and a layer's name, so this writes
the path the producer already had into the node built for it: `figure`,
`figure/panel-0-0`, `figure/panel-0-0/layer-0`. Layer keys are
**ordinals**, not names — a name is optional and may be duplicated
across layers of one panel — and `Keys.mark` takes an original row
rather than a position in a channel batch, which is a renumbered subset
and D55's defect exactly.

`Scene.tryFindKey` and `Scene.mapKey` are what addresses through them.
`mapKey` returns every subtree it did not rewrite **by reference**, so a
per-frame rewrite costs the path to the key rather than the figure;
removing that sharing fails its own test and nothing else.

What this does not claim: identity across a row removal. No positional
scheme can have it — drop row 3 and every later index shifts — and the
differ that would consume a data-supplied id is M4. What M3 needs is
stability under restyling, renaming and a change of values, which is
what an animation does between frames, and that is what is tested.

Nineteen tests. `Node has exactly ten cases` is the guard working as
intended: the tenth could not be added without editing that line and
defending the edit.

Verification: 827 passed, 22 failed, all 22 pre-existing on a clean
checkout of this branch and none of them mine — this machine has
`texlive-bin` and no `texmf.cnf` or format files, so every gate that
shells out to pdflatex fails before it reads a `.tex` file. The TikZ
*baselines* are regenerated and reviewed; that they compile is unproven
here.
…0, D71)

`Marey.Anim` — the tenth project, `Marey.Core` and nothing else — makes an
animation a value: a duration and a function of time. Seeking is evaluation,
frames come out in any order, and a render parallelises with no scheduler.

`pure'`, `map`, `map2`, `andThen`, `stretch`, `ease`, `tween`, two constructors,
and twenty-eight easings.

D70. `At` clamps to [0, Duration] and is total on every double, `nan` and both
infinities included. Nothing else clamps. The seconds clock is *stored* rather
than derived, which was not the first answer: with the fraction stored, `andThen`
renormalises at every level of nesting, and it compares `t` against a seam — so
an ulp decides which of two animations a frame shows, and a frame landing exactly
on a seam is the common case. Found by falsification, with a counterexample of
`t = d1` exactly.

§7's "(Anim, andThen, pure') is a monoid" is one word too strong. It is
associative, `pure'` is an exact left identity, and a right identity everywhere
but the final instant — where the appended constant is what the sequence ends on.
The tests state the three facts.

D71. The fraction is not clamped, so `Ease.backOut` overshoots and settles. It
survives `tween`, `map` and `stretch`; `andThen` and `map2` absorb it, because
that is what "the shorter one holds" means. Gate 5 is stated per `Interp`
instance, with the colour case asserted in Oklab — sRGB is gamut-clamped — and
its counterpart that alpha cannot overshoot at all.

The easing law is quantified over the catalogue found by reflection, so an easing
added later is enrolled by existing.

38 tests. Five falsifications, each breaking exactly the gates that name it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… (D74)

`Interpolate` gains a seventh overload, for `Affine<'a,'b>`, delegating to the
decomposition already in `Interp.fs` — so `interp`, `Interp.between`,
`Interp.stops` and `Anim.tween` all reach a transform, and none of them
interpolates the matrix entries. The note saying the module stayed outside the
witness because two measure variables would make SRTP unpredictable was a hedge,
not a measurement; it resolves through all three wrapper levels.

`Marey.Anim/Morph.fs` morphs paths: flatten, split into subpaths, resample each
by arc length, interpolate point by point. It is a function rather than an
eighth overload because it chooses three times — subpath padding, sample count,
closure — and a static `Interp(a, b, t)` cannot record that it chose.

The endpoint law is stated against `Morph.prepare` rather than the input path.
`morph a b 0.0 = a` cannot hold: a morph interpolates two paths in a common
form, and reaching it flattens curves and can add a subpath one side lacked.
`prepare` is public so a still frame can be drawn from it without a pop, and
the law against it is exact — and stronger, because it constrains the pairing
and the padding too.

46 tests. Nine falsifications; seven broke the right gates first time, one found
a gate that could not tell a centroid from a corner, and one was a bad mutation.
§12.4's overload-count pin caught the seventh overload on its own.

933 tests, 911 passing; the 22 remaining are the pdflatex environment.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… (D72, D73)

Per-frame layout is correct and, for an animation, wrong. Since D61 the plot rectangle is
what is left over once the widest tick label has taken its room, so a y domain climbing
from 9 to 110 gains a digit on every label at once, every gutter widens together, and the
axis crawls sideways while the data is the thing that was supposed to be moving. D19 does
the same one level up to the axis title, stepping mm to µm mid-zoom.

`Chart.arrangeUnion` samples the animation, lays out every state, and takes the
componentwise maximum of every gutter: the arrangement no frame can overflow.
`Chart.toSceneIn` draws each frame inside it, and tick labels still recompute per frame —
D72 freezes the rectangle, not its contents. The same union pins the unit prefix, which is
D73 and one mechanism rather than a second one.

Two of the plan's signatures did not survive contact with the tree, and both corrections
are in D72. `arrangeUnion` cannot live in `Marey.Anim`: it would have to name `Figure`,
`Arrangement` and `ITextMeasurer`, and that project mentions none of them on purpose, so it
takes a `float -> Figure` sampler and lives where `Arrangement` already lives. `toSceneIn`
takes no `Extent<px>`, because the shot carries the surface it was arranged against and a
second one beside it could only ever disagree.

The plan's §1 predicted the class of a bug it did not know was already live: it noted the
arrangement was built twice by two functions that must agree with no test saying they do.
They had not agreed since M1. `Figure.arrangement` omitted the head row, so every titled
figure reported panel regions taller than the ones it was drawn in, by exactly the height
of the title. There is now one grid. `compilePanel` returns the layout and a thunk that
draws it, so measuring and drawing cannot drift apart again, and sampling an animation 32
times compiles no geometry at all.

`Marey.Anim` is published as the ninth package — the trigger its own .fsproj named — and
`publish.yml`'s count literal went 8 to 9 in step. `docs/guide.md` gains §16 and the morph
picture phase 2 owed, drawn by `examples/morph.fsx`.

18 new gates in `ShotTests.fs`, each of the two headline ones carrying its own positive
control asserting that per-frame layout does move what the shot holds still. Thirteen
mutations, every one of them failing a gate; two had to be rewritten first, which is the
reason for doing this rather than reading the code. 952 tests, all green, and no rendered
output changed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
§7.2's CE preserved in shape and re-spelled against M2's grammar. `scene { … }`
in `Marey.Storyboard`, with `draw`, `over`, `wait`, `parallel'`, `ease`,
`morphTo`, `zoomToX`/`zoomToY`, `highlight` and `fadeIn`, rendered by
`Storyboard.animate` into one arrangement for the whole shot.

Three of §7.2's own sentences did not survive the re-spelling:

* The accumulator cannot be `Anim<Scene>`. `andThen` reaches its second
  component knowing nothing about its first, so the second step of a storyboard
  would draw onto an empty stage. It is `Anim<Stage -> Stage>`, and `parallel'`
  is then `Anim.map2 (>>)` with nothing added — so D70's clamp, not a rule
  invented here, is what makes a short branch hold.
* `morphTo` interpolates the data, not the drawn geometry. Two `Figure`s are two
  coordinate systems; morphing paths across them puts half of one figure's
  geometry on the other's axes. `Erase.tweenSeries` leaves a real `Figure` at
  every instant, which is also what D72's union knows how to size.
* The sketch highlights a point of a *line*, and a line has no point 42.

`curve.[42]` splits a `MarkerBatch` three ways — before, the mark, after — for
two extra nodes rather than N, and only where something is named. The split
cannot be a scene rewrite: `Geom`'s own non-finite filter and D46's channel
renumbering destroy the row-to-position correspondence before any post-pass
could see it, so it lives in `Geom.compileFor` where the correspondence exists.
The rows ride on `Layer.Addressed`, which keeps D72's `toSceneIn` signature and
makes `Chart.addressMarks` a still-figure feature.

`Marey.Plot` now references `Marey.Anim` — the edge D72 refused, taken here
because D72's escape (a `float -> Figure` sampler) does not exist for a verb
that names both types. Chosen by measured weight: 36 KB with no dependencies of
its own, against 345 KB plus `Marey.Units` the other way.

37 gates in `StoryboardTests.fs`; 23 mutations, every one failing a gate. Two
found real gaps — `ease` had no gate at all, and the highlight-at-zero gate read
only marker sizes and missed a zero-width stroke. Guide §17, a filmstrip in
`docs/images`, and `examples/storyboard.fsx`. 990 tests green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…o (D77)

`Marey.Plot/Frames.fs` — the frame writer over `Array.Parallel.map`, and the
two things a shared renderer has to agree about, both of which are text.

  * `MemoTextMeasurer` memoises `(FontSpec, string)`, so no string is ever
    measured twice and the hit path is a lock-free dictionary read. Its two
    counters are what the gate reads.
  * `Film` pairs the `Anim<Node>` with the `Shot` it is drawn inside, so the
    surface cannot be stated twice — D72's argument for dropping the
    `Extent<px>` from `toSceneIn`, one layer up. `Storyboard.shoot` hands both
    back.
  * `FramePass` chooses `Array.Parallel.map` or `Array.map`, and the two are
    asserted byte-identical frame for frame on both the SVG and the PNG
    backend.
  * `FrameSequence.Stale` names every file matching the target's pattern that
    this render did not write, because `ffmpeg -i frame-%05d.png` reads until
    the first gap and a reused directory silently grows a tail.

The contract itself is doc comments on `IBackend` and `ITextMeasurer`, where a
backend author reads it rather than where a plan records it: a backend is
single-threaded and what crosses threads is a renderer *function*; a measurer
must be thread-safe and exactly one serves a whole film, because font
resolution walks a family stack against whatever is installed.

D77's own gate 4 is false as it was written. "Frames after the first cause zero
measurements" holds only while the text does not move, and a zoom moves it —
39 measurements after frame 0 and 64 by the end, on a 126-frame morph-then-zoom.
What is true is the bound: the same film at 120 fps is 504 frames and measures
65 times. Three gates replace the one.

FrameTests.fs, 32 gates, 20 mutations, all killed. 1023 tests green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…mpeg's (D75, D76)

`Marey.Tools.Video` shells out to ffmpeg rather than binding it: `FFmpeg.AutoGen` links
`libav*` into the consuming process, which would put a licence audit on everyone who
references a plotting library. The package has no third-party dependency of any kind.

The frames are the product and the mux is a convenience over them, which is a behaviour
rather than a layering slogan: `MuxUnavailable` carries what to install *and* the fact
that the numbered frames are still on disk. `Video.muxWith` takes a stated ffmpeg so
that claim is gated on a machine that has one.

Two of D75's own claims about testability were wrong, in opposite directions.
`Video.args` is a pure function, so D76 — which lives entirely in which flag precedes
`-i` — is gated by list indices with no encoder installed. And "exit status" passes on a
broken encode: `-r 12` after `-i` instead of `-framerate 12` before it puts 13 of 24
frames in the file and exits 0. `Video.inspect` reads the container back with ffprobe and
counts them.

The determinism gate D76 named is vacuous: two encodes are byte-identical with the
bit-exact flags removed, because what they strip names the ffmpeg *build*, not the run.
`VideoInfo.BuildTags` is the gate that falsifies them, with a pure gate under it so that
asserting an empty list cannot pass on a classifier that returns nothing.

`Marey.Toolchain` is published with it — a published package may not depend on an
unpublished one — and gained `runArgs`, which hands the argument vector over unsplit.

29 gates, 23 mutations, no survivors. 1053 tests green, nine packages become eleven.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…D78)

`SKShaper` shapes against one typeface, so a codepoint the resolved face
lacks measured as the missing-glyph box -- 9.0 px at 12 px in Liberation
Sans, and two empty rectangles where a CJK axis title should be. D62
recorded it and `m2.5-plan.md` §5 named it M3's problem.

`SkiaTextMeasurer` now splits a run by coverage -- per codepoint, the
first face that has it, CSS font matching's rule -- shapes each piece in
its own face and sums the advances. `ITextMeasurer` did not move, and
neither did `Layout.fs` or `Figure.fs`: D8's M0 seam cashed in a second
time, and the stronger of the two, because a fallback list looks like it
wants a different interface and does not.

`ResolvedFace` carries the account: `Fallbacks`, the faces that covered
what the primary could not; `Missing`, the codepoints nothing covered.
Both empty for a Latin figure. `SkiaOptions.FontFiles` states the whole
chain and is the reproducible answer; `FontFile` still states one face
and still does not fall back, because "stated and obeyed" would mean
less if a second face could arrive behind it.

Four sentences of the plan were wrong, and all four are in D78:

  * the internal member's signature is a shaper short of drawable, and
    it carries the run's band too, so a backend cannot fold its own;
  * the vertical band needed deciding -- the maximum over the primary
    and every face used, observable only on the empty string;
  * the machine-path gate was vacuous as written, passing on a measurer
    with no fallback at all, and now asks `SKFontManager` as a second
    opinion;
  * the ink gate's string was two segments, so a pen advancing by the
    first segment's width every time survived it. It is three now.

A stated file getting no fallback stopped being a special case: the
chain is an array, `FontFile` makes it length one. Disposal lost its
double-free guard the same way -- one handle type, created once,
registered once, freed by one pass.

12 gates, 8 mutations, 1065 green. `tests/Marey.Tests/fonts/` gained a
4.7 KB CJK subset under the OFL, because `ubuntu-latest` has no CJK face
and gate 14's covered half would otherwise skip in CI and pass here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… (D79)

§10: "A maths visualization library that cannot set
`\frac{\partial \vec{E}}{\partial t}` is not a maths visualization
library." `TextRun.Tex` has carried TeX source since D32 at M1 and
nothing could set it.

`Marey.Tools.Tex` is the twelfth package and §10's option 1. It walks a
scene, sets every run carrying a `Tex` form with `latex`, converts it to
vector outlines with `dvisvgm`, and replaces the run with a filled
`Path`. After that there is nothing left for a backend to know: SVG,
TikZ and Skia all draw the formula with the code they already had.

**That is why option 1 turned out to be the cheap door rather than the
expensive one**, which is not what §10 implies. It needs no new backend
capability at all, where option 2 -- MathJax -- would have given a
fraction to one backend that does not exist until M4 and nothing to the
three that do. §14's M3 line is corrected in `design.md` accordingly,
in the milestone that broke it rather than in the documents sweep after
it.

Degrading is the shape D62, D75 and now this all share. No toolchain:
the scene is returned unchanged and still renders, because `TextRun.Text`
is never optional. A snippet TeX *rejects* degrades the same way and
alone -- that run keeps its text and is reported with TeX's own error
while every other formula typesets, which is the argument against
batching every snippet into one document (four times faster on ten
labels, and one bad label costs all ten).

Everything refuses by name rather than skipping: an elliptical arc, an
unknown element, an unknown path command, a `<use>` pointing at nothing.
D33's incident was a valid document with no visible ink, and each of
these is that in miniature.

The geometry was measured, not reasoned about. `--bbox=papersize` plus
`standalone` makes the viewBox `(-72, -72, wd, ht + dp)` to five decimal
places against what TeX itself reports, so the baseline is exactly `ht`
below the top of the box -- which no ink bounding box can say, since
`$x$` has no descender and `$\sum_i$` has a deep one.

Two-thirds of the gates need no TeX installed, because that is where a
wrong *picture* comes from: `SvgPathData.parse` and `TexOutline.ofSvg`
are pure and public for the suite's sake. Four corrections are in D79,
including two gates that confused TeX's metrics with ink, and one
mutation the sweep missed -- removing `--bbox=papersize` passed every
gate until a `\vphantom` snippet was added, because every other formula
here has ink that nearly fills its box.

42 gates, 13 mutations, 1107 green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… (D83)

Phase 9 and phase 10 together, because the reel writes the flipbook and
the example gate expects its .html.

Phase 9: Verification.fs prints all nine external dependencies on every
run, and MAREY_REQUIRE_TOOLCHAIN (armed in ci.yml and publish.yml) makes
an absent one a failure rather than a vacuous pass. examples/reel.fsx is
the demo reel. Marey.Tools.Tex's claim that an animation typesets once
was false and is corrected, with a test pinning both halves. The public
documents are swept for M3.

Phase 10 (D83): Marey.Html renders a Film as a SMIL flipbook and Film
joins the Verso bridge. SvgBackend.renderScoped namespaces ids so stacked
frames do not resolve each other's clip paths and markers; every golden
is byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ld in any face

The example claimed the Helvetica table and the shaped face agree on digits within 5%. That
holds only where the system sans is Helvetica-metric. CI's runner resolves DejaVu Sans, whose
digits are 14% wider, so the claim printed false and CI on dev has been red since the M2.5
sweep. Locally Noto Sans sits at 3% and hid it.

The face the shaper resolved is now measured a third time, unshaped with linear metrics, so
the approximation-to-shaped difference splits into "of which widths" and "of which kerning".
Both printed claims compare within one face: AVATAR kerns narrower, and shaping leaves the
digits at their summed width to within SKShaper's grid (HarfBuzz at 512 units per font size,
so at most 12/1024 px per glyph).

Verified: the full suite is 1121/1121 with MAREY_REQUIRE_TOOLCHAIN=1 under both Noto Sans and
a fontconfig forcing DejaVu Sans for sans-serif.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RepositoryUrl and PackageProjectUrl (packed into every package), NUGET.md, the twelve package
readmes, the CI badge, the changelog's compare links, and the trusted-publishing policy the
publish workflow's header tells you to register — which is keyed on the owner, so the old one
no longer matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se 8

ci.yml's literal was M2's 7. It never fired because the shaped-text example failed every run at
the Test step first; with that fixed, the pack check is the next thing CI reached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 5, 2026 16:11
@Jonathan-Schaefer-git
Jonathan-Schaefer-git merged commit 0d0bf94 into main Oct 5, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 3 High severity · 1 Medium severity

Open (4)
What changed in this PR

Implements M3 animation and rendering support, adding animation algebra/storyboards, Skia PNG/PDF output, video and TeX tool packages, and expanded validation.

Changes:

  • Adds animation, morphing, storyboard, film, and frame-rendering APIs.
  • Adds Skia, video, TeX, toolchain, raster, and opacity support.
  • Expands tests, golden assets, documentation, examples, and CI gates.
File Description
tests/​Marey.Tests/​Tools.fs Updated as part of this pull request.
tests/​Marey.Tests/​TikzInkTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​TikzBackendTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​TexToolchain.fs Updated as part of this pull request.
tests/​Marey.Tests/​RegressionTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​README.md Updated as part of this pull request.
tests/​Marey.Tests/​Raster.fs Updated as part of this pull request.
tests/​Marey.Tests/​NotebookTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​Marey.Tests.fsproj Updated as part of this pull request.
tests/​Marey.Tests/​GuideTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​GoldenTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-siunitx.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-image.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-image.svg Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-heatmap.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-colorbar.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-channels.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-category.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​figure-boxplot.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​all-ten-nodes.tex Updated as part of this pull request.
tests/​Marey.Tests/​golden/​all-ten-nodes.svg Updated as part of this pull request.
tests/​Marey.Tests/​Golden.fs Updated as part of this pull request.
tests/​Marey.Tests/​GeomTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​Generators.fs Updated as part of this pull request.
tests/​Marey.Tests/​fonts/​README.md Updated as part of this pull request.
tests/​Marey.Tests/​fonts/​LICENSE-NotoSansCJK.txt Updated as part of this pull request.
tests/​Marey.Tests/​fonts/​LICENSE-Liberation.txt Updated as part of this pull request.
tests/​Marey.Tests/​fonts/​AUTHORS-Liberation.txt Updated as part of this pull request.
tests/​Marey.Tests/​ExampleTests.fs Updated as part of this pull request.
tests/​Marey.Tests/​ColorProperties.fs Updated as part of this pull request.
tests/​Marey.Tests/​ChannelTests.fs Updated as part of this pull request.
src/​Marey.Verso/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Verso/​Marey.Verso.fsproj Updated as part of this pull request.
src/​Marey.Verso/​Formatter.fs Updated as part of this pull request.
src/​Marey.Units/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Units/​Axis.fs Updated as part of this pull request.
src/​Marey.Tools.Video/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Tools.Video/​Marey.Tools.Video.fsproj Updated as part of this pull request.
src/​Marey.Tools.Tex/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Tools.Tex/​Marey.Tools.Tex.fsproj Updated as part of this pull request.
src/​Marey.Toolchain/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Toolchain/​Marey.Toolchain.fsproj Updated as part of this pull request.
src/​Marey.Plot/​Plot.fs Updated as part of this pull request.
src/​Marey.Plot/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Plot/​Marey.Plot.fsproj Updated as part of this pull request.
src/​Marey.Plot/​Keys.fs Updated as part of this pull request.
src/​Marey.Plot/​Axes.fs Updated as part of this pull request.
src/​Marey.Html/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Core/​Png.fs Updated as part of this pull request.
src/​Marey.Core/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Core/​Marey.Core.fsproj Updated as part of this pull request.
src/​Marey.Core/​Erased.fs Updated as part of this pull request.
src/​Marey.Backend.Tikz/​TikzWriter.fs Updated as part of this pull request.
src/​Marey.Backend.Tikz/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Backend.Svg/​SvgBackend.fs Updated as part of this pull request.
src/​Marey.Backend.Svg/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Backend.Skia/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Backend.Skia/​Marey.Backend.Skia.fsproj Updated as part of this pull request.
src/​Marey.Anim/​PackageReadme.md Updated as part of this pull request.
src/​Marey.Anim/​Marey.Anim.fsproj Updated as part of this pull request.
README.md Updated as part of this pull request.
NUGET.md Updated as part of this pull request.
Marey.slnx Updated as part of this pull request.
examples/​video.fsx Updated as part of this pull request.
examples/​storyboard.fsx Updated as part of this pull request.
examples/​shaped-text.fsx Updated as part of this pull request.
examples/​README.md Updated as part of this pull request.
examples/​morph.fsx Updated as part of this pull request.
examples/​frames.fsx Updated as part of this pull request.
docs/​why.md Updated as part of this pull request.
docs/​notebooks/​README.md Updated as part of this pull request.
docs/​notebooks/​marey-tour.dib Updated as part of this pull request.
Directory.Build.props Updated as part of this pull request.
CONTRIBUTING.md Updated as part of this pull request.
.gitignore Updated as part of this pull request.
.github/​workflows/​publish.yml Updated as part of this pull request.
.github/​workflows/​ci.yml Updated as part of this pull request.
.github/​tex-packages.txt Updated as part of this pull request.
.gitattributes Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Marey.Plot/Figure.fs
// adds a panel mid-shot still has a region for it. Everything else about the grid — rows,
// columns, gaps, padding — is the theme's and does not vary with the data.
let widest =
states |> Array.maxBy (fun f -> (f.Panels.Length, max 1 f.Rows, max 1 f.Cols))
Comment on lines +262 to +267
if upper = 'Z' then
out.Add TexSeg.ClosePath
cx <- sx
cy <- sy
hadCubic <- false
hadQuad <- false
// `-halt-on-error` is deliberately not passed: every error the engine finds makes one
// actionable report rather than the first of several. `-interaction=nonstopmode`
// stops it asking a question on a stdin nothing is reading.
match Toolchain.runArgs engine [ "-interaction=nonstopmode"; stem + ".tex" ] dir options.TimeoutMs with
Comment thread src/Marey.Core/Scene.fs
Comment on lines +297 to +300
Opacity((if alpha < 0.0 then 0.0
elif alpha > 1.0 then 1.0
else alpha),
n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants