Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Missing features in the current version. (Read 5942 times)
Blue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 11th, 2014
Missing features in the current version.
Sep 11th, 2014 at 9:55am
Print Post  
Hi again, we have used the JavaScript version for awhile now.
During testing we have identified some features that we miss in the current version.

I would like to know if some of the following features is planned for the near future.
Or if it's possible to do any of them right now.

1. Transparent colours are not saved. ex. "rgba(0, 0, 0, 0.5)". The transparency gets removed when the map is saved server side using the asp.net version.

2. it's not possible to disable shadows completely client-side. Setting the colour to transparent seems to work but the transparency isn't saved.

3. There seems to be no possibility to choose noWrap and wrapAtCharacter for text. (to justify text for example).

4. Link setSegmentCount is not available client-side (I had to to this server-side...)

5. Embedded bitmap images are lost when opening a map in canvas view and saving again.

6. No ability to set text padding in shape nodes for ex. left aligned text.

7. No ability to set text underlined clientside.

I'm using MindFusion Diagramming for ASP.net v5.3
« Last Edit: Sep 12th, 2014 at 3:07pm by Blue »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #1 - Sep 11th, 2014 at 10:14am
Print Post  
By current version do you mean version 5.3 of our ASP.NET control? The null HeadShape should be fixed there, and AllowMultipleResize should be supported since one of the last releases.
  
Back to top
 
IP Logged
 
Blue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 11th, 2014
Re: Missing features in the current version.
Reply #2 - Sep 11th, 2014 at 1:03pm
Print Post  
We were using a slightly older version. Iv'e updated to v5.3 and updated the list according to the changes.

With the current version I meant mostly the canvas version, althought some of the things in the list might be related to the serverside code.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #3 - Sep 12th, 2014 at 9:10am
Print Post  
For time being you can disable shadows completely by setting this from onload handler:

Code
Select All
MindFusion.Diagramming.DiagramItem.prototype.createShadow = function () { return undefined; }; 

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #4 - Sep 12th, 2014 at 9:48am
Print Post  
We'll try to implement the TextPadding property for next release. For time being you can apply padding like this:

Code
Select All
MindFusion.Diagramming.DiagramItem.prototype.onUpdateVisuals = function()
{
	this.text.bounds = this.text.bounds.inflate(-1);
}; 

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #5 - Sep 12th, 2014 at 11:32am
Print Post  
Quote:
4. Link setSegmentCount is not available client-side (I had to to this server-side...)


Try this method:

Code
Select All
var LinkShape = MindFusion.Diagramming.LinkShape;
var Point = MindFusion.Drawing.Point;
MindFusion.Diagramming.DiagramLink.prototype.setSegmentCount = function(value)
{
	var start = this.getStartPoint();
	var end = this.getEndPoint();

	if (this.shape == LinkShape.Bezier)
		this.points.length = value * 3 + 1;
	else
		this.points.length = value + 1;

	var dx = (end.x - start.x) / (this.points.length - 1);
	var dy = (end.y - start.y) / (this.points.length - 1);
	for (var i = 0; i < this.points.length; i++)
		this.points[i] = new Point(start.x + dx * i, start.y + dy * i);

	if (this.shape == LinkShape.Cascading)
	{
		var hdiv = Math.floor(value / 2);
		var vdiv = Math.floor(value / 2);
		this.cascadeStartHorizontal = Math.abs(dx) > Math.abs(dy);
		if (this.cascadeStartHorizontal && value % 2 != 0)
			hdiv++;
		if (!this.cascadeStartHorizontal && value % 2 != 0)
			vdiv++;
		var hlen = (end.x - start.x) / hdiv;
		var vlen = (end.y - start.y) / vdiv;
		var horzSegment = this.cascadeStartHorizontal;
		for (var i = 1; i < this.points.length; i++)
		{
			if (horzSegment)
			{
				this.points[i].x = this.points[i - 1].x + hlen;
				this.points[i].y = this.points[i - 1].y;
			}
			else
			{
				this.points[i].x = this.points[i - 1].x;
				this.points[i].y = this.points[i - 1].y + vlen;
			}
			horzSegment = !horzSegment;
		}
	}

	this.updateFromPoints();
}; 

  
Back to top
 
IP Logged
 
Blue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 11th, 2014
Re: Missing features in the current version.
Reply #6 - Sep 12th, 2014 at 3:08pm
Print Post  
Thanks for the answers so far! I added another question.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #7 - Sep 17th, 2014 at 8:55am
Print Post  
Quote:
7. No ability to set text underlined clientside.


The Canvas API only supports bold and italic text attributes at this time. When we get to porting our styled-text formatting algorithm from .NET, we'll also add some custom drawing for underlines.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #8 - Oct 9th, 2014 at 11:15am
Print Post  
Quote:
5. Embedded bitmap images are lost when opening a map in canvas view and saving again.


The Image property of nodes should be transferred between client/server in recent versions, have you tried that with latest NetDiagram v5.3 as well?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #9 - Oct 14th, 2014 at 10:54am
Print Post  
Most of these are now supported / fixed in this version:
http://mindfusion.eu/Forum/YaBB.pl?num=1413283741

We'll add more text formatting features for next release.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing features in the current version.
Reply #10 - Jan 30th, 2015 at 8:29am
Print Post  
This version now supports Font.underline attribute:
https://mindfusion.eu/_beta/jsdiag23.zip

You can specify it as third Boolean argument to constructor:

Code
Select All
node.setFont(new Font("Arial", 5,
	false,	// bold
	false,	// italic
	true));	// underline 



You can also underline only a part of the text by setting the EnableStyledText property and adding <u> tags. Styled text also supports <i>, <b> and <color> tags:

Code
Select All
node.setText("<color=red>Hello</color>, <u>world</u>!");
node.setEnableStyledText(true); 



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