a:13:{s:9:"#provides";s:15:"dojox.gfx.Mover";s:9:"#resource";s:12:"gfx/Mover.js";s:15:"dojox.gfx.Mover";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:5:"shape";a:2:{s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:26:"a shape object to be moved";}s:1:"e";a:2:{s:4:"type";s:5:"Event";s:7:"summary";s:83:"a mouse event, which started the move; only clientX and clientY properties are used";}s:4:"host";a:3:{s:4:"type";s:6:"Object";s:8:"optional";b:1;s:7:"summary";s:109:"object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)";}}s:6:"source";s:578:" this.shape = shape; this.lastX = e.clientX this.lastY = e.clientY; var h = this.host = host, d = document, firstEvent = dojo.connect(d, "onmousemove", this, "onFirstMove"); this.events = [ dojo.connect(d, "onmousemove", this, "onMouseMove"), dojo.connect(d, "onmouseup", this, "destroy"), // cancel text selection and text dragging dojo.connect(d, "ondragstart", dojo, "stopEvent"), dojo.connect(d, "onselectstart", dojo, "stopEvent"), firstEvent ]; // notify that the move has started if(h && h.onMoveStart){ h.onMoveStart(this); }";s:7:"summary";s:111:"an object, which makes a shape follow the mouse, used as a default mover, and as a base class for custom movers";s:9:"classlike";b:1;}s:27:"dojox.gfx.Mover.onMouseMove";a:5:{s:9:"prototype";s:15:"dojox.gfx.Mover";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:2:{s:4:"type";s:5:"Event";s:7:"summary";s:11:"mouse event";}}s:6:"source";s:166:" var x = e.clientX; var y = e.clientY; this.host.onMove(this, {dx: x - this.lastX, dy: y - this.lastY}); this.lastX = x; this.lastY = y; dojo.stopEvent(e);";s:7:"summary";s:31:"event processor for onmousemove";}s:27:"dojox.gfx.Mover.onFirstMove";a:4:{s:9:"prototype";s:15:"dojox.gfx.Mover";s:4:"type";s:8:"Function";s:6:"source";s:68:" this.host.onFirstMove(this); dojo.disconnect(this.events.pop());";s:7:"summary";s:34:"it is meant to be called only once";}s:23:"dojox.gfx.Mover.destroy";a:4:{s:9:"prototype";s:15:"dojox.gfx.Mover";s:4:"type";s:8:"Function";s:6:"source";s:200:" dojo.forEach(this.events, dojo.disconnect); // undo global settings var h = this.host; if(h && h.onMoveStop){ h.onMoveStop(this); } // destroy objects this.events = this.shape = null;";s:7:"summary";s:78:"stops the move, deletes all references, so the object can be garbage-collected";}s:21:"dojox.gfx.Mover.lastX";a:2:{s:8:"instance";s:15:"dojox.gfx.Mover";s:7:"summary";s:0:"";}s:21:"dojox.gfx.Mover.lastY";a:2:{s:8:"instance";s:15:"dojox.gfx.Mover";s:7:"summary";s:0:"";}s:22:"dojox.gfx.Mover.events";a:2:{s:8:"instance";s:15:"dojox.gfx.Mover";s:7:"summary";s:0:"";}s:21:"dojox.gfx.Mover.shape";a:3:{s:8:"instance";s:15:"dojox.gfx.Mover";s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:26:"a shape object to be moved";}s:20:"dojox.gfx.Mover.host";a:3:{s:8:"instance";s:15:"dojox.gfx.Mover";s:4:"type";s:7:"Object?";s:7:"summary";s:109:"object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)";}s:9:"dojox.gfx";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:"";}}