//>>built
define("dojox/dgauges/RectangularRangeIndicator",["dojo/_base/declare","dojox/gfx","./ScaleIndicatorBase","dojo/_base/event","dojo/dom-geometry"],function(l,o,m,n,k){return l("dojox.dgauges.RectangularRangeIndicator",m,{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:0.2};this.interactionMode="none";this.addInvalidatingProperties(["start","startThickness",
"endThickness","fill","stroke"])},_defaultHorizontalShapeFunc:function(a,e,g,c,d,f,h,i,b,j){a=[c,d,f,d,f,d+i,c,d+h,c,d];if(b&&b.colors)b.x1=c,b.y1=d,b.x2=f,b.y2=d;return e.createPolyline(a).setFill(b).setStroke(j)},_defaultVerticalShapeFunc:function(a,e,g,c,d,f,h,i,b,j){a=[c,d,c,f,c+i,f,c+h,d,c,d];if(b&&b.colors)b.x1=c,b.y1=d,b.x2=c,b.y2=f;return e.createPolyline(a).setFill(b).setStroke(j)},_shapeFunc:function(a,e,g,c,d,f,h,i,b,j){"horizontal"==this.scale._gauge.orientation?this._defaultHorizontalShapeFunc(a,
e,g,c,d,f,h,i,b,j):this._defaultVerticalShapeFunc(a,e,g,c,d,f,h,i,b,j)},refreshRendering:function(){this.inherited(arguments);if(!(null==this._gfxGroup||null==this.scale)){var a=this.scale.positionForValue(this.start),e=this.scale.positionForValue(isNaN(this._transitionValue)?this.value:this._transitionValue);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,e,this.startThickness,this.endThickness,
this.fill,this.stroke)}},_onMouseDown:function(a){this.inherited(arguments);var e=k.position(this.scale._gauge.domNode,!0);this.set("value",this.scale.valueForPosition({x:a.pageX-e.x,y:a.pageY-e.y}));n.stop(a)},_onMouseMove:function(a){this.inherited(arguments);var e=k.position(this.scale._gauge.domNode,!0);this.set("value",this.scale.valueForPosition({x:a.pageX-e.x,y:a.pageY-e.y}))}})});