Marey.Backend.Web 0.7.0

dotnet add package Marey.Backend.Web --version 0.7.0
                    
NuGet\Install-Package Marey.Backend.Web -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Marey.Backend.Web" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Marey.Backend.Web" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Marey.Backend.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Marey.Backend.Web --version 0.7.0
                    
#r "nuget: Marey.Backend.Web, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Marey.Backend.Web@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Marey.Backend.Web&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Marey.Backend.Web&version=0.7.0
                    
Install as a Cake Tool

Marey.Backend.Web

The browser backend for Marey, a dimensionally-typed visualization system for F#. A Fable app builds a figure, lays it out with the same compiler a notebook kernel runs, and draws it on a canvas. Consumed from source by Fable; Fable.Core is its one dependency.

open Marey
open Marey.UnitsOfMeasure

let ctx = Canvas.context (Canvas.byId "plot")
let extent = Chart.size 720.0 450.0

WebText.measurer ()
|> fun ready ->
    ready.``then`` (fun measurer ->
        let scene = Chart.line U.second U.metre t x |> Chart.toSceneWith measurer extent
        CanvasBackend.draw measurer ctx extent scene)

Text

Layout measures text, and in a page the font it should measure may still be downloading. WebText.measurer () resolves to the canvas's own measurer once document.fonts has finished loading. WebText.measurerNow () answers at once: the canvas's measurer if the fonts are in, and otherwise Marey's approximate widths with Approximated saying so. The canvas measurer itself refuses to measure while fonts are loading, so a figure cannot be laid out against a fallback face by accident.

Pass the backend the measurer the figure was laid out with: text is anchored with its advances.

What it draws

All ten node cases, by the rules the Skia backend draws them by: marker batches with one paint state and each mark filled then stroked, group opacity on a scratch canvas composited once, rasters nearest or smoothed as the node asks, at the display's pixel ratio. Semantics is false, because a canvas has no element per shape; give the canvas element an aria-label.

A CanvasRenderingContext2D from Fable.Browser.Dom is the same object as this package's CanvasContext; pass it with unbox.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 126 10/17/2026
0.6.0 87 10/11/2026
0.5.0 89 10/10/2026