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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Version 1.5 beta
Jan 28th, 2013 at 1:25pm
Print Post  
Version 1.5 adds 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.

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.

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

Any comments, questions and general feedback are welcome.
  
Back to top
 
IP Logged
 
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
Re: Version 1.5 beta
Reply #1 - Jan 29th, 2013 at 10:05am
Print Post  
InitializeNodeScript and InitializeLinkScript still don't fire.
I use ClientSideMode="Canvas" Behavior="DrawLinks".
I don't get an error when I fill in an not-existing function-name.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Version 1.5 beta
Reply #2 - Jan 29th, 2013 at 10:15am
Print Post  
Updated NetDiagram assemblies that will let you set initialize event handlers on the server will be available in a few days. The JavaScript library lets you attach event handlers on the client side like this:

var Events = MindFusion.Diagramming.Events;
diagram.addEventListener(Events.initializeNode, onInitializeNode);
diagram.addEventListener(Events.initializeLink, onInitializeLink);
  
Back to top
 
IP Logged
 
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
Re: Version 1.5 beta
Reply #3 - Jan 29th, 2013 at 7:27pm
Print Post  
Will  Diagram-ExpandButtonPosition="OuterTop"  be supported by the new Updated NetDiagram assemblies ?
Or is there a way to get the same result ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Version 1.5 beta
Reply #4 - Jan 30th, 2013 at 7:01am
Print Post  
It won't be supported in this release. For the time being you could override the built-in positioning function like this:

Code
Select All
var ExpandButton = MindFusion.Diagramming.ExpandButton;
var oldGetRect = ExpandButton.prototype.getRect;
ExpandButton.prototype.getRect = function ()
{
	var rect = oldGetRect.apply(this);
	rect.y = this.node.bounds.y;
	return rect;
}; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
Re: Version 1.5 beta
Reply #5 - Jan 30th, 2013 at 10:57pm
Print Post  
very nice, Thanks.
  
Back to top
 
IP Logged
 
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
Re: Version 1.5 beta
Reply #6 - Jan 31st, 2013 at 3:11pm
Print Post  
I get an error with jscript diagram.getlinkShape() after saving and loading the diagram to/from string.
I suppose it isn't de-/serialized
Is there a way to get it in jscript?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Version 1.5 beta
Reply #7 - Feb 1st, 2013 at 11:17am
Print Post  
This version of the ASP.NET control will connect to init event handlers set on the server side and will synchronize all properties implemented in latest version of the JavaScript diagramming library:
https://mindfusion.eu/_beta/netdiagram5_canvas.zip

Regarding getlinkShape, that could be a syntax error, try with getLinkShape instead.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint