mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added labelAttrsHover option for the plots and areas legend
This commit is contained in:
@ -556,7 +556,7 @@
|
|||||||
label.attr({cursor:'pointer'});
|
label.attr({cursor:'pointer'});
|
||||||
|
|
||||||
$.fn.mapael.setHoverOptions(elem, legendOptions.slices[i].attrs, legendOptions.slices[i].attrsHover);
|
$.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);
|
$.fn.mapael.setHover(paper, elem, label);
|
||||||
|
|
||||||
label.hidden = false;
|
label.hidden = false;
|
||||||
@ -820,6 +820,10 @@
|
|||||||
, fill : "#343434"
|
, fill : "#343434"
|
||||||
, "text-anchor" : "start"
|
, "text-anchor" : "start"
|
||||||
}
|
}
|
||||||
|
, labelAttrsHover : {
|
||||||
|
fill : "#787878"
|
||||||
|
, animDuration : 300
|
||||||
|
}
|
||||||
, hideElemsOnClick : {
|
, hideElemsOnClick : {
|
||||||
enabled : true
|
enabled : true
|
||||||
, opacity : 0.2
|
, opacity : 0.2
|
||||||
@ -843,6 +847,10 @@
|
|||||||
, fill : "#343434"
|
, fill : "#343434"
|
||||||
, "text-anchor" : "start"
|
, "text-anchor" : "start"
|
||||||
}
|
}
|
||||||
|
, labelAttrsHover : {
|
||||||
|
fill : "#787878"
|
||||||
|
, animDuration : 300
|
||||||
|
}
|
||||||
, hideElemsOnClick : {
|
, hideElemsOnClick : {
|
||||||
enabled : true
|
enabled : true
|
||||||
, opacity : 0.2
|
, opacity : 0.2
|
||||||
|
Reference in New Issue
Block a user