Repository navigation
Rasterised layers in vector output, and EPS - #58
Merged
Merged
Conversation
ScaleKind.Time (instants in seconds since 1970, read in a zone), Logit and Asinh; TimeZone and Time; TicksCalendar, MinorCalendar, FormatDate; the time verbs in both modes and C#; calendar ticks and concise labels by integer arithmetic; the kind check in agreeOn; the readout, Live's absolute guard and a shot's context pin. Six goldens (SVG, TikZ, canvas, wire), the lab-log example, guide sections, changelog. Node runs its goldens with TZ=Pacific/Auckland. M11a of m11-plan.md: D273-D280 as ruled 2026-11-23. Gates A1-A9 each made to fail by its named break first (marey-notes m11-build/progress.md). Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Layer.Rasterize and Chart.withRasterized mark a layer with a reserved Semantics entry; SkiaBackend.rasterizeMarked draws each marked subtree as one Raster in its clip, and the Skia PDF writer runs it. Eps.ofPdf in Marey.Toolchain converts by Ghostscript, then pdftops, naming both when neither is found; SkiaBackend.renderEps and renderEpsToFile, EpsRenderer for C#. Golden figure-rasterized; guide section 6; changelog. pdftops joins the suite's census. M11c of m11-plan.md: D287 (a) and D288 as ruled 2026-11-23. Gates C1 and C2 each made to fail by its named break first. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rasterised layers in vector output, and EPS: the Output minor. Stacked on #57: this branch starts from
m11a/time, so until #57 merges the diff below shows #57's commits too. This PR's own changes are the last commits.Everything is additive.
api/*.fsigains 30 lines and loses none, and no existing baseline moved.What it adds
Chart.withRasterized dpi(Layer.Rasterize, C#.WithRasterized(300)). The compiled layer is wrapped in anAnnotatednode carrying a reservedSemantics.Dataentry. The IR, the wire and every backend that ignores the mark are unchanged.SkiaBackend.rasterizeMarked extent node(andrasterizeMarkedWith options). Each marked subtree is drawn by Skia at the box of the clip it stands in (the panel's plot), scaled by dpi/96, and put back as aRasterinside the same clip. A scene with no mark comes back as the same value. The Skia PDF writer runs it; an SVG or TikZ figure goes through it first, in .NET. Under Fable the layer stays vector, which the canvas log of the new golden shows.Eps.ofPdfinMarey.Toolchaintries Ghostscript'seps2writefirst (gswin64con Windows), thenpdftops -eps. With neither onPATHthe error names both, with how to install each. AlsoSkiaBackend.renderEpsandrenderEpsToFile, and C#EpsRenderer.Render.Marey.Backend.Skianow referencesMarey.Toolchain, which takes no dependencies.[Unreleased], anddocs/not-in-1.0.md's Output line.pdftopsjoins the suite's toolchain census, now 11 entries: it is the converter CI has, since CI installspoppler-utilsbut not Ghostscript.Gates
pdffonts: Inter, CID TrueType, embedded); one image and its soft mask. Its SVG through the pass: one<image>, no<circle>/<use>. An unmarked figure is the same value, so the same bytes%%BoundingBox: 0 0 480 300(640 × 400 px), font programs embedded, through gs and through pdftops alone. With an emptyPATHthe error names gs and pdftopsBaselines
One new figure,
figure-rasterized. Its SVG goes through the pass, unantialiased at 48 dpi to keep the embedded image small. Its canvas log and wire golden are the vector scene, which is what Node draws. No TikZ baseline: a TikZ raster writes a PNG sidecar, and the repository keeps exactly two binary baselines. Under Node (TZ=Pacific/Auckland): 46/46 SVG, 47/47 canvas, 47/47 wire.Not done here
An SVG of a rasterised layer is large: Marey's own PNG encoder writes stored (uncompressed) deflate blocks, so P6 at 300 dpi is 8.9 MB of SVG. The guide says so and suggests a lower resolution for SVG. Compressing that encoder is its own change.