a:13:{s:9:"#provides";s:21:"dojox.image.Magnifier";s:9:"#resource";s:18:"image/Magnifier.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:9:"dojox.gfx";}i:1;a:2:{i:0;s:6:"common";i:1;s:25:"dojox.image.MagnifierLite";}}s:21:"dojox.image.Magnifier";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:25:"dojox.image.MagnifierLite";}s:4:"call";a:1:{i:0;s:25:"dojox.image.MagnifierLite";}}s:7:"summary";s:68:"Adds magnification on a portion of an image element, using dojox.gfx";s:11:"description";s:292:"An unobtrusive way to add an unstyled overlay above the srcNode image element. The overlay/glass is a scaled version of the src image (so larger images sized down are clearer). over-ride the _createGlass method to create your custom surface, being sure to create an img node on that surface.";s:9:"classlike";b:1;}s:34:"dojox.image.Magnifier._createGlass";a:5:{s:9:"prototype";s:21:"dojox.image.Magnifier";s:4:"type";s:8:"Function";s:6:"source";s:1377:"dojo.provide("dojox.image.Magnifier"); dojo.require("dojox.gfx"); dojo.require("dojox.image.MagnifierLite"); dojo.declare("dojox.image.Magnifier", [dojox.image.MagnifierLite],{ // summary: Adds magnification on a portion of an image element, using dojox.gfx // // description: An unobtrusive way to add an unstyled overlay // above the srcNode image element. The overlay/glass is a // scaled version of the src image (so larger images sized down // are clearer). // // over-ride the _createGlass method to create your custom surface, // being sure to create an img node on that surface. _createGlass: function(){ // summary: create the glassNode, and an img on a dojox.gfx surface // images are hard to make into workable templates, so just add outer overlay // and skip using dijit._Templated this.glassNode = dojo.doc.createElement('div'); this.surfaceNode = this.glassNode.appendChild(dojo.doc.createElement('div')); dojo.addClass(this.glassNode,"glassNode"); dojo.body().appendChild(this.glassNode); with(this.glassNode.style){ height = this.glassSize + "px"; width = this.glassSize + "px"; } this.surface = dojox.gfx.createSurface(this.surfaceNode, this.glassSize, this.glassSize); this.img = this.surface.createImage({ src:this.domNode.src, width:this._zoomSize.w, height:this._zoomSize.h });";s:7:"private";b:1;s:7:"summary";s:0:"";}s:33:"dojox.image.Magnifier._placeGlass";a:6:{s:9:"prototype";s:21:"dojox.image.Magnifier";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:396:" var x = e.pageX - 2; var y = e.pageY - 2 ; var xMax = this.offset.x + this.offset.w + 2; var yMax = this.offset.y + this.offset.h + 2; // with svg, our mouseout connection to the image surface doesn't // fire, so we'r have to manually calculate offsets if(xxMax || y>yMax){ this._hideGlass(); }else{ this.inherited(arguments); }";s:7:"summary";s:46:"position the overlay centered under the cursor";s:7:"private";b:1;}s:31:"dojox.image.Magnifier._setImage";a:6:{s:9:"prototype";s:21:"dojox.image.Magnifier";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:302:" var xOff = (e.pageX - this.offset.l) / this.offset.w; var yOff = (e.pageY - this.offset.t) / this.offset.h; var x = (this._zoomSize.w * xOff * -1)+(this.glassSize*xOff); var y = (this._zoomSize.h * yOff * -1)+(this.glassSize*yOff); // set the image offset this.img.setShape({ x: x, y:y }); ";s:7:"summary";s:76:"set the image's offset in the clipping window relative to the mouse position";s:7:"private";b:1;}s:31:"dojox.image.Magnifier.glassNode";a:2:{s:8:"instance";s:21:"dojox.image.Magnifier";s:7:"summary";s:0:"";}s:33:"dojox.image.Magnifier.surfaceNode";a:2:{s:8:"instance";s:21:"dojox.image.Magnifier";s:7:"summary";s:0:"";}s:29:"dojox.image.Magnifier.surface";a:2:{s:8:"instance";s:21:"dojox.image.Magnifier";s:7:"summary";s:0:"";}s:25:"dojox.image.Magnifier.img";a:2:{s:8:"instance";s:21:"dojox.image.Magnifier";s:7:"summary";s:0:"";}s:11:"dojox.image";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}