Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic setRouteLinks() not working with LayeredLayout (Read 2931 times)
Gofj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 12th, 2009
setRouteLinks() not working with LayeredLayout
Jul 16th, 2015 at 11:24pm
Print Post  
I'm trying to get automatic link routing working in the trial version but it doesn't seem to work. i'm trying to modify the LayeredLayout sample. Does it work with LayeredLayout? I need to avoid havng links cross nodes. I've tried explicitly setting AutoRoute on the link but this doesn't work either.


thanks,
John
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: setRouteLinks() not working with LayeredLayout
Reply #1 - Jul 17th, 2015 at 8:02am
Print Post  
AutoRoute is applied when moving links or nodes interactively. You could call the routeAllLinks() method after Diagram.arrange(layout) to route links programmatically.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Gofj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 12th, 2009
Re: setRouteLinks() not working with LayeredLayout
Reply #2 - Jul 17th, 2015 at 3:48pm
Print Post  

Stoyan thanks.

I tried that but it didn't work either. If I generate random graphs most of them have the links going through at least one node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: setRouteLinks() not working with LayeredLayout
Reply #3 - Jul 20th, 2015 at 6:25am
Print Post  
Try running LayeredLayout with larger nodeDistance and layerDistance values, or routeAllLinks with smaller diagram.routeMargin value. If there are some background nodes in the diagram used as decorations (or as labels attached to other nodes) that should not be avoided by links, set their Obstacle property to false. If that does not work, please attach the diagram.toJson() result.

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