Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Not able to select the Node below a link (Read 6520 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Not able to select the Node below a link
Jan 29th, 2014 at 2:10pm
Print Post  
Hi,

We are having one issue with link shape.
We are having a node of type MindFusion.Drawing.Rect,  with Width=12 and Height=6 , and when we are having a link passing through the middle of that shape, we are not able to select that node.

I have set the shadowOffsetX and Y to zero. Still not fixed.

Any workaround for this?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to select the Node below a link
Reply #1 - Jan 29th, 2014 at 7:09pm
Print Post  
Hi,

Try setting Diagram.LinkHitDistance to a small value, e.g. try with 1.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: Not able to select the Node below a link
Reply #2 - Jan 30th, 2014 at 6:56am
Print Post  
Hi Stoyan,

Its not fixing the issue.
Also i don't see the LinkHitDistance in client side object only server side has this property.


The real issue is the node is showing the anchor point while mouse over the node, but when clicks the selection happens for the link.

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to select the Node below a link
Reply #3 - Jan 30th, 2014 at 5:18pm
Print Post  
There is Diagram.setLinkHitDistance method in the JavaScript API. Setting a small value means you will need to click more precisely near a link to consider that a hit on the link, and that should let you select the node by clicking near its borders, but not within the specified distance from the link. Displaying anchor points is not an indication that clicking there will select the node, it only shows where a new link would snap if you start drawing a link from that node.
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: Not able to select the Node below a link
Reply #4 - Jan 31st, 2014 at 10:17am
Print Post  
Hi Stoyan,

I don't see that property in the Diagram in js side.
I am using version 1.6.

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to select the Node below a link
Reply #5 - Jan 31st, 2014 at 10:27am
Print Post  
Hi,

I can see it listed in the online help here, which we haven't updated to 1.7 yet, and its help topic should have been imported from the source code:
http://www.mindfusion.eu/onlinehelp/mvcdiagram/index.htm?M_MindFusion_Diagrammin...

Are you trying to call it and getting an error message? Note that's a member of the Diagram class, and not of DiagramLink.

Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: Not able to select the Node below a link
Reply #6 - Apr 15th, 2014 at 7:41am
Print Post  
Hi Stoyan,

I am using like below
$find("diagramControl").setLinkHitDistance(1);

but i get the below error
TypeError: undefined is not a function

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to select the Node below a link
Reply #7 - Apr 15th, 2014 at 9:41am
Print Post  
Hi,

That can be related to either $find or setLinkHitDistance. If the canvas loads correctly and other functions work, it's probably the latter. Make sure you have copied latest diagramming.js to your project, and clear the browser cache in case it keeps an older version of the script.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: Not able to select the Node below a link
Reply #8 - Apr 15th, 2014 at 2:16pm
Print Post  
Hi Stoyan,

So do i need to update the version to fix this issue?
I am using version 1.6 now.

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able to select the Node below a link
Reply #9 - Apr 16th, 2014 at 9:27am
Print Post  
setLinkHitDistance exists in version 1.6 from what I can see. Check if you aren't using a script file from an older release. The diagramming.js I get with v1.6 installation has ‎November ‎08, ‎2013 creation date.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint