//>>built define("dojox/dgauges/RectangularGauge",["dojo/_base/declare","./GaugeBase","dojox/gfx/matrix"],function(_1,_2,_3){ return _1("dojox.dgauges.RectangularGauge",_2,{orientation:"horizontal",_middleParts:null,_leadingParts:null,_trailingParts:null,_baseParts:null,_classParts:null,_layoutInfos:{},constructor:function(){ this.orientation="horizontal"; this._middleParts=[]; this._leadingParts=[]; this._trailingParts=[]; this._baseParts=[]; this._classParts=[]; this._layoutInfos={leading:{x:0,y:0,w:0,h:0},middle:{x:0,y:0,w:0,h:0},trailing:{x:0,y:0,w:0,h:0}}; this.addInvalidatingProperties(["orientation"]); },addElement:function(_4,_5,_6){ this.inherited(arguments); var _7=this._elements[this._elements.length-1]; if(_6=="middle"){ this._middleParts.push(_7); }else{ if(_6=="leading"){ this._leadingParts.push(_7); }else{ if(_6=="trailing"){ this._trailingParts.push(_7); }else{ if(_7._isGFX){ this._baseParts.push(_7); }else{ this._classParts.push(_7); } } } } },removeElement:function(_8){ var _9=this.getElement(_8); if(_9){ if(this._middleParts&&this._middleParts.indexOf(_9)>=0){ this._middleParts.splice(this._middleParts.indexOf(_9),1); }else{ if(this._leadingParts&&this._leadingParts.indexOf(_9)>=0){ this._leadingParts.splice(this._leadingParts.indexOf(_9),1); }else{ if(this._trailingParts&&this._trailingParts.indexOf(_9)>=0){ this._trailingParts.splice(this._trailingParts.indexOf(_9),1); }else{ if(this._baseParts&&this._baseParts.indexOf(_9)>=0){ this._baseParts.splice(this._baseParts.indexOf(_9),1); }else{ if(this._classParts&&this._classParts.indexOf(_9)>=0){ this._classParts.splice(this._classParts.indexOf(_9),1); } } } } } } this.inherited(arguments); },_computeArrayBoundingBox:function(_a){ if(_a.length==0){ return {x:0,y:0,w:0,h:0}; } var _b={x:-Infinity,y:-Infinity,w:0,h:0}; var _c=null; for(var i=0;i<_a.length;i++){ _c=this._computeBoundingBox(_a[i]._gfxGroup); if(!_c){ continue; } if(_b.x<_c.x){ _b.x=_c.x; } if(_b.w<_c.width){ _b.w=_c.width; } if(_b.y<_c.y){ _b.y=_c.y; } if(_b.h<_c.height){ _b.h=_c.height; } } if(_b.x==-Infinity){ _b.x=0; } if(_b.y==-Infinity){ _b.y=0; } return _b; },refreshRendering:function(){ if(this._widgetBox.w<=0||this._widgetBox.h<=0){ return; } var i; if(this._baseParts){ for(i=0;i