mountainstorm / jquery.graphviz.svg

jquery plugin to make graphviz svg charts responsive
190 stars 67 forks source link

Unhighlighting doesn't work as expected #10

Open Aluun opened 7 years ago

Aluun commented 7 years ago

Hi, it seems like there is an issue in firefox and IE when nodes are supposed to unhighlight. For chrome it works great, the other nodes gets "faded", but in FF and IE everyone turns white. It seems like bg, the bakground colour is null when jQuery.Color(col).transition(bg, 0.9)) is called. Hence every node but the one pressed, gets the colour white instead of the correct - dependent on the bakground colour - one. I solved this by explicitly writing my background color instead of "bg". (ie. jQuery.Color(col).transition("#2e3e56", 0.9)"