//>>built
define("dojox/charting/action2d/TouchIndicator","dojo/_base/lang,dojo/_base/declare,dojo/_base/event,./ChartAction,./_IndicatorElement,dojox/lang/utils".split(","),function(f,g,d,h,i,e){return g("dojox.charting.action2d.TouchIndicator",h,{defaultParams:{series:"",dualIndicator:!1,vertical:!0,autoScroll:!0,fixed:!0,precision:0},optionalParams:{lineStroke:{},outlineStroke:{},shadowStroke:{},stroke:{},outline:{},shadow:{},fill:{},fillFunc:null,labelFunc:null,font:"",fontColor:"",markerStroke:{},markerOutline:{},
markerShadow:{},markerFill:{},markerSymbol:""},constructor:function(a,b,c){this._listeners=[{eventName:"ontouchstart",methodName:"onTouchStart"},{eventName:"ontouchmove",methodName:"onTouchMove"},{eventName:"ontouchend",methodName:"onTouchEnd"},{eventName:"ontouchcancel",methodName:"onTouchEnd"}];this.opt=f.clone(this.defaultParams);e.updateWithObject(this.opt,c);e.updateWithPattern(this.opt,c,this.optionalParams);this._uName="touchIndicator"+this.opt.series;this.connect()},connect:function(){this.inherited(arguments);
this.chart.addPlot(this._uName,{type:i,inter:this})},disconnect:function(){if(this.chart.getPlot(this._uName).pageCoord)this.onTouchEnd();this.chart.removePlot(this._uName);this.inherited(arguments)},onTouchStart:function(a){1==a.touches.length?this._onTouchSingle(a,!0):this.opt.dualIndicator&&2==a.touches.length&&this._onTouchDual(a)},onTouchMove:function(a){1==a.touches.length?this._onTouchSingle(a):this.opt.dualIndicator&&2==a.touches.length&&this._onTouchDual(a)},_onTouchSingle:function(a,b){this.chart._delayedRenderHandle&&
!b&&this.chart.render();var c=this.chart.getPlot(this._uName);c.pageCoord={x:a.touches[0].pageX,y:a.touches[0].pageY};c.dirty=!0;b?this.chart.delayedRender():this.chart.render();d.stop(a)},_onTouchDual:function(a){this.chart._delayedRenderHandle&&this.chart.render();var b=this.chart.getPlot(this._uName);b.pageCoord={x:a.touches[0].pageX,y:a.touches[0].pageY};b.secondCoord={x:a.touches[1].pageX,y:a.touches[1].pageY};b.dirty=!0;this.chart.render();d.stop(a)},onTouchEnd:function(){var a=this.chart.getPlot(this._uName);
a.stopTrack();a.pageCoord=null;a.secondCoord=null;a.dirty=!0;this.chart.delayedRender()}})});