Mathema.Graph.MAUI.Visualization
1.0.4
See the version list below for details.
dotnet add package Mathema.Graph.MAUI.Visualization --version 1.0.4
NuGet\Install-Package Mathema.Graph.MAUI.Visualization -Version 1.0.4
<PackageReference Include="Mathema.Graph.MAUI.Visualization" Version="1.0.4" />
paket add Mathema.Graph.MAUI.Visualization --version 1.0.4
#r "nuget: Mathema.Graph.MAUI.Visualization, 1.0.4"
// Install Mathema.Graph.MAUI.Visualization as a Cake Addin #addin nuget:?package=Mathema.Graph.MAUI.Visualization&version=1.0.4 // Install Mathema.Graph.MAUI.Visualization as a Cake Tool #tool nuget:?package=Mathema.Graph.MAUI.Visualization&version=1.0.4
Mathema.Graph.MAUI.Visualization Library
Welcome to the Mathema.Graph.MAUI.Visualization library for .NET MAUI! This library provides a powerful and flexible graph visualization control that allows you to display any graph with ease.
Features and Usage Guidelines
Versatile Graph Display
The control supports the visualization of any graph, offering flexibility in the representation of graph elements.
Object-Oriented Graph Elements
Nodes and edges within the graph can hold arbitrary objects, granting users freedom in data representation. Just convert your graph like this:
using Graph.MAUI.Visualization.Models;
var graph = new Graph();
var a = new DataNode() { DataItem = new YourObject() };
var b = new DataNode() { DataItem = new YourObject() };
var c = new DataNode() { DataItem = new YourObject() };
var d = new DataNode() { DataItem = new YourObject() };
graph.Edges.Add(new DataEdge(a, b) { DataItem = new YourObject() });
// Add more edges...
MSAGL Integration:
Microsoft MSAGL is utilized for efficient graph layout calculations, ensuring a visually appealing presentation.
XAML Integration:
Easily insert the control into your XAML layouts, thanks to seamless integration with SkiaSharp.
Customizable Binding Properties:
Layout Settings: Choose from various layout algorithms (e.g., Sigma algorithm or MDS) through the LayoutSetting property. Interactive Elements: Define actions using ICommand for both edge and vertex interactions through OnEdgeClicked and OnVertexClicked. Much more...
Usage Example (with CommunityToolkit.Mvvm):
Here's an example of how to use the control in your XAML:
<control:VisualizationControlView
BackgroundColor="Transparent"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
LayoutSetting="SugiyamaScheme"
Graph="{Binding GraphData}"
OnEdgeClicked="{Binding EdgeClickedCommand}"
OnVertexClicked="{Binding NodeClickedCommand}"
EdgeThickness="2"
VertexHeight="45.0"
VertexWidth="80.0"
VertexShape="Ellipse">
</control:VisualizationControlView>
public partial class GraphsViewModel : BaseViewModel
{
[ObservableProperty]
Graph graphData;
public GraphsViewModel()
{
var graph = new Graph();
var a = new DataNode() { DataItem = new YourObject() };
var b = new DataNode() { DataItem = new YourObject() };
var c = new DataNode() { DataItem = new YourObject() };
var d = new DataNode() { DataItem = new YourObject() };
graph.Edges.Add(new DataEdge(a, b) { DataItem = new YourObject() });
// Add more edges...
GraphData = graph;
}
[RelayCommand]
async Task NodeClicked(Node vm)
{
// Handle individual node "clicked" event
}
[RelayCommand]
async Task EdgeClicked(Edge vm)
{
// Handle individual edge "clicked" event
}
}
Feel free to explore the various properties and customize the control to suit your specific graph visualization needs. Thank you for choosing Mathema's GraphVisualizationControl library! If you have any questions or feedback, please don't hesitate to reach out.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-maccatalyst16.1 is compatible. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. 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. |
-
net7.0
- CommunityToolkit.Mvvm (>= 8.2.1)
- Microsoft.Msagl (>= 1.1.6)
- Microsoft.Msagl.Drawing (>= 1.1.6)
- SkiaSharp.Views.Maui.Controls (>= 2.88.6)
-
net7.0-android33.0
- CommunityToolkit.Mvvm (>= 8.2.1)
- Microsoft.Msagl (>= 1.1.6)
- Microsoft.Msagl.Drawing (>= 1.1.6)
- SkiaSharp.Views.Maui.Controls (>= 2.88.6)
-
net7.0-ios16.1
- CommunityToolkit.Mvvm (>= 8.2.1)
- Microsoft.Msagl (>= 1.1.6)
- Microsoft.Msagl.Drawing (>= 1.1.6)
- SkiaSharp.Views.Maui.Controls (>= 2.88.6)
-
net7.0-maccatalyst16.1
- CommunityToolkit.Mvvm (>= 8.2.1)
- Microsoft.Msagl (>= 1.1.6)
- Microsoft.Msagl.Drawing (>= 1.1.6)
- SkiaSharp.Views.Maui.Controls (>= 2.88.6)
-
net7.0-windows10.0.19041
- CommunityToolkit.Mvvm (>= 8.2.1)
- Microsoft.Msagl (>= 1.1.6)
- Microsoft.Msagl.Drawing (>= 1.1.6)
- SkiaSharp.Views.Maui.Controls (>= 2.88.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 | |
---|---|---|---|
1.1.9 | 281 | 10/24/2023 | |
1.1.8 | 140 | 10/24/2023 | |
1.1.7 | 127 | 10/23/2023 | |
1.1.6 | 127 | 10/23/2023 | |
1.1.5 | 145 | 10/22/2023 | |
1.1.4 | 135 | 10/22/2023 | |
1.1.3 | 144 | 10/22/2023 | |
1.1.2 | 149 | 10/22/2023 | |
1.1.1 | 149 | 10/22/2023 | |
1.1.0 | 145 | 10/21/2023 | |
1.0.13 | 139 | 10/18/2023 | |
1.0.12 | 149 | 10/14/2023 | |
1.0.11 | 141 | 10/13/2023 | |
1.0.10 | 134 | 10/13/2023 | |
1.0.9 | 140 | 10/13/2023 | |
1.0.8 | 136 | 10/13/2023 | |
1.0.7 | 138 | 10/13/2023 | |
1.0.6 | 135 | 10/13/2023 | |
1.0.5 | 136 | 10/13/2023 | |
1.0.4 | 136 | 10/13/2023 | |
1.0.3 | 138 | 10/13/2023 | |
1.0.2 | 137 | 10/13/2023 | |
1.0.1 | 146 | 10/13/2023 | |
1.0.0 | 133 | 10/13/2023 |