Sha256: b1c00bc0bb440544aeb1232e59cffc376420ab2e70180c7c03928475fdd6bd06

Contents?: true

Size: 1.74 KB

Versions: 4

Compression:

Stored size: 1.74 KB

Contents

//>>built
define("dojox/dgauges/components/green/VerticalLinearGauge",["dojo/_base/lang","dojo/_base/declare","dojo/_base/Color","../utils","../../RectangularGauge","../../LinearScaler","../../RectangularScale","../../RectangularValueIndicator","../DefaultPropertiesMixin"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){
return _2("dojox.dgauges.components.green.VerticalLinearGauge",[_5,_9],{borderColor:[50,50,50],fillColor:[109,183,19],indicatorColor:[0,0,0],constructor:function(){
this.orientation="vertical";
this.borderColor=new _3(this.borderColor);
this.fillColor=new _3(this.fillColor);
this.indicatorColor=new _3(this.indicatorColor);
this.addElement("background",_1.hitch(this,this.drawBackground));
var _a=new _6();
var _b=new _7();
_b.set("scaler",_a);
_b.set("labelPosition","trailing");
_b.set("paddingTop",30);
_b.set("paddingBottom",30);
_b.set("paddingLeft",15);
_b.set("labelGap",2);
_b.set("font",{family:"Helvetica",weight:"bold",size:"7pt"});
this.addElement("scale",_b);
var _c=new _8();
_c.set("interactionArea","gauge");
_c.set("value",_a.minimum);
_c.set("paddingLeft",18);
_c.set("indicatorShapeFunc",_1.hitch(this,function(_d){
return _d.createPolyline([0,0,-10,-20,10,-20,0,0]).setFill(this.indicatorColor);
}));
_b.addIndicator("indicator",_c);
},drawBackground:function(g,w,h){
var _e=_4.brightness(new _3(this.fillColor),100);
g.createRect({x:0,y:0,width:50,height:h,r:10}).setFill(this.borderColor);
g.createRect({x:3,y:3,width:44,height:h-6,r:7}).setFill({type:"linear",x1:6,y1:0,x2:38,y2:0,colors:[{offset:0,color:_e},{offset:1,color:this.fillColor}]});
g.createRect({x:6,y:6,width:38,height:h-12,r:6}).setFill({type:"linear",x1:7,y1:0,x2:36,y2:0,colors:[{offset:0,color:[226,226,221]},{offset:0.5,color:[239,239,236]},{offset:1,color:"white"}]});
}});
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/dgauges/components/green/VerticalLinearGauge.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/dgauges/components/green/VerticalLinearGauge.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/dgauges/components/green/VerticalLinearGauge.js
dojox-rails-0.11.0 vendor/assets/javascripts/dgauges/components/green/VerticalLinearGauge.js