Mermaider.Layout.Msagl 0.16.0

There is a newer version of this package available.
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
                    
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="Mermaider.Layout.Msagl" Version="0.16.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mermaider.Layout.Msagl" Version="0.16.0" />
                    
Directory.Packages.props
<PackageReference Include="Mermaider.Layout.Msagl" />
                    
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 Mermaider.Layout.Msagl --version 0.16.0
                    
#r "nuget: Mermaider.Layout.Msagl, 0.16.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 Mermaider.Layout.Msagl@0.16.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=Mermaider.Layout.Msagl&version=0.16.0
                    
Install as a Cake Addin
#tool nuget:?package=Mermaider.Layout.Msagl&version=0.16.0
                    
Install as a Cake Tool

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 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. 
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.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
Loading failed