//>>built
define("dojox/dgauges/components/utils",["dojo/_base/lang","dojo/_base/Color"],function(q,r){var g={};q.mixin(g,{brightness:function(e,c){var a=q.mixin(null,e);a.r=Math.max(Math.min(a.r+c,255),0);a.g=Math.max(Math.min(a.g+c,255),0);a.b=Math.max(Math.min(a.b+c,255),0);return a},createGradient:function(e){for(var c={colors:[]},a,d=0;d<e.length;d++)0==d%2?a={offset:e[d]}:(a.color=e[d],c.colors.push(a));return c},_setter:function(e,c,a){for(var d=0;d<c.length;d++)e[c[d]]=a[d]},genericCircularGauge:function(e,
c,a,d,t,u,v,h,k,l,m){h||(h="clockwise");k||(k={family:"Helvetica",style:"normal",size:"10pt",color:"#555555"});l||(l="inside");m||(m=function(n,b,p){b=b.tickStroke;if(b){var w={color:b.color?b.color:"#000000",width:b.width?b.width:.5};var f=(new r(b.color)).toRgb();f={color:b.color?g.brightness({r:f[0],g:f[1],b:f[2]},51):"#000000",width:b.width?.6*b.width:.3}}return n.createLine({x1:p.isMinor?2:0,y1:0,x2:p.isMinor?8:10,y2:0}).setStroke(p.isMinor?f:w)});this._setter(e,"originX originY radius startAngle endAngle orientation font labelPosition tickShapeFunc".split(" "),
[a,d,t,u,v,h,k,l,m]);c.set("interactionArea","gauge");c.set("indicatorShapeFunc",function(n,b){return n.createPolyline([0,-5,b.scale.radius-6,0,0,5,0,-5]).setStroke({color:"#333333",width:.25}).setFill(e._gauge.indicatorColor)})}});return g});