Version 2.6 of JsDiagram contains the following new features and bug-fixes:
Free-form nodesA 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 ShapeNodesAdditional 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.zipAny comments, questions and general feedback are welcome.