Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Highlight node and all Links connected to this node on mouse enter event (Read 2176 times)
kunal
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jul 30th, 2013
Highlight node and all Links connected to this node on mouse enter event
Jul 31st, 2013 at 7:29pm
Print Post  
I am using mode ImageMap. Is it possible to highlight (change color) of the node, all connected links to the node and also corresponding parent nodes using the client side NodeMouseOverScript. I get the node from the javascript below but not sure how to get the links and parent node connected to this node

function onMouseEnter(sender, args) {
            var node = args.getNode();

            
           // span.innerText = args.getNode().getZIndex() + args.getNode().getTag();
        }
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Highlight node and all Links connected to this node on mouse enter event
Reply #1 - Aug 1st, 2013 at 9:26am
Print Post  
Hi,

In ImageMap mode you can repaint items in a different color only on the server side. So, you could save the pointed node's Tag in a hidden field, submit the page, call FindNode(hiddenTag) to find the node, change its Brush, and change Pen of all its Incoming/OutgoingLinks.

Submitting the page from mouse movement -related events doesn’t sounds like a good idea though, better use Canvas or Java modes if you need that much interactivity, or repaint the selected items only from click event handlers.

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