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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Version 2.2 beta
Oct 14th, 2014 at 7:58am
Print Post  
Version 2.2 of JsDiagram 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, add a <canvas> to the page, place it anywhere over the target diagram canvas, and set the control's Target property to that diagram:

Code
Select All
<canvas id="zoomWidget" width="80" height="350"></canvas>

var zoomWidget = MindFusion.Controls.ZoomControl.create($("#zoomWidget")[0]);
zoomWidget.setTarget(diagram); 



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 by calling the DiagramLink.setSegmentCount() method.
~ 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.

If anyone is interested in trying the beta version, please download this archive containing the updated script file:

https://mindfusion.eu/_beta/jsdiag.2.2.zip

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