Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic About Routing Link (Read 428 times)
Nobu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Nov 27th, 2023
About Routing Link
Mar 18th, 2024 at 5:31am
Print Post  
2024-03-18142354.png

The link may extend beyond the borders of the DiagramView or ContainerNode.
Is there any way to suppress this phenomenon?
  

2024-03-18_142354.png ( 2 KB | 26 Downloads )
2024-03-18_142354.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: About Routing Link
Reply #1 - Mar 18th, 2024 at 6:44am
Print Post  
If this shows links routed by default LinkRouter, you could assign smaller PreferredDistance value to the PatternRouter instance in routers chain:

Code
Select All
var cr = diagram.LinkRouter as CompositeRouter;
if (cr != null)
{
	var pr = cr.Routers[0] as PatternRouter;
	if (pr != null)
		pr.PreferredDistance = 5;
} 



Or otherwise you could set larger ContainerNode.Margin value so it leaves more space around child nodes.

Alternatively, we have some handling of ContainerNodes in GridRouter, so you could replace the LinkRouter instance:

Code
Select All
diagram.LinkRouter = new GridRouter(); 



but it does not create as nice routes in the general case. We plan to add ContainerNode handling to default PatternRouter in near future.

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


I Love MindFusion!

Posts: 24
Joined: Nov 27th, 2023
Re: About Routing Link
Reply #2 - Mar 21st, 2024 at 2:18pm
Print Post  
Thank you for your answer.

Regards,
Nobu
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint