- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Container as an obstacle issue
Read 120 times

Jan Lyson   Offline
YaBB Newbies
*
Posts: 10
I Love MindFusion!


   
     
 
Container as an obstacle issue
Dec 4th, 2019 at 3:14pm
 
Hello,
I have a problem with setting a container as an obstacle. When I do it nothing seems to be different, links are still routed through it (see attached image). Am I missing something?

Thanks
 
 

Obstacle.png (12 KB | 18 )
Obstacle.png
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1912
Gender: male
tech.support


   
     
 
Re: Container as an obstacle issue
Reply #1 - Dec 5th, 2019 at 7:04am
 
Hi,

The default QuickRouter never treats containers as obstacles at this time. You could set Diagram.LinkRouter to a GridRouter instance; that one has some dedicated handling for containers, setting them as obstacles for external links while still allowing routing of internal links. If your containers won't contain any links, or internal links won't need to be routed, you could probably add some locked background nodes to them to serve as the obstacle for QuickRouter too.

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     

Jan Lyson   Offline
YaBB Newbies
*
Posts: 10
I Love MindFusion!


   
     
 
Re: Container as an obstacle issue
Reply #2 - Dec 5th, 2019 at 8:18am
 
Hi,
thank you, I tried it and it really treats containers as obstacles, but it also causes that links are not routed orthogonally sometimes. GridRouter doesn't have any property for this.

Thanks

 
 

Obstacle2.png (18 KB | 18 )
Obstacle2.png
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1912
Gender: male
tech.support


   
     
 
Re: Container as an obstacle issue
Reply #3 - Dec 5th, 2019 at 8:26am
 
Hi,

For orthogonality try setting links' Shape to Cascading, or RoutingOptions.SmartPolylineEnds to false.

Regards,
Slavcho
 
 
 
IP Logged    
 
     

Jan Lyson   Offline
YaBB Newbies
*
Posts: 10
I Love MindFusion!


   
     
 
Re: Container as an obstacle issue
Reply #4 - Dec 5th, 2019 at 2:26pm
 
Hi,
thanks a lot, setting link's Shape property to Cascading helped.
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print