//>>built
define("dojox/charting/action2d/Highlight","dojo/_base/lang dojo/_base/declare dojo/_base/Color dojo/_base/connect dojox/color/_base ./PlotAction dojo/fx/easing dojox/gfx/fx".split(" "),function(k,l,m,n,h,p,q,r){var t=function(a){return function(){return a}},e=function(a){a=new h.Color(a);var b=a.toHsl();0==b.s?b.l=50>b.l?100:0:(b.s=100,b.l=50>b.l?75:75<b.l?50:b.l-50>75-b.l?50:75);b=h.fromHsl(b);b.a=a.a;return b},u=function(a){a=e(a);a.a=.7;return a};return l("dojox.charting.action2d.Highlight",p,
{defaultParams:{duration:400,easing:q.backOut},optionalParams:{highlight:"red"},constructor:function(a,b,d){this.colorFunc=(a=d&&d.highlight)?k.isFunction(a)?a:t(a):e;this.connect()},process:function(a){if(a.shape&&a.type in this.overOutEvents&&"spider_circle"!=a.element&&"spider_plot"!=a.element){"spider_poly"==a.element&&this.colorFunc==e&&(this.colorFunc=u);var b=a.run.name,d=a.index,c;b in this.anim?c=this.anim[b][d]:this.anim[b]={};if(c)c.action.stop(!0);else{c=a.shape.getFill();if(!(c&&c instanceof
m))return;this.anim[b][d]=c={start:c,end:this.colorFunc(c)}}var f=c.start,g=c.end;if("onmouseout"==a.type){var v=f;f=g;g=v}c.action=r.animateFill({shape:a.shape,duration:this.duration,easing:this.easing,color:{start:f,end:g}});"onmouseout"==a.type&&n.connect(c.action,"onEnd",this,function(){this.anim[b]&&delete this.anim[b][d]});c.action.play()}}})});