Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Links crossing inconsistencies (Read 1637 times)
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Links crossing inconsistencies
Jan 23rd, 2023 at 7:35am
Print Post  
Hello mindfusion team.
I wanted to know if there are options to disable link breaks for some cases when, for instance, one link crosses another only at right angle. Because when I move link down, intersection is not drawn.
  

Crossing.png ( 6 KB | 37 Downloads )
Crossing.png
Crossing2.png ( 5 KB | 40 Downloads )
Crossing2.png
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links crossing inconsistencies
Reply #1 - Jan 23rd, 2023 at 10:42am
Print Post  
Please also check the following issue: If I draw blue link with LinkCrossings set to True through the black links that have LinkCrossings set to False, the crossings are drawn.
  

Crossing3.png ( 15 KB | 41 Downloads )
Crossing3.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Links crossing inconsistencies
Reply #2 - Jan 23rd, 2023 at 10:53am
Print Post  
Hi,

You can disable crossing augmentations on individual links by setting their DrawCrossings property to false. In last example the owner of the crossing graphics is the blue link, so you'd need to set false for it.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links crossing inconsistencies
Reply #3 - Jan 23rd, 2023 at 11:26am
Print Post  
I understand what you mean. I just wanted to know if there is possibility to totally ignore other links if they have DrawCrossings set to false, without disabling it in blue link.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Links crossing inconsistencies
Reply #4 - Jan 23rd, 2023 at 1:04pm
Print Post  
You can also control that somewhat by changing relative Z order of links combined with DrawCrossings (arcs are drawn for the link at higher Z plane). But it sounds you want to toggle visibility per-crossing, which is not supported at this time.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links crossing inconsistencies
Reply #5 - Feb 2nd, 2023 at 8:47am
Print Post  
Thanks for reply. I would like to know if you have visibility per-crossing feature in your nearest future plans. Wink
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links crossing inconsistencies
Reply #6 - Feb 2nd, 2023 at 8:52am
Print Post  
Also I need your feedback about the first message. Is the behavior there considered correct?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Links crossing inconsistencies
Reply #7 - Feb 3rd, 2023 at 1:21pm
Print Post  
We'll try to add some validation event for next release to let the application hide per-crossing adornments. Please attach saved diagram file if you think it displays some crossings wrongly, and our developer will investigate.

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


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Links crossing inconsistencies
Reply #8 - Mar 15th, 2023 at 8:48am
Print Post  
Check if new ValidateLinkCrossing event here will work for you -

https://mindfusion.eu/_beta/wpfdiag391.zip

Code
Select All
diagram.LinkCrossings = LinkCrossings.Cut;
diagram.ValidateLinkCrossing += OnValidateLinkCrossing;

void OnValidateLinkCrossing(object sender, LinkCrossingEventArgs e)
{
	if (e.BottomLink.StrokeDashStyle != DashStyles.Solid)
		e.Cancel = true;
} 



Event arguments include -

Code
Select All
public DiagramLink TopLink { get; set; }
public int TopSegmentIndex { get; set; }

public DiagramLink BottomLink { get; set; }
public int BottomSegmentIndex { get; set; }

public Point IntersectionPoint { get; set; }

public bool Cancel { get; set; } 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links crossing inconsistencies
Reply #9 - Mar 16th, 2023 at 6:21am
Print Post  
Hello! Thank you for such validation, it works just as expected.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint