//>>built define("dojox/dgauges/ScaleIndicatorBase",["dojo/_base/lang","dojo/_base/declare","dojo/on","dojo/_base/connect","dojo/_base/fx","dojox/gfx","dojox/widget/_Invalidating","./IndicatorBase"],function(_1,_2,on,_3,fx,_4,_5,_6){ return _2("dojox.dgauges.ScaleIndicatorBase",_6,{scale:null,value:0,interactionArea:"gauge",interactionMode:"mouse",animationDuration:0,animationEaser:null,_indicatorShapeFuncFlag:true,_interactionAreaFlag:true,_downListeners:null,_cursorListeners:null,_moveAndUpListeners:null,_transitionValue:NaN,_preventAnimation:false,_animation:null,constructor:function(){ this.watch("value",_1.hitch(this,function(){ this.valueChanged(this); })); this.watch("value",_1.hitch(this,this._startAnimation)); this.watch("interactionArea",_1.hitch(this,function(){ this._interactionAreaFlag=true; })); this.watch("interactionMode",_1.hitch(this,function(){ this._interactionAreaFlag=true; })); this.watch("indicatorShapeFunc",_1.hitch(this,function(){ this._indicatorShapeFuncFlag=true; })); this.addInvalidatingProperties(["scale","value","indicatorShapeFunc","interactionArea","interactionMode"]); this._downListeners=[]; this._moveAndUpListeners=[]; this._cursorListeners=[]; },_startAnimation:function(_7,_8,_9){ if(this.animationDuration==0){ return; } if(this._animation&&(this._preventAnimation||_8==_9)){ this._animation.stop(); return; } this._animation=new fx.Animation({curve:[_8,_9],duration:this.animationDuration,easing:this.animationEaser?this.animationEaser:fx._defaultEasing,onAnimate:_1.hitch(this,this._updateAnimation),onEnd:_1.hitch(this,this._endAnimation),onStop:_1.hitch(this,this._endAnimation)}); this._animation.play(); },_updateAnimation:function(v){ this._transitionValue=v; this.invalidateRendering(); },_endAnimation:function(){ this._transitionValue=NaN; this.invalidateRendering(); },refreshRendering:function(){ if(this._gfxGroup==null||this.scale==null){ return; }else{ if(this._indicatorShapeFuncFlag&&_1.isFunction(this.indicatorShapeFunc)){ this._gfxGroup.clear(); this.indicatorShapeFunc(this._gfxGroup,this); this._indicatorShapeFuncFlag=false; } if(this._interactionAreaFlag){ this._interactionAreaFlag=this._connectDownListeners(); } } },valueChanged:function(_a){ on.emit(this,"valueChanged",{target:this,bubbles:true,cancelable:true}); },_disconnectDownListeners:function(){ for(var i=0;i