Added labelAttrsHover option for the plots and areas legend

This commit is contained in:
Vincent Broute
2013-11-15 19:56:14 +01:00
parent 27c7e3dfa5
commit 8adb3d1dd2

View File

@ -556,7 +556,7 @@
label.attr({cursor:'pointer'});
$.fn.mapael.setHoverOptions(elem, legendOptions.slices[i].attrs, legendOptions.slices[i].attrsHover);
$.fn.mapael.setHoverOptions(label, legendOptions.labelAttrs, legendOptions.labelAttrs);
$.fn.mapael.setHoverOptions(label, legendOptions.labelAttrs, legendOptions.labelAttrsHover);
$.fn.mapael.setHover(paper, elem, label);
label.hidden = false;
@ -820,6 +820,10 @@
, fill : "#343434"
, "text-anchor" : "start"
}
, labelAttrsHover : {
fill : "#787878"
, animDuration : 300
}
, hideElemsOnClick : {
enabled : true
, opacity : 0.2
@ -843,6 +847,10 @@
, fill : "#343434"
, "text-anchor" : "start"
}
, labelAttrsHover : {
fill : "#787878"
, animDuration : 300
}
, hideElemsOnClick : {
enabled : true
, opacity : 0.2