Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Version 2.6 beta (Read 2030 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Version 2.6 beta
Apr 26th, 2016 at 8:31am
Print Post  
Version 2.6 of JsDiagram contains the following new features and bug-fixes:

Free-form nodes
A FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline. To let users draw free-form nodes interactively, set Behavior to DrawFreeForms or LinkFreeForms. Use the Points property of FreeFormNode to get or set outline points programmatically. If the Closed property is set, the node is drawn as a closed shape and its interior filled, or otherwise the node is drawn as a poly-line. If the distance between first and last points drawn by user is shorter than Diagram.AutoCloseDistance, the node's Closed property is automatically set to true. AutoCloseDistance default value is Float.MaxValue, so free-form nodes are always closed.

Convert free-form drawings to ShapeNodes
Additional drawing modes, convenient for touch input, convert FreeFormNode objects drawn by user to ShapeNode objects with matching shapes. To enable them, set Behavior to DrawFreeShapes or LinkFreeShapes. The shapes against which the user's input is matched are set via diagram's FreeFormTargets property. By default it contains Rectangle, Decision and Ellipse shapes.



Miscellaneous
~ nodePasted and linkPasted events are now raised when new DiagramNode and DiagramLink instances are created from clipboard contents.
~ Virtual-scroll mode fixed for parent div size specified in percent units.
~ Fixed bug where the ExpandOnIcoming property specifying link direction for collapse/expand actions did not work correctly.
~ Removed several global variables created inadvertently by the control.

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

Any comments, questions and general feedback are welcome.
« Last Edit: Apr 26th, 2016 at 12:48pm by Forum Admin »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Version 2.6 beta
Reply #1 - May 25th, 2016 at 1:29pm
Print Post  
Version 2.6 will also provide TypeScript definitions for all classes from Diagramming, Drawing and Graphs namespaces. We have uploaded a new beta archive containing jsdiag.d.ts definitions file and several TypeScript sample scripts -
https://mindfusion.eu/_beta/jsdiag26.zip

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