Universal.MxGraph
1.1.0
dotnet add package Universal.MxGraph --version 1.1.0
NuGet\Install-Package Universal.MxGraph -Version 1.1.0
<PackageReference Include="Universal.MxGraph" Version="1.1.0" />
<PackageVersion Include="Universal.MxGraph" Version="1.1.0" />
<PackageReference Include="Universal.MxGraph" />
paket add Universal.MxGraph --version 1.1.0
#r "nuget: Universal.MxGraph, 1.1.0"
#:package Universal.MxGraph@1.1.0
#addin nuget:?package=Universal.MxGraph&version=1.1.0
#tool nuget:?package=Universal.MxGraph&version=1.1.0
Universal.MxGraph
Implements the mxGraph diagram model in C#: cells, geometry, the key=value; style
vocabulary, serialization, stencil definitions, shapes, edge routing and layouts.
Targets netstandard2.0 with no dependencies outside the base class library.
using Universal.MxGraph.Model;
using Universal.MxGraph.Serialization;
var model = new MxGraphModel();
MxCell node = model.InsertVertex("Hello", new MxGeometry(20, 20, 120, 40),
"rounded=1;fillColor=#dae8fc;strokeColor=#6c8ebf");
MxCell other = model.InsertVertex("World", new MxGeometry(220, 20, 120, 40));
model.InsertEdge(node, other, style: "edgeStyle=orthogonalEdgeStyle");
Reads and writes mxGraphModel documents:
MxGraphModel model = MxCodec.Load("diagram.xml");
MxValidationResult validation = MxGraphValidator.Validate(model);
string xml = MxCodec.Write(model);
Loads stencil sets, naming each stencil package.shape_name as mxGraph does:
var stencils = new MxStencilRegistry().LoadStencilSets("stencils");
MxStencil? icon = stencils.Get("mxgraph.mockup.misc.iphone");
Writes SVG with no further dependencies:
MxSvgExport.Save(model, "diagram.svg", new MxSvgExportOptions
{
Background = "#ffffff",
Stencils = stencils
});
SourceConverter maps image sources used by stencils. Raster rendering resolves those
sources through MxRenderOptions.ImageResolver.
Rendering to raster, and SVG with text laid out from real font outlines, are provided
by Universal.MxGraph.Rendering.
See Notice.txt for attribution.
| 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 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 | 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 was computed. |
| .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
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Universal.MxGraph:
| Package | Downloads |
|---|---|
|
Universal.MxGraph.Rendering
Lays out and renders mxGraph diagrams. |
|
|
Universal.MxGraph.MxFile
Reads, validates, edits and writes mxfile documents and pages, including .drawio files. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 532 | 8/24/2026 |
Provides the graph model, style vocabulary, codec, validator, perimeters, edge routers, layouts, shapes, stencil sets and edge decorations.