//>>built
define("dojox/image/Magnifier","dojo/_base/declare dojo/dom-construct dojo/_base/window dojox/gfx dojox/gfx/canvas ./MagnifierLite".split(" "),function(e,c,f,g,h,k){return e("dojox.image.Magnifier",k,{_createGlass:function(){this.glassNode=c.create("div",{style:{height:this.glassSize+"px",width:this.glassSize+"px"},className:"glassNode"},f.body());this.surfaceNode=c.create("div",null,this.glassNode);g.switchTo("canvas");this.surface=h.createSurface(this.surfaceNode,this.glassSize,this.glassSize);
this.img=this.surface.createImage({src:this.domNode.src,width:this._zoomSize.w,height:this._zoomSize.h})},_placeGlass:function(a){var b=a.pageX-2,d=a.pageY-2,l=this.offset.x+this.offset.w+2,m=this.offset.y+this.offset.h+2;b<this.offset.x||d<this.offset.y||b>l||d>m?this._hideGlass():this.inherited(arguments)},_setImage:function(a){var b=(a.pageX-this.offset.x)/this.offset.w;a=(a.pageY-this.offset.y)/this.offset.h;this.img.setShape({x:this._zoomSize.w*b*-1+this.glassSize*b,y:this._zoomSize.h*a*-1+this.glassSize*
a})}})});