- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Diagramming for ASP.NET MVC, V3.2
Read 312 times

Forum Admin   Offline
YaBB Administrator
*****
Posts: 516
Gender: male
Rock and Roll


   
     
 
Diagramming for ASP.NET MVC, V3.2
Dec 10th, 2018 at 2:34pm
 
We have released version 3.2 of MindFusion.Diagramming for ASP.NET MVC. It adds the following new features and improvements:

Flowchart graph layout
(client side / JavaScript)
FlowchartLayout recognizes program code-like patterns in the graph, such as loops, sequences and if/switch branchings, and arranges them recursively. FlowchartLayout could be used to arrange other types of graphs as well, though with some restrictions. For example it treats all back links as loops in the code, and expects that they are nested - loop links starting closer to the stop node should end closer to the start node. Another similar restriction is that there shouldn't be any cross-links that connect different branches of a decision sub-graph.

Path finding
(client side / JavaScript)
The PathFinder class provides methods that help you find paths and cycles in a graph:
  • findShortestPath finds the shortest path between two DiagramNode objects.
  • findLongestPath finds the longest path between the specified DiagramNode objects.
  • findCycle detects whether the specified DiagramNode participates in a cycle.
  • findAllPaths finds all paths that exist between two DiagramNode objects.
  • findAllCycles finds all cycles in the underlying diagram.

Path objects returned by these methods contain nodes, links and items arrays containing sequences of elements in the path. The new PathFinder sample page included in distribution demonstrates path finding and animations over the found paths.

Embedded hyperlinks
Nodes and Text components with style text enabled can now contain <a> tags to create hyperlinks. When a link is clicked, the control raises hyperlinkClicked event to let you implement navigation:
Code (Javascript):
// node is a ShapeNode instance
node.setText("test <a='http://mindfusion.eu'>link</a> test");
node.setEnableStyledText(true);

// attach an event listener to the hyperlinkClicked event
diagram.addEventListener(Events.hyperlinkClicked, onHyperlinkClicked);

function onHyperlinkClicked(sender, args)
{
    window.open(args.getHyperlink());
} 



Container improvements
  • resizeToFitText method and EnableStyledText property added to the ContainerNode class.
  • containerChildRemoved event now also raised when dragging multiple selected child nodes out of a container.
  • Improved handling of folded containers by automatic layout classes and link routing methods.

Visio2013Exporter improvements
  • Visio2013Exporter now does full rendering for table, container and composite nodes.
  • Visio2013Exporter renders custom nodes that draw themselves through the IGraphics interface.
  • Coordinates of exported link end points are now assigned Visio formulas and follow the borders of resized nodes.

Miscellaneous
  • The Text property of nodes and links has been moved to the base DiagramItem class, allowing for easier text search and edit operations in the diagram. The Caption property of container and table nodes now only wraps the base Text property. Map and Visio nodes now render Text too.
  • Typescript definitions now available for the Diagramming.Lanes namespace.
  • Auto-arranged link labels now can optionally be placed over link segments and containers by setting diagram's AutoArrangeAvoidSegments and AutoArrangeAvoidContainers properties to false.
  • Improved text alignment for DiagramLink texts.
  • The serializeTag event lets you save complex Tag and Id objects in XML format.
  • Various arrowhead rendering fixes.

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

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

Enjoy!
 
 
  WWW
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print