almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

[Network] How to disable edge's hover color and node's font bold? #827

Closed rwu823 closed 9 years ago

rwu823 commented 9 years ago

But still enable hover event.

I had set the same color, but still different.

var options = 
{
    edges: {
        color: {
            color: '#666',
            hover: '#666',
            highlight: '#666'
        }
    }
}
AlexDM0 commented 9 years ago

Hi,

For the edges I assume it is the hoverWidth option that would do it for you?

The nodes bold font cannot be disabled.

Regards

rwu823 commented 9 years ago

Hi Alex, hoverWidth is helpful for me. but still wish get an option to disable node's font bold.

AlexDM0 commented 9 years ago

Hi,

In your case I'd actually disable hover. You can set the tooltip delay to 0 and use that for the hover. In 4.0 tooltips also generate events so you can use those.

Would that solve the problem?

Regards

rwu823 commented 9 years ago

Sorry, I can't understand how tooltip uses? any examples? And is 4.0 stable?

AlexDM0 commented 9 years ago

Hi,

Tooltips are being used in this example for instance: http://visjs.org/examples/network/12_scalable_images.html

If you hide the tooltip with css, you will get an event on mouse over where the tooltip WOULD have come up.

4.0 is not stable at the moment. We hope to release it around next week.

Regards,

Alex

ryoqun commented 9 years ago

4.0 is not stable at the moment. We hope to release it around next week.

wow! I'm really looking forward to it. :)

AlexDM0 commented 9 years ago

You can look through the documentation on the v4 branch if you want, we could use some proofreading on the new format :) Network, timeline and graph2d have been updated, allthough it still needs some unifying css.

rwu823 commented 9 years ago

Hi Alex, Thanks for eager to answer :D

AlexDM0 commented 9 years ago

You're welcome, good luck with the tooltips :)

AlexDM0 commented 9 years ago

With the release of v4 I think this can be solved by my suggestion.

Cheers