Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Putting Nodes always on top links so that user can always select (Read 1721 times)
Chris B.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Joined: May 30th, 2013
Putting Nodes always on top links so that user can always select
Aug 15th, 2013 at 4:10am
Print Post  
Hey guys,

Could you help us point in the right direction regarding the following issue?

We have one complicated diagram with hundreds of nodes and links weaved tightly together. It has become like the worst kind of bird nest.  Grin

We would like the user to de-clutter the diagram by deleting unwanted nodes and associated links. To achieve that, the user can double-click the node to delete etc..

However, for those nodes deep inside the nest, there are many links on top that are preventing the node to be clicked. How can we make the diagram such that the user is able to select and double click any kind of node placed in any kind of position?


Many thanks!!

Chris
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Putting Nodes always on top links so that user can always select
Reply #1 - Aug 15th, 2013 at 5:56am
Print Post  
Hi,

In .NET controls we have a HitTestPriority property that can be set to 'NodesBeforeLinks', but it's not available yet in the JavaScript library. You could either change ZIndex values to move links behind nodes, or remove nodes from a LinkDoubleClicked event handler:

Code
Select All
function onLinkDoubleClicked(sender, args)
{
	var node = args.getLink().getParent().getNodeAt(args.getMousePosition());
	if (node)
		args.getLink().getParent().removeItem(node);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint