Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Links intersection display when handle is close to crossing (Read 2781 times)
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Links intersection display when handle is close to crossing
Apr 20th, 2023 at 6:42am
Print Post  
Hi Mindfusion team.

Is there a possibility to render link crossing when line handle is close to it?
« Last Edit: Apr 24th, 2023 at 5:21am by nullable »  

Division25_PNHuhpzLJl.png ( 13 KB | 39 Downloads )
Division25_PNHuhpzLJl.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle in close to crossing
Reply #1 - Apr 20th, 2023 at 11:35am
Print Post  
Hi,

It's not drawing at control points to avoid bridging over link bends. We'll add some checks whether control point is actually bending its link for next release.

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


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle in close to crossing
Reply #2 - Apr 20th, 2023 at 1:10pm
Print Post  
More important for us is the missing segment joints seen on your screenshot, when crossings are enabled for thick links. New build here should fix these -

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

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


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle is close to crossing
Reply #3 - Apr 27th, 2023 at 2:05pm
Print Post  
This should filter out collinear control points -

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

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


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #4 - May 2nd, 2023 at 4:08am
Print Post  
It is still not working. Maybe I'm missing some point Undecided
  

c6G3IbhpAp.png ( 7 KB | 38 Downloads )
c6G3IbhpAp.png
pH0gt7RjBQ.png ( 7 KB | 38 Downloads )
pH0gt7RjBQ.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle is close to crossing
Reply #5 - May 3rd, 2023 at 5:19am
Print Post  
This works for us. Please try released v3.9.2 version in case our developers improved anything in last days -
https://www.nuget.org/packages/MindFusion.Diagramming.Wpf/

Please attach the file so we can try this with same point coordinates if still happening.

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


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #6 - May 3rd, 2023 at 8:52am
Print Post  
The update is working for vertical crossings, but doesn't work for horizontal ones.
  

links.svg ( 11 KB | 46 Downloads )
ZBWydLDXSC.png ( 9 KB | 36 Downloads )
ZBWydLDXSC.png
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #7 - May 3rd, 2023 at 8:52am
Print Post  
deleted attachment
  

ZBWydLDXSC.png ( 9 KB | 36 Downloads )
ZBWydLDXSC.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle is close to crossing
Reply #8 - May 3rd, 2023 at 1:33pm
Print Post  
Please attach diagram xml file.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle is close to crossing
Reply #9 - May 3rd, 2023 at 3:31pm
Print Post  
Actually your last screenshots seem to be showing missing segment joints where links bend, which should be fixed too. Please verify you are compiling against latest assemblies.
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #10 - May 4th, 2023 at 6:37am
Print Post  
Do you mean these ones? I actually use the latest version of mindfusion retrieved from NuGet.
  

51NNw4s6Dd.png ( 7 KB | 30 Downloads )
51NNw4s6Dd.png
devenv_VE8fGqespb.png ( 40 KB | 36 Downloads )
devenv_VE8fGqespb.png
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #11 - May 4th, 2023 at 6:42am
Print Post  
Also, I don't actually know how to export the diagram to XML file. Maybe you could add possibility to validate whether to draw link crossings or not on our side (same as you did with crossing validation)?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Links intersection display when handle is close to crossing
Reply #12 - May 4th, 2023 at 7:22am
Print Post  
Yes, these should be drawn as mitered joints now for thicker links (LinkCrossings is passing through alternative drawing path and was ignoring joints). But this could also be disabled by setting StrokeLineJoin property or by custom-drawing code.

Quote:
add possibility to validate whether to draw link crossings


Not sure what you mean by that after we added ValidateLinkCrossing event, in what different way do you need to validate it?

Call diagram.SaveToXml method to save the diagram. If you use custom node types, you must also call RegisterItemClass method.

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


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #13 - May 11th, 2023 at 6:34am
Print Post  
Hello. I tried to export the diagram from my application, but the classes have too many domain properties and it is impossible to make all of them serializable. So I decided to repeat the issue on the demo, but found another bug when trying to move the handle of the collinear control point. The only thing I can is to demonstrate the scenario that causes links crossing disappear.
  

DemoBug.mp4 ( 101 KB | 35 Downloads )
AppBug.mp4 ( 470 KB | 33 Downloads )
LinksCrossingsProblems.zip ( 1576 KB | 40 Downloads )
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Links intersection display when handle is close to crossing
Reply #14 - May 11th, 2023 at 6:35am
Print Post  
Deleted attachments:
  

AppBug.mp4 ( 470 KB | 33 Downloads )
DemoBug.mp4 ( 101 KB | 35 Downloads )
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint