text: //>>built
  define("dojox/dgauges/RectangularSegmentedRangeIndicator",["dojo/_base/declare","dojo/on","dojox/gfx","./IndicatorBase"],function(s,u,v,t){return s("dojox.dgauges.RectangularSegmentedRangeIndicator",t,{start:0,startThickness:10,endThickness:10,fill:null,stroke:null,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,segments:10,segmentSpacing:2,rounded:!0,ranges:null,constructor:function(){this.fill=[255,120,0];this.stroke={color:"black",width:0.2};this.addInvalidatingProperties("start startThickness endThickness fill stroke segments segmentSpacing ranges".split(" "))},
  _defaultHorizontalShapeFunc:function(g,m,a,b,c,l,d,e,f,q){d=a._contentBox.w;var r;if(this.ranges){f={type:"linear",colors:[]};f.x1=b;f.y1=c;f.x2=b+d;f.y2=c;e=this.start;for(g=0;g<this.ranges.length;g++){var p={color:this.ranges[g].color,offset:a.scaler.positionForValue(e)},k={color:this.ranges[g].color,offset:a.scaler.positionForValue(e+this.ranges[g].size)};f.colors.push(p);f.colors.push(k);e+=this.ranges[g].size}}else f&&f.colors&&(f.x1=b,f.y1=c,f.x2=b+d,f.y2=c);a=b;d=d/this.segments-this.segmentSpacing;
  l=Math.abs((l-b)/(d+this.segmentSpacing));e=this.startThickness;var p=(this.endThickness-this.startThickness)/this.segments,k=e+p,n=l-Math.floor(l);for(g=0;g<Math.floor(l);g++){var h=m.createPath();0==g&&this.rounded&&e/2<d?(b=e/2,h.moveTo(a+b,c),h.lineTo(a+d,c),h.lineTo(a+d,c+k),h.lineTo(a+b,c+e),h.arcTo(b,b,0,0,1,a+b,c)):(g==Math.floor(l)-1&&0==n&&this.rounded&&k/2<d?(b=k/2,h.moveTo(a,c),h.lineTo(a+d-b,c),h.arcTo(b,b,0,0,1,a+d-b,c+k)):(h.moveTo(a,c),h.lineTo(a+d,c),h.lineTo(a+d,c+k)),h.lineTo(a,
  c+e),h.lineTo(a,c));h.setFill(f).setStroke(q);e=k;k+=p;a+=d+this.segmentSpacing}0<n&&(c=[a,c,a+d*n,c,a+d*n,c+(e+(k-e)*n),a,c+e,a,c],r=m.createPolyline(c).setFill(f).setStroke(q));return r},_defaultVerticalShapeFunc:function(g,m,a,b,c,l,d,e,f,q){d=a._contentBox.h;var r;if(this.ranges){f={type:"linear",colors:[]};f.x1=b;f.y1=c;f.x2=b;f.y2=c+d;for(g=e=0;g<this.ranges.length;g++){var p={color:this.ranges[g].color,offset:a.scaler.positionForValue(e)},k={color:this.ranges[g].color,offset:a.scaler.positionForValue(e+
  this.ranges[g].size)};f.colors.push(p);f.colors.push(k);e+=this.ranges[g].size}}else f&&f.colors&&(f.x1=b,f.y1=c,f.x2=b,f.y2=c+d);a=c;d=d/this.segments-this.segmentSpacing;l=Math.abs((l-c)/(d+this.segmentSpacing));e=this.startThickness;var p=(this.endThickness-this.startThickness)/this.segments,k=e+p,n=l-Math.floor(l);for(g=0;g<Math.floor(l);g++){var h=m.createPath();0==g&&this.rounded&&e/2<d?(c=e/2,h.moveTo(b,a+c),h.lineTo(b,a+d),h.lineTo(b+k,a+d),h.lineTo(b+e,a+c),h.arcTo(c,c,0,0,0,b,a+c)):(g==
  Math.floor(l)-1&&0==n&&this.rounded&&k/2<d?(c=k/2,h.moveTo(b,a),h.lineTo(b,a+d-c),h.arcTo(c,c,0,0,0,b+k,a+d-c)):(h.moveTo(b,a),h.lineTo(b,a+d),h.lineTo(b+k,a+d)),h.lineTo(b+e,a),h.lineTo(b,a));h.setFill(f).setStroke(q);e=k;k+=p;a+=d+this.segmentSpacing}0<n&&(b=[b,a,b,a+d*n,b+(e+(k-e)*n),a+d*n,b+e,a,b,a],r=m.createPolyline(b).setFill(f).setStroke(q));return r},indicatorShapeFunc:function(g,m,a,b,c,l,d,e,f){"horizontal"==m.scale._gauge.orientation?this._defaultHorizontalShapeFunc(m,g,m.scale,a,b,c,
  l,d,e,f):this._defaultVerticalShapeFunc(m,g,m.scale,a,b,c,l,d,e,f)},refreshRendering:function(){if(!(null==this._gfxGroup||null==this.scale)){var g=this.scale.positionForValue(this.start),m=this.scale.positionForValue(this.value);this._gfxGroup.clear();var a;"horizontal"==this.scale._gauge.orientation?(a=g,g=this.paddingTop):a=this.paddingLeft;this.indicatorShapeFunc(this._gfxGroup,this,a,g,m,this.startThickness,this.endThickness,this.fill,this.stroke)}}})});
  //# sourceMappingURL=RectangularSegmentedRangeIndicator.js.map