Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MindFusion ASP.NET Pack 2014.R2 (Read 4564 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 560
Joined: Apr 6th, 2003
MindFusion ASP.NET Pack 2014.R2
Aug 18th, 2014 at 4:13pm
Print Post  
MindFusion ASP.NET Pack 2014.R2 has been released. It adds the following new features:

MindFusion.Diagramming for WebForms

SVG nodes in Canvas mode
The SvgNode class represents nodes that can display SVG drawings. SVG graphics are rendered instead of Image, and on top of the geometry rendered by the base ShapeNode class. The SVG drawing of the node is specified through its Content property.

Import diagrams from SVG
The SvgImporter class allows importing Scalable Vector Graphics files (*.svg) into MindFusion.Diagramming. Each top-level SVG group element is imported as a separate SvgNode, whose Content is set to the group's child elements. If the SVG file was exported from Visio or OpenOffice Draw, SvgImporter will create DiagramLink objects for groups it recognizes as connectors in order to recreate the original diagram model, though in this case it will not preserve fully the original appearance of connectors in SVG.

Tree map layout
Tree maps represent hierarchies by nesting child nodes within their parents, where the areas of leaf nodes are proportional to their Weight values. Unlike other layout algorithms, TreeMapLayout expects hierarchies to be defined via grouping or containment (see AttachTo method and ContainerNode class), and will ignore any links in the diagram. The diagram area covered by the topmost nodes in a hierarchy is specified via the LayoutArea property. By default, the layout tries to keep the ratio of node sides as close as possible to one. However this could make it hard to distinguish separate levels of the hierarchy. To alleviate that, set Squarify to false, and child nodes will be arranged either as a row or a column inside their parent node, alternating directions for each level. The drawback is that when Weight ratios differ greatly or nodes contain many children, some nodes could end up with very narrow rectangles.

Decision flowchart layout
DecisionLayout arranges simple flowcharts consisting of decision boxes with up to three outgoing links per node and activity boxes with a single outgoing link per node. The nodes are arranged in columns and rows, whose distance depends on the HorizontalPadding and VerticalPadding property values. When links share the same row or column, they are placed at a distance specified via LinkPadding. The layout arranges nodes recursively starting from StartNode. If StartNode is not specified, the algorithm selects the root of the deepest branch of the graph's spanning tree as start node.

Node list control
The NodeListView is a listbox control that can host any type of DiagramNode -derived objects. Nodes from the NodeListView control can be dragged onto the DiagramView canvas, and when dropped will create a clone of the selected node at the mouse pointer position. NodeListView is supported in ImageMap and Canvas modes.

Resize multiple nodes
Now it is possible to resize multiple selected nodes simultaneously. To enable that, set the AllowMultipleResize property to true. When enabled, dragging a corner or side adjustment handle of any node resizes all nodes in the selection.

Canvas mode improvements
~ Undo and redo now supported. Call setUndoEnabled on client side to start tracking changes. Call undo or redo methods to restore diagram state. Actions cannot be undone after postback.
~ Apply animations to diagram elements. The Animation JavaScript class can be used to animate values of various properties of nodes and links. Detailed overview is available in the Animations topic.
~ Clipboard support; call the copyToClipboard, cutToClipboard and pasteFromClipboard methods to copy or paste selected items.
~ The swimlane grid is now rendered in Canvas mode.
~ The magnifier tool is now supported in Canvas mode.
~ ModificationStart, AutoResize and AutoScroll properties now work in Canvas mode.
~ enterInplaceEditMode and leaveInplaceEditMode events raised when the control shows or hides the in-place edit box.
~ linkPointed and nodePointed events raised when the mouse hovers over an item.
~ SelectOnly behavior is now supported in Canvas mode.
~ RoundedLinks and RoundedLinksRadius properties are now supported in Canvas mode.
~ LinkCrossings and CrossingRadius properties are now supported in Canvas mode.
~ Behavior.Pan is now supported in Canvas mode.
~ Client-side ClickedScript event now raised when users click unoccupied point of the diagram.
~ The AllowUnconnectedLinks is now supported in Canvas mode.
~ BackgroundImageUrl property of Diagram is now supported in Canvas mode.
~ The TextStyle property of links is now supported in Canvas mode.

Intellisense support
The package now includes a MindFusion.Diagramming-vsdoc.js file providing code completion information for the Canvas mode JavaScript API. To load it in Visual Studio, add a /// <reference path="MindFusion.Diagramming-vsdoc.js" /> tag to the top of your script files. Use the static Diagram.findDiagram method instead of $find to let Visual Studio infer the type of returned Diagram objects correctly.

Export Visio 2013 files
The Visio2013Exporter class can export the content of Diagram and DiagramDocument objects to Visio 2013 VSDX files. In order to use it, add a reference to the MindFusion.Diagramming.Export.Visio.dll assembly. Similarly to the VDX format exporter, Visio2013Exporter relies on a template file, called Visio2013.vxt, containing some boilerplate Visio XML code. The template must be either located in same folder as the application assemblies, or its path must be specified via the TemplatePath property. At this time the exporter supports shapes from Visio basic stencil.

Visio2013Importer improvements
~ The importer now supports Visio group shapes. Child shapes in groups are no longer lost when importing, and their corresponding diagram nodes are attached to the corresponding group node.
Visio NURBS curves are now imported as Bezier-style links.
~ Fix for importing connectors with applied rotation transform.
~ Shapes with a ‘hidden’ attribute in master definition are now imported as invisible items.
~ The Item argument of ImportItem event handlers is now pre-set to a DiagramItem instance created for the imported Visio shape, letting you avoid parsing some standard data such as Bounds or Text. You can either modify this item's properties, or replace it with a new instance of a different type.
~ Fixed a crash when a shape master does not have a name attribute (this happens with custom stencils).
~ Fixed a crash when theme1.xml is missing from the imported vsdx archive (this happens with files converted from old Visio versions to 2013 format).
~ Fixed a parse exception for some non-English locales.
~ Fixed a bug where one-segment connectors were imported at wrong positions.

Headers and footers in PDF
PdfExporter can now add headers and footers to exported pages. To specify their contents and font, set the HeaderFormat, HeaderFont, FooterFormat and FooterFont properties. Adding a %P placeholder to HeaderFormat or FooterFormat will render the current page number at its position.

Miscellaneous
~ OrthogonalLayout no longer ignores repeating links, and will now place them at a distance specified via RepeatingLinksPadding property.
~ The Brush property of LinkLabel class lets you set background color for link labels.
~ The ChangeUnit method sets a new MeasureUnit and rescales the coordinates of diagram items to keep them the same size.
~ Layout algorithms now automatically resize diagram's Bounds if it's not large enough to fit the arranged content. To revert to old behavior and keep fixed Bounds size, set GrowToFit to false.
~ Fixed hit-testing offset bug when using version 4 of Microsoft Ajax in Chrome browser.
~ Fixed error when using gradient brushes for painting swimlane grid cells.
~ The default value of ClientSideMode has been changed to Canvas. If you were using JavaApplet mode in old versions relying on default value, you must now set it explicitly.



Registered customers with an active upgrade subscription can download the licensed version from the clients area on our site.

A trial version is available for download here:
http://mindfusion.eu/WebFormsTrial.zip

Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint