Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for ASP.NET, V6.2.2 (Read 2055 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Diagramming for ASP.NET, V6.2.2
Dec 23rd, 2019 at 10:03am
Print Post  
We have released version 6.2.2 of NetDiagram. It contains the following new features and improvements:

Shape components
The 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:

Code
Select All
{
    component: "Shape",
    id: "Cloud",
    autoProperty: true,
    name: "OutlineShape",
    pen: "gray",
    brush: "Transparent",
    isOutline: true
}, 



JSON Serialization
Diagrams can now be serialized in JSON format. This can be used for interoperability with MindFusion JavaScript diagramming library, or for general storage in JSON files or databases. To serialize a Diagram to a JSON string, call its SaveToJson method. To deserialize a diagram back from its JSON representation, call the LoadFromJson method. Custom item classes can implement JSON serialization for their additional properties by overriding the SaveToJson and LoadFromJson methods of DiagramItem. Such classes must be registered for serialization by calling the RegisterItemClass method and providing a string identifier for the clientClass parameter.

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.
  • SvgImage mode adds DiagramView specific prefixes to SVG <defs> elements, allowing for more than one DiagramView on the page.

API changes
  • The AutoJson attribute has been moved from MindFusion.Diagramming.WebForms namespace to MindFusion.Diagramming namespace.
  • AppletStartedScript property of DiagramView and other controls renamed to ControlLoadedScript.
  • Client-side event handler properties specific to the now removed JavaApplet mode have been deleted (such as key*Script, tableSection*Script, action*Script).
  • The type of AutoCloseDistance has been changed to Nullable<Single>, where null value signifies that FreeFormNode should always close automatically.

Installer for the latest version can be downloaded here, or from the clients area on our site:
https://www.mindfusion.eu/NetDiagramTrial.zip

Updated assemblies and script files are also available as MindFusion.Diagramming.WebForms NuGet package.

Enjoy!
« Last Edit: Nov 30th, 2020 at 1:09pm by Forum Admin »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint