Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic What is the new default layout mind fusion used for diagram creation? (Read 587 times)
Aniket
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Aug 22nd, 2019
What is the new default layout mind fusion used for diagram creation?
Aug 22nd, 2019 at 8:01am
Print Post  
Hello,

What is the default layout mind fusion uses while loading diagram?

Thanks.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2162
Joined: Oct 19th, 2005
Re: What is the new default layout mind fusion used for diagram creation?
Reply #1 - Aug 22nd, 2019 at 8:44am
Print Post  
Hi,

If you mean after calling save/load methods, there isn't any layout applied automatically. The load method restores the positions items had when saving.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Aniket
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Aug 22nd, 2019
Re: What is the new default layout mind fusion used for diagram creation?
Reply #2 - Aug 22nd, 2019 at 9:12am
Print Post  
Hello,

1. I am using diagram.getFactory().createShapeNode() method for creating nodes and diagram.getFactory().createDiagramLink() for creating link. When diagram loads the nodes are placed in 2D Table. I want to know if there is any name for this 2D Table layout format or diagram is placing nodes only on screen resolutions and bounds given while creating node.

2. While avoiding node overlap in spring layout I am using SpringLayoutTraits. While using this I am getting is SpringLayoutTraits not defined error in javascript. Is there anything that I can do to avoid this.

Thanks in advance.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2162
Joined: Oct 19th, 2005
Re: What is the new default layout mind fusion used for diagram creation?
Reply #3 - Aug 22nd, 2019 at 12:41pm
Print Post  
Hi,

What platform are you using?

1. There isn't any built-in tabular layout. I guess you will get one if you have based your code on some of the examples that show a grid of shapes (like StockShapes, PostBack sample projects).

2. The JavaScript library is still a smaller subset of our .NET code and it does not contain SpringLayoutTraits at this time.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Aniket
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Aug 22nd, 2019
Re: What is the new default layout mind fusion used for diagram creation?
Reply #4 - Aug 22nd, 2019 at 12:59pm
Print Post  
Hello,

Thanks for the response.

Is there a way to avoid node overlapping in spring layout using javascript library?

Thanks.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2162
Joined: Oct 19th, 2005
Re: What is the new default layout mind fusion used for diagram creation?
Reply #5 - Aug 22nd, 2019 at 1:22pm
Print Post  
I guess try larger nodeDistance and iterations property values (default ones being 30 and 300). This is kind of physical simulation and does not guarantee there won't be overlapped nodes - repulsion forces between nodes could be minimized if they are connected with too many links to surrounding nodes that pull them to the interior. Otherwise try a different layout class such as LayeredLayout.
  
Back to top
 
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 550
Joined: Apr 6th, 2003
Re: What is the new default layout mind fusion used for diagram creation?
Reply #6 - Aug 22nd, 2019 at 2:19pm
Print Post  
This Topic was moved here from Discussion [move by] Forum Admin.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint