AnatomicMaps / flatmap-viewer

Apache License 2.0
0 stars 7 forks source link

Add flag for turning off/on highlighting paths on mouseover #18

Closed Tehsurfer closed 1 year ago

Tehsurfer commented 1 year ago

I'd like to use the highlightFeatures() api for the the 'show connected paths' tool, as it keeps the colours of the paths.

However currently, the mouseover events override the highlighting as soon as the cursor moves.

Would be great to have a way to turn the highlighting of paths from mouseover on/off

dbrnz commented 1 year ago

Just clarifying, it is only paths that you don't want highlighting? The original PR was trying to address all features, not just paths.

And I'm still not sure exactly what you want, esp. as the notion of highlighted has variously meant selected or activated as the software has evolved. Forgetting about whathighlightFeatures() currently does, is what happens when you click on a path something like what you are after??

Tehsurfer commented 1 year ago

Just clarifying, it is only paths that you don't want highlighting

Yep, want a flag to turn on/off the highlighting on mouseover

Tehsurfer commented 1 year ago

I'll send a video on slack so you can see what I'm talking about