Sha256: c0a8842c1c06cd16be8bc46f77ed64c2239dccdb40471baf2bd6de616f8e451e

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

//>>built
define("dojox/dgauges/RectangularValueIndicator",["dojo/_base/declare","./ScaleIndicatorBase","dojox/gfx","dojo/_base/event","dojo/dom-geometry"],function(_1,_2,_3,_4,_5){
return _1("dojox.dgauges.RectangularValueIndicator",_2,{paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,constructor:function(){
this.addInvalidatingProperties(["paddingTop","paddingLeft","paddingRight","paddingBottom"]);
},indicatorShapeFunc:function(_6,_7){
return _6.createPolyline([0,0,10,0,0,10,-10,0,0,0]).setStroke({color:"black",width:1});
},refreshRendering:function(){
this.inherited(arguments);
var v=isNaN(this._transitionValue)?this.value:this._transitionValue;
var _8=this.scale.positionForValue(v);
var dx=0,dy=0;
var _9=0;
if(this.scale._gauge.orientation=="horizontal"){
dx=_8;
dy=this.paddingTop;
}else{
dx=this.paddingLeft;
dy=_8;
_9=90;
}
this._gfxGroup.setTransform([{dx:dx,dy:dy},_3.matrix.rotateg(_9)]);
},_onMouseDown:function(_a){
this.inherited(arguments);
var np=_5.position(this.scale._gauge.domNode,true);
this.set("value",this.scale.valueForPosition({x:_a.pageX-np.x,y:_a.pageY-np.y}));
_4.stop(_a);
},_onMouseMove:function(_b){
this.inherited(arguments);
var np=_5.position(this.scale._gauge.domNode,true);
this.set("value",this.scale.valueForPosition({x:_b.pageX-np.x,y:_b.pageY-np.y}));
}});
});

Version data entries

4 entries across 4 versions & 1 rubygems

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