Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Extra space of link when it is selected. (Read 855 times)
skaladra
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Sep 28th, 2022
Extra space of link when it is selected.
Nov 23rd, 2022 at 12:09pm
Print Post  
Hello, MindFusion Team. I have moving cursor when I hover any diagram item(default cursor in other cases). When diagram link is selected, it seems like it has extra space where the origin and destination points are located(see attachment). How can I get rid of this extra space?
  

tU5Fppmj2z.png ( 11 KB | 28 Downloads )
tU5Fppmj2z.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Extra space of link when it is selected.
Reply #1 - Nov 24th, 2022 at 7:23am
Print Post  
Hi,

Try setting a small LinkHitDistance. Note that the default 0 is considered 5mm in any unit.

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


I Love MindFusion!

Posts: 9
Joined: Sep 28th, 2022
Re: Extra space of link when it is selected.
Reply #2 - Nov 28th, 2022 at 7:50am
Print Post  
It seems to be working. But if I increase the line weight it becomes difficult to hit test it. Is there an option to set this property to a concrete line?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Extra space of link when it is selected.
Reply #3 - Nov 28th, 2022 at 10:41am
Print Post  
If you are using a custom link class (to draw non-standard selection frame?), you could try also overriding the bool ContainsPoint(point) method and return ContainsPoint(point, threshold) overload with StrokeThickness as argument instead of diagram's LinkHitDistance. This method is called when Diagram.HitTestPriority == ZOrder.

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