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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Version 2.1 beta
Jul 9th, 2014 at 12:34pm
Print Post  
Version 2.1 of JsDiagram adds the following new features:

SVG Nodes
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. Enable the Transparent property to hide the node's geometry and leave only the drawing visible. The SVG file is loaded and associated with the node through an SvgContent object, which should be initialized and then assigned to the Content property.

jQuery support
Now the control can use jQuery for browser abstraction instead of Microsoft Ajax. To enable jQuery support, set MindFusionImpl="JQuery" before loading the diagram script. Instead of Microsoft Ajax $create function, use the static Diagram.create(element) method to create a Diagram instance for a given Canvas element.

Miscellaneous
~ Set the BackgroundImageUrl property to draw an image as Diagram's background.
~ The TextStyle property of links provides support for several different text position and orientation styles, defined by the LinkTextStyle enumeration.
~ Set the AllowUnconnectedLinks property to true to let users draw links without connecting them to nodes.

If anyone is interested in trying the beta version, please download this archive containing the updated diagramming.js library, help file and a new "SvgNodes" example demonstrating both SVG and jQuery support:

https://mindfusion.eu/_beta/jsdiag21.zip

Any comments, questions and general feedback are welcome.
« Last Edit: Jul 9th, 2014 at 3:58pm by Stoyo »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint