Mermaider.Layout.Msagl
0.16.0
See the version list below for details.
dotnet add package Mermaider.Layout.Msagl --version 0.16.0
NuGet\Install-Package Mermaider.Layout.Msagl -Version 0.16.0
<PackageReference Include="Mermaider.Layout.Msagl" Version="0.16.0" />
<PackageVersion Include="Mermaider.Layout.Msagl" Version="0.16.0" />
<PackageReference Include="Mermaider.Layout.Msagl" />
paket add Mermaider.Layout.Msagl --version 0.16.0
#r "nuget: Mermaider.Layout.Msagl, 0.16.0"
#:package Mermaider.Layout.Msagl@0.16.0
#addin nuget:?package=Mermaider.Layout.Msagl&version=0.16.0
#tool nuget:?package=Mermaider.Layout.Msagl&version=0.16.0
Mermaider.Layout.Msagl
Optional Microsoft MSAGL layout provider for Mermaider.
Mermaider ships with a fast, zero-dependency layered layout engine, and that engine is the recommended choice. This package swaps in Microsoft's Automatic Graph Layout library for flowchart, state, class and ER diagrams, for compatibility with output from earlier Mermaider versions. On a simple flowchart it is about 10× slower and allocates about 7× more.
Usage
dotnet add package Mermaider.Layout.Msagl
using Mermaider;
using Mermaider.Layout.Msagl;
// Register globally:
MermaidRenderer.SetLayoutProvider(new MsaglLayoutProvider());
// Or per-call:
var svg = MermaidRenderer.RenderSvg(input, new RenderOptions
{
LayoutProvider = new MsaglLayoutProvider(),
});
When to use this
Use it only when you need output that matches an earlier Mermaider version that rendered with MSAGL. Compared with the built-in engine, MSAGL has these limitations:
- No compound layout. Subgraph boxes are drawn around their members afterwards and can overlap each other or unrelated nodes.
- No orthogonal router features. There are no label columns, no ports spread along node sides or on diamond and ellipse outlines, and edges written against a subgraph end on a member node rather than on the subgraph border.
- Missing class and state features. Class namespaces, class notes, lollipop interface targets and state notes are ignored.
- Not used for every diagram. Requirement diagrams and the text output always use the built-in engine.
Node and box sizes come from the same code the built-in engine uses, so class, ER and flowchart text fits its boxes under either engine.
| 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
- Mermaider (>= 0.16.0)
- Microsoft.Msagl (>= 1.1.6)
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.18.0 | 16 | 11/23/2026 |
| 0.17.0 | 148 | 11/12/2026 |
| 0.16.1 | 99 | 11/12/2026 |
| 0.16.0 | 126 | 11/11/2026 |
| 0.15.2 | 111 | 11/11/2026 |
| 0.15.1 | 175 | 10/6/2026 |
| 0.15.0 | 115 | 10/6/2026 |
| 0.14.1 | 119 | 10/5/2026 |
| 0.14.0 | 123 | 10/5/2026 |
| 0.13.1 | 159 | 9/11/2026 |
| 0.13.0 | 141 | 9/11/2026 |
| 0.12.2 | 165 | 8/11/2026 |
| 0.12.1 | 159 | 7/22/2026 |
| 0.12.0 | 165 | 7/22/2026 |
| 0.11.1 | 149 | 7/22/2026 |
| 0.11.0 | 139 | 7/21/2026 |
| 0.10.1 | 137 | 7/21/2026 |
| 0.10.0 | 141 | 7/21/2026 |
| 0.9.0 | 144 | 7/14/2026 |
| 0.8.0 | 917 | 6/2/2026 |