Functiondojox.gfx.Moveable.onFirstMove

dojo.require("dojox.gfx.Moveable");
defined in dojox/gfx/Moveable.js

called during the very first move notification, can be used to initialize coordinates, can be overwritten. default implementation does nothing

Usage

function (/*dojox.gfx.Mover*/ mover) (view source)
parametertypedescription
moverdojox.gfx.Moveran object, which makes a shape follow the mouse, used as a default mover, and as a base class for custom movers
fieldtypedescription
.destroyFunctionstops the move, deletes all references, so the object can be garbage-collected
.events 
.hostObjectOptional. object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)
.lastX 
.lastY 
.onFirstMoveFunctionit is meant to be called only once
.onMouseMoveFunctionevent processor for onmousemove
.shapedojox.gfx.Shapea shape object to be moved