{"size": 1476, "ext": "js", "max_stars_repo_path": "offline/3.38/dojox/gauges/BarIndicator.js", "max_stars_repo_name": "shreepaulnsg/MociPortal_staging_final", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "offline/3.38/dojox/gauges/BarIndicator.js", "max_issues_repo_name": "shreepaulnsg/MociPortal_staging_final", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "offline/3.38/dojox/gauges/BarIndicator.js", "max_forks_repo_name": "shreepaulnsg/MociPortal_staging_final", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 369.0, "max_line_length": 534, "alphanum_fraction": 0.7269647696}
//>>built
define("dojox/gauges/BarIndicator",["dojo/_base/declare","dojo/_base/fx","dojo/_base/connect","dojo/_base/lang","./BarLineIndicator"],function(e,f,g,h,k){return e("dojox.gauges.BarIndicator",[k],{_getShapes:function(d){if(!this._gauge)return null;var a=this.value;a<this._gauge.min&&(a=this._gauge.min);a>this._gauge.max&&(a=this._gauge.max);a=this._gauge._getPosition(a);a==this.dataX&&(a=this.dataX+1);var b=this._gauge.dataY+Math.floor((this._gauge.dataHeight-this.width)/2)+this.offset,c=[];c[0]=d.createRect({x:this._gauge.dataX,
y:b,width:a-this._gauge.dataX,height:this.width});c[0].setStroke({color:this.color});c[0].setFill(this.color);c[1]=d.createLine({x1:this._gauge.dataX,y1:b,x2:a,y2:b});c[1].setStroke({color:this.highlight});this.highlight2&&(b--,c[2]=d.createLine({x1:this._gauge.dataX,y1:b,x2:a,y2:b}),c[2].setStroke({color:this.highlight2}));return c},_createShapes:function(d){for(var a in this.shape.children){a=this.shape.children[a];var b={},c;for(c in a)b[c]=a[c];"line"==a.shape.type?b.shape.x2=d+b.shape.x1:"rect"==
a.shape.type&&(b.width=d);a.setShape(b)}},_move:function(d){var a=this.value;a<this.min&&(a=this.min);a>this.max&&(a=this.max);var b=this._gauge._getPosition(this.currentValue);this.currentValue=a;a=this._gauge._getPosition(a)-this._gauge.dataX;d?this._createShapes(a):b!=a&&(d=new f.Animation({curve:[b,a],duration:this.duration,easing:this.easing}),g.connect(d,"onAnimate",h.hitch(this,this._createShapes)),d.play())}})});