nnnjjj123
2020-11-17 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc
1
2
3
4
5
//>>built
define("dojo/_base/lang dojo/_base/declare dojo/_base/Color ../../RectangularGauge ../../LinearScaler ../../RectangularScale ../../RectangularValueIndicator ../DefaultPropertiesMixin".split(" "),function(e,f,d,g,h,k,l,m){return f("dojox.dgauges.components.classic.VerticalLinearGauge",[g,m],{borderColor:[121,126,134],fillColor:[148,152,161],indicatorColor:"#FFFFFF",constructor:function(){this.orientation="vertical";this.borderColor=new d(this.borderColor);this.fillColor=new d(this.fillColor);this.indicatorColor=
new d(this.indicatorColor);this.addElement("background",e.hitch(this,this.drawBackground));var c=new h,b=new k;b.set("scaler",c);b.set("labelPosition","trailing");b.set("paddingTop",30);b.set("paddingBottom",30);b.set("paddingLeft",17);b.set("font",{family:"Helvetica",weight:"bold",size:"7pt"});b.set("tickShapeFunc",function(a,b,c){return a.createCircle({r:c.isMinor?.5:2}).setFill("black")});this.addElement("scale",b);var a=new l;a.set("interactionArea","gauge");a.set("value",c.minimum);a.set("paddingLeft",
18);a.set("indicatorShapeFunc",e.hitch(this,function(a){return a.createPolyline([0,0,-10,-20,10,-20,0,0]).setFill(this.indicatorColor).setStroke({color:[121,126,134],width:1,style:"Solid",cap:"butt",join:20})}));b.addIndicator("indicator",a)},drawBackground:function(c,b,a){c.createRect({x:0,y:0,width:50,height:a,r:8}).setFill(this.borderColor);c.createRect({x:2,y:2,width:46,height:a/2,r:6}).setFill({type:"linear",x1:0,y1:2,x2:0,y2:a/2,colors:[{offset:0,color:[235,235,235]},{offset:1,color:this.borderColor}]});
c.createRect({x:6,y:6,width:38,height:a-12,r:5}).setFill({type:"linear",x1:6,y1:0,x2:38,y2:0,colors:[{offset:0,color:this.fillColor},{offset:1,color:[220,220,220]}]});c.createRect({x:7,y:7,width:36,height:a-14,r:3}).setFill({type:"linear",x1:7,y1:0,x2:36,y2:0,colors:[{offset:0,color:[220,220,220]},{offset:1,color:this.fillColor}]})}})});