javascript - Change CSS from hovering to clicking in visualization -


i'm new js, css , html feel excited explore more.

my visualization , whole code here: https://gist.github.com/dariaalekseeva/a71475378a5d12ea40bc

at moment when move mouse across object, many paths appear , not easy see details.

i'd change setting in visualization hovering clicking. first hover , active paths change. pick 1 path, click on , path stays active. , still should able see appearing comments when hover along path. need "unclick" path (or click outside object) , keep hovering until find path click on.

thank help.

you need modify mousemove mousedown. changed display tip click event, not 'hover'.

i created plunkr that, display tip clicking.
http://plnkr.co/edit/rn76z5z8cxzpqkkm7pen

(i modified mousemove mousedown @ 218 line.)

you can use 'mouseout', 'mousedown', 'mousemove' implement these kinds of interaction.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -