We have released version 3.2.2 of MindFusion.Diagramming for ASP.NET MVC. It adds the following new features and improvements:
.NET Core supportMindFusion.Diagramming for ASP.NET MVC distribution now includes assemblies for .NET Core 2.1 and newer versions. The programming interface is mostly the same, except for a few differences listed in
.NET Core Assemblies help topic.
Tutorial help topics have been updated for .NET Core as well.
Shape componentsThe Shape class used to specify ShapeNode geometry can also be used as a component in CompositeNode. When its isOutline attribute is set, the shape will control CompositeNode's geometry too, defining hit test and clip area, and link alignment points along node's border. If isOutline is disabled, the shape will serve mostly as a decorative element. The code below shows a sample fragment from node's template specifying shape component's properties:
{
component: "Shape",
id: "Cloud",
autoProperty: true,
name: "OutlineShape",
pen: "gray",
brush: "Transparent",
isOutline: true
},
Miscellaneous- TableNode.resizeToFitText improvements and fixes.
- containerChildAdding event handlers can stop propagation of the event up in the container hierarchy by calling setHandled.
- LayeredLayout now uses stable sorting and should always create same results when applied to same graph.
- For consistency with client side API, the .NET Diagram class now provides Arrange methods that take a layout object as argument.
- Arrange method of .NET ContainerNode arranges the child items inside a container using the specified layout class.
API changes- The AutoJson attribute has been moved from MindFusion.Diagramming.Mvc namespace to MindFusion.Diagramming namespace.
- LoadFromJson now clears the diagram by default. A new LoadFromJson overload lets you specify whether loaded items are merged into current diagram or the old diagram is cleared first.
Installer for the latest version can be downloaded here, or from the
clients area on our site:
https://www.mindfusion.eu/MvcDiagramTrial.zipUpdated assemblies and script files are also available as
MindFusion.Diagramming.Mvc NuGet package.
Enjoy!