Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Version 2.3 beta (Read 2299 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Version 2.3 beta
Oct 13th, 2014 at 12:53pm
Print Post  
Version 2.3 of MvcDiagram adds the following new features:

Zoom control
The ZoomControl class lets users change interactively the current zoom level and scroll position of a Diagram. To set it up, create a ZoomControl instance, set the control's TargetId property to the id of a DiagramView, and call the Html.ZoomControl extension method to render it:

Code
Select All
ZoomControl zoomWidget = ZoomControl.FromRequest("zoomWidget", Request);
zoomWidget.TargetId = "diagram";
ViewBag.ZoomControl = zoomWidget;

@Html.ZoomControl((ZoomControl)ViewBag.ZoomControl) 



Set the ZoomStep and ScrollStep properties to specify the amount added to diagram's zoom level or scroll position by ZoomControl's buttons. You can customize the control's appearance by setting properties such as Fill, BorderColor, CornerRadius and TickPosition.



Shadow styles
The Diagram.ShadowsStyle property and ShadowsStyle enumeration let you switch shadow rendering order between rendering all shadows in a single background layer (OneLevel) and drawing each shadow close to its node, possibly overlapping other nodes (ZOrder). ShadowsStyle.None lets you disable shadows altogether.

Miscellaneous
~ Set the LinkLabel.Brush property to fill the background of link labels.
~ Number of link segments can now be set from client-side scripts by calling the DiagramLink.setSegmentCount method.
~ VisioExporter export speed has been improved greatly for large diagrams.
~ The BackgroundImageAlign property specifies the alignment of diagram's BackgroundImage.
~ The TextPadding property specifies the padding distance between the borders of a node and its text.
~ Nodes of all classes can be rotated.
~ Fixed a bug where the Alpha value of colors was lost after post-back.

If anyone is interested in trying the beta version, please download this archive containing the updated assemblies and script files:
https://mindfusion.eu/_beta/MvcDiagram.2.3.zip

Any comments, questions and general feedback are welcome.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint