Novolis.Markup.Svg
2026.1.1.74
dotnet add package Novolis.Markup.Svg --version 2026.1.1.74
NuGet\Install-Package Novolis.Markup.Svg -Version 2026.1.1.74
<PackageReference Include="Novolis.Markup.Svg" Version="2026.1.1.74" />
<PackageVersion Include="Novolis.Markup.Svg" Version="2026.1.1.74" />
<PackageReference Include="Novolis.Markup.Svg" />
paket add Novolis.Markup.Svg --version 2026.1.1.74
#r "nuget: Novolis.Markup.Svg, 2026.1.1.74"
#:package Novolis.Markup.Svg@2026.1.1.74
#addin nuget:?package=Novolis.Markup.Svg&version=2026.1.1.74
#tool nuget:?package=Novolis.Markup.Svg&version=2026.1.1.74
Novolis.Markup.Svg
Type-safe, fluent SVG document and shape builders for .NET. The package is headless and BCL-only: it creates SVG markup but does not render or rasterize it.
Install
dotnet add package Novolis.Markup.Svg
Prerequisites: .NET 10 SDK (net10.0).
Quick start
using Novolis.Markup.Svg;
var svg = new SvgDocument()
.Width(SvgLength.Pixels(120))
.Height(SvgLength.Pixels(120))
.ViewBox(new SvgViewBox(0, 0, 120, 120))
.Title("Example")
.Circle(new SvgPoint(60, 60), 48, circle => circle
.Fill(SvgPaint.Color("#1a9b8e"))
.Stroke(SvgPaint.Color("#0b3440"))
.StrokeWidth(3))
.Path(
new SvgPathData()
.MoveTo(new SvgPoint(12, 96))
.LineTo(new SvgPoint(60, 24))
.LineTo(new SvgPoint(108, 96))
.Close(),
path => path
.Fill(SvgPaint.None)
.Stroke(SvgPaint.CurrentColor)
.StrokeWidth(2)
.StrokeLineJoin(SvgLineJoin.Round))
.ToString();
The builder validates geometry and uses invariant numeric formatting. Text and attribute values are XML-escaped during serialization.
Building blocks
| API | Role |
|---|---|
SvgMarkup / SvgDocument |
Root document, viewport, dimensions, groups, definitions, and shapes |
SvgLength, SvgPoint, SvgRect, SvgViewBox |
Typed geometry and dimensions |
SvgPaint |
Paint values such as colors, none, currentColor, and URL references |
SvgPathData |
Fluent path commands without hand-written command strings |
SvgTransformList |
Typed translate, scale, rotate, and skew transforms |
SvgCircle, SvgRectangle, SvgPathElement, and related elements |
Typed SVG nodes |
Novolis.Markup.Svg is an authoring package. Mermaid generation remains in Novolis.Markup.Mermaid.Rendering, and SVG rasterization remains in packages that use Svg.Skia.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Novolis.Markup.Svg:
| Package | Downloads |
|---|---|
|
Novolis.Markup.Html
Fluent HTML, CSS, JavaScript (functions/classes), and typed SVG embedding for .NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.1.1.74 | 122 | 10/25/2026 |
| 2026.1.1.73 | 160 | 10/25/2026 |
| 2026.1.1.72 | 464 | 10/18/2026 |