Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for JavaScript, V1.5 (Read 1492 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 687
Joined: Apr 6th, 2003
Diagramming for JavaScript, V1.5
Apr 3rd, 2013 at 12:47pm
Print Post  
We have released version 1.5 of MindFusion.Diagramming for JavaScript. It contains the following new features:

Styles and Themes
An instance of the Style class can be used to set items' appearance properties as a single unit via the setStyle method. In order for style attributes to be used, the respective local appearance properties of DiagramItem objects must have undefined or null values. If an item's Style does not define a value for some attribute, it is looked up in the styling hierarchy, first in the diagram's Style, next in the current Theme, and finally in the set of default styles defined for each item class.

Shadows
Diagram items can now cast shadows. The shadow color is specified via the setShadowColor method and the offset of a shadow from its item is set via setShadowOffsetX and setShadowOffsetY methods. Shadows aren't rendered if getEffectiveShadowColor returns null or undefined value.

Radial gradients
Nodes can be filled using radial gradients by passing objects in following format to setBrush. If the gradient should blend only two colors, they can be specified using color1 and color2 fields instead of colorStops.
Code (Javascript)
Select All
var brush =
{
 type: "RadialGradientBrush",
 colorStops:
 [
  { position: 0, color: "white" },
  { position: 0.5, color: "lightGray" },
  { position: 1, color: "blue" }
 ],
 x1: 20, y1: 20, radius1: 30,
 x2: 40, y2: 20, radius2: 80
};
node.setBrush(brush); 



Miscellaneous
~ Call the setTooltip method to associate tooltip text with an item. The tooltip appears when the mouse pointer hovers over an item for a second.
~ Specify the line width of item frames via the setStrokeThickness method.
~ initializeNode and initializeLink events are raised when users start drawing a node or a link interactively.
~ The NodeListView control can now host tables and containers. The addBox and selectBox methods have been replaced by addNode and selectItem methods.
~ The setStartPoint and setEndPoint methods of links provide shortcuts for setting the first and last points in ControlPoints.

Registered customers with an active upgrade subscription can download the licensed version from the clients area on our site.
    
A trial version is available for download here: 
https://mindfusion.eu/JsDiagramTrial.zip
    
Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint