From 8adb3d1dd295e455d705d637c9325ad643c3c0b6 Mon Sep 17 00:00:00 2001 From: Vincent Broute Date: Fri, 15 Nov 2013 19:56:14 +0100 Subject: [PATCH] Added labelAttrsHover option for the plots and areas legend --- js/jquery.mapael.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/jquery.mapael.js b/js/jquery.mapael.js index 9cb7387ad..fd52ff37b 100644 --- a/js/jquery.mapael.js +++ b/js/jquery.mapael.js @@ -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