Sha256: 2161c8dc00be39c211a606b1bfe7a12175a264cd70bdf207588f4360e91fa5cd

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

//>>built
define("dojox/drawing/plugins/tools/Zoom",["dojo/_base/lang","../../util/oo","../_Plugin","../../manager/_registry"],function(_1,oo,_2,_3){
var _4=Math.pow(2,0.25),_5=10,_6=0.1,_7=1,dt;
if(!_1.getObject("dojox.drawing.plugins.tools")){
_1.setObject("dojox.drawing.plugins.tools",{});
}
dt=dojox.drawing.plugins.tools;
dt.ZoomIn=oo.declare(_2,function(_8){
},{type:"dojox.drawing.plugins.tools.ZoomIn",onZoomIn:function(){
_7*=_4;
_7=Math.min(_7,_5);
this.canvas.setZoom(_7);
this.mouse.setZoom(_7);
},onClick:function(){
this.onZoomIn();
}});
dt.Zoom100=oo.declare(_2,function(_9){
},{type:"dojox.drawing.plugins.tools.Zoom100",onZoom100:function(){
_7=1;
this.canvas.setZoom(_7);
this.mouse.setZoom(_7);
},onClick:function(){
this.onZoom100();
}});
dt.ZoomOut=oo.declare(_2,function(_a){
},{type:"dojox.drawing.plugins.tools.ZoomOut",onZoomOut:function(){
_7/=_4;
_7=Math.max(_7,_6);
this.canvas.setZoom(_7);
this.mouse.setZoom(_7);
},onClick:function(){
this.onZoomOut();
}});
dt.ZoomIn.setup={name:"dojox.drawing.plugins.tools.ZoomIn",tooltip:"Zoom In"};
_3.register(dt.ZoomIn.setup,"plugin");
dt.Zoom100.setup={name:"dojox.drawing.plugins.tools.Zoom100",tooltip:"Zoom to 100%"};
_3.register(dt.Zoom100.setup,"plugin");
dt.ZoomOut.setup={name:"dojox.drawing.plugins.tools.ZoomOut",tooltip:"Zoom In"};
_3.register(dt.ZoomOut.setup,"plugin");
return dt;
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/drawing/plugins/tools/Zoom.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/drawing/plugins/tools/Zoom.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/drawing/plugins/tools/Zoom.js
dojox-rails-0.11.0 vendor/assets/javascripts/drawing/plugins/tools/Zoom.js