Mermaider.Layout.Msagl
0.18.0
dotnet add package Mermaider.Layout.Msagl --version 0.18.0
NuGet\Install-Package Mermaider.Layout.Msagl -Version 0.18.0
<PackageReference Include="Mermaider.Layout.Msagl" Version="0.18.0" />
<PackageVersion Include="Mermaider.Layout.Msagl" Version="0.18.0" />
<PackageReference Include="Mermaider.Layout.Msagl" />
paket add Mermaider.Layout.Msagl --version 0.18.0
#r "nuget: Mermaider.Layout.Msagl, 0.18.0"
#:package Mermaider.Layout.Msagl@0.18.0
#addin nuget:?package=Mermaider.Layout.Msagl&version=0.18.0
#tool nuget:?package=Mermaider.Layout.Msagl&version=0.18.0
Mermaider.Layout.Msagl

An optional Microsoft MSAGL layout provider for Mermaider, for output that matches earlier Mermaider versions.
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.
Install
dotnet add package Mermaider.Layout.Msagl
Quick start
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.
Learn more
- Documentation: https://mermaider.nullean.net/layout
- Source and issues: https://github.com/nullean/mermaider
| 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 is compatible. 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 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. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. 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.0
- Mermaider (>= 0.18.0)
- Microsoft.Msagl (>= 1.1.6)
- Sugiyama (>= 0.18.0)
- System.Memory (>= 4.6.3)
-
.NETStandard 2.1
- Mermaider (>= 0.18.0)
- Microsoft.Msagl (>= 1.1.6)
- Sugiyama (>= 0.18.0)
-
net10.0
- Mermaider (>= 0.18.0)
- Microsoft.Msagl (>= 1.1.6)
-
net11.0
- Mermaider (>= 0.18.0)
- Microsoft.Msagl (>= 1.1.6)
-
net7.0
- Mermaider (>= 0.18.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 |