//>>built
define("dojox/dgauges/RectangularRangeIndicator",["dojo/_base/declare","dojox/gfx","./ScaleIndicatorBase","dojo/_base/event","dojo/dom-geometry"],function(n,r,p,q,m){return n("dojox.dgauges.RectangularRangeIndicator",p,{start:0,startThickness:10,endThickness:10,fill:null,stroke:null,paddingLeft:10,paddingTop:10,paddingRight:10,paddingBottom:10,constructor:function(){this.fill=[255,120,0];this.stroke={color:"black",width:.2};this.interactionMode="none";this.addInvalidatingProperties(["start","startThickness",
"endThickness","fill","stroke"])},_defaultHorizontalShapeFunc:function(a,c,g,d,e,f,h,k,b,l){a=[d,e,f,e,f,e+k,d,e+h,d,e];b&&b.colors&&(b.x1=d,b.y1=e,b.x2=f,b.y2=e);return c.createPolyline(a).setFill(b).setStroke(l)},_defaultVerticalShapeFunc:function(a,c,g,d,e,f,h,k,b,l){a=[d,e,d,f,d+k,f,d+h,e,d,e];b&&b.colors&&(b.x1=d,b.y1=e,b.x2=d,b.y2=f);return c.createPolyline(a).setFill(b).setStroke(l)},_shapeFunc:function(a,c,g,d,e,f,h,k,b,l){"horizontal"==this.scale._gauge.orientation?this._defaultHorizontalShapeFunc(a,
c,g,d,e,f,h,k,b,l):this._defaultVerticalShapeFunc(a,c,g,d,e,f,h,k,b,l)},refreshRendering:function(){this.inherited(arguments);if(null!=this._gfxGroup&&null!=this.scale){var a=this.scale.positionForValue(this.start),c=isNaN(this._transitionValue)?this.value:this._transitionValue,c=this.scale.positionForValue(c);this._gfxGroup.clear();var g;"horizontal"==this.scale._gauge.orientation?(g=a,a=this.paddingTop):g=this.paddingLeft;this._shapeFunc(this,this._gfxGroup,this.scale,g,a,c,this.startThickness,
this.endThickness,this.fill,this.stroke)}},_onMouseDown:function(a){this.inherited(arguments);var c=m.position(this.scale._gauge.domNode,!0);this.set("value",this.scale.valueForPosition({x:a.pageX-c.x,y:a.pageY-c.y}));q.stop(a)},_onMouseMove:function(a){this.inherited(arguments);var c=m.position(this.scale._gauge.domNode,!0);this.set("value",this.scale.valueForPosition({x:a.pageX-c.x,y:a.pageY-c.y}))}})});