Marey.Html
1.0.0
dotnet add package Marey.Html --version 1.0.0
NuGet\Install-Package Marey.Html -Version 1.0.0
<PackageReference Include="Marey.Html" Version="1.0.0" />
<PackageVersion Include="Marey.Html" Version="1.0.0" />
<PackageReference Include="Marey.Html" />
paket add Marey.Html --version 1.0.0
#r "nuget: Marey.Html, 1.0.0"
#:package Marey.Html@1.0.0
#addin nuget:?package=Marey.Html&version=1.0.0
#tool nuget:?package=Marey.Html&version=1.0.0
Marey.Html
HTML renderings of Marey values, for a notebook
cell. Host-neutral, zero dependencies, netstandard2.1.
Marey brings it with the rest of the library, and
Marey.Verso is what shows it in a Verso notebook.
#r "nuget: Marey.Html"
open Marey
open Marey.UnitsOfMeasure
let g = U.metrePerSecondSquared.Of 9.81<m/s^2>
let t = Q.init U.second 24 (fun i -> float i * 0.025<s>)
let figure = Chart.line t (0.5 * g * t * t)
// something -> string. No kernel, no display call, no global registry.
Html.figure figure
Twelve types render: Figure and Node as inline SVG, Film as a flipbook that plays,
Color as a swatch that does not lie about alpha, Ramp resampled through Oklab, Color[],
PaletteReport as a colour-vision-deficiency and contrast report, Dim, U<'u> and
IScaleErased as themselves, and a live figure (Live, Recorder) as its figure.
A large figure is drawn on a canvas. From Html.CanvasThreshold drawn elements on (5000), a
figure or a live figure is a page holding a <canvas>, the scene's bytes (Wire, in
Marey.Core) and a script compiled from Marey's own canvas backend, which this package embeds.
A 10⁵-point scatter is 2.1 MB rather than 6.4 MB of SVG and draws in tens of milliseconds; a live
step that moves one mark sends a few kilobytes. Under the canvas is the figure's SVG without its
large batches, for a viewer that runs no script. Html.renderMode sets Svg, Canvas or Auto.
A film is sampled into stills stacked in one SVG and cycled with SMIL <animate> — no <style>
block, which a notebook cell cannot scope, and no external tool, so it plays wherever the notebook
renders and looks the same for every reader.
A live figure's page
Html.widget live state isLive writes a whole page for a host that draws output in a frame of its
own: the controls at the state's values, the figure, and a script that posts the reader's changes,
drags and pointer position, and swaps in what comes back. The script formats no number: every
label and every reading is written in F#, by the kernel. With isLive = false the same page has
its controls disabled, for a host with nothing to talk back to and for a saved notebook.
Host-neutral
Every renderer here is something -> string: no formatter registration, no kernel reference and no
dependency on a notebook host. The output carries no <style> block and no pinned colours, so it
inherits the notebook's theme rather than fighting it.
To make a bare value display
In a Verso notebook, a first cell of
#!extension Marey.Verso loads Marey.Verso, and
from then on a cell whose value is a Figure shows the figure. This package provides the
renderings; the extension hands them to the host.
Without any extension, render to SVG and let the host's built-in SVG formatter draw it, with nothing installed:
figure |> Chart.render SvgBackend.render (Chart.size 720.0 450.0)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- FSharp.Core (>= 8.0.100)
- Marey.Backend.Svg (= 1.0.0)
- Marey.Core (= 1.0.0)
- Marey.Interact (= 1.0.0)
- Marey.Plot (= 1.0.0)
- Marey.Units (= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Marey.Html:
| Package | Downloads |
|---|---|
|
Marey
Marey in one reference: units, the plotting grammar, measurement uncertainty, fields, simulations, animation, live figures, and SVG, TikZ and HTML output. Add Marey.Backend.Skia for PNG and PDF, Marey.Backend.Gpu for a window, Marey.Tools.Tex and Marey.Tools.Video for typeset labels and video. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 42 | 11/23/2026 |
| 1.0.0-rc.3 | 96 | 11/12/2026 |
| 1.0.0-rc.2 | 100 | 11/3/2026 |
| 1.0.0-rc.1 | 135 | 11/2/2026 |
| 0.7.0 | 118 | 10/17/2026 |
| 0.6.0 | 102 | 10/11/2026 |
| 0.5.0 | 102 | 10/10/2026 |
| 0.4.0 | 107 | 10/8/2026 |
| 0.3.1 | 107 | 10/5/2026 |
| 0.3.0 | 98 | 10/5/2026 |
| 0.2.0 | 148 | 8/21/2026 |
| 0.1.1 | 131 | 8/19/2026 |
| 0.1.0 | 124 | 8/19/2026 |
| 0.1.0-rc.1 | 101 | 8/18/2026 |