a:28:{s:9:"#provides";s:13:"dojo.dnd.move";s:9:"#resource";s:11:"dnd/move.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:14:"dojo.dnd.Mover";}i:1;a:2:{i:0;s:6:"common";i:1;s:17:"dojo.dnd.Moveable";}}s:33:"dojo.dnd.move.constrainedMoveable";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:17:"dojo.dnd.Moveable";}s:4:"call";a:1:{i:0;s:17:"dojo.dnd.Moveable";}}s:10:"parameters";a:2:{s:4:"node";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:33:"a node (or node's id) to be moved";}s:6:"params";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:83:"an optional object with additional parameters; following parameters are recognized:";}}s:6:"source";s:101:" if(!params){ params = {}; } this.constraints = params.constraints; this.within = params.within;";s:7:"summary";s:38:"an object, which makes a node moveable";s:9:"classlike";b:1;}s:45:"dojo.dnd.move.constrainedMoveable.constraints";a:5:{s:9:"prototype";s:33:"dojo.dnd.move.constrainedMoveable";s:4:"type";s:8:"Function";s:6:"source";s:3:"} ";s:8:"instance";s:33:"dojo.dnd.move.constrainedMoveable";s:7:"summary";s:96:"a function, which calculates a constraint box, it is called in a context of the moveable object.";}s:40:"dojo.dnd.move.constrainedMoveable.within";a:4:{s:9:"prototype";s:33:"dojo.dnd.move.constrainedMoveable";s:8:"instance";s:33:"dojo.dnd.move.constrainedMoveable";s:4:"type";s:7:"Boolean";s:7:"summary";s:69:"restrict move within boundaries. the rest is passed to the base class";}s:47:"dojo.dnd.move.constrainedMoveable.markupFactory";a:5:{s:9:"prototype";s:33:"dojo.dnd.move.constrainedMoveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"params";a:1:{s:4:"type";s:0:"";}s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:61:" return new dojo.dnd.move.constrainedMoveable(node, params);";s:7:"summary";s:0:"";}s:45:"dojo.dnd.move.constrainedMoveable.onFirstMove";a:6:{s:9:"prototype";s:33:"dojo.dnd.move.constrainedMoveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"mover";a:1:{s:4:"type";s:14:"dojo.dnd.Mover";}}s:6:"source";s:199:" var c = this.constraintBox = this.constraints.call(this, mover); c.r = c.l + c.w; c.b = c.t + c.h; if(this.within){ var mb = dojo.marginBox(mover.node); c.r -= mb.w; c.b -= mb.h; }";s:7:"summary";s:106:"called during the very first move notification, can be used to initialize coordinates, can be overwritten.";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:16:"this.constraints";}}}s:40:"dojo.dnd.move.constrainedMoveable.onMove";a:5:{s:9:"prototype";s:33:"dojo.dnd.move.constrainedMoveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"mover";a:1:{s:4:"type";s:14:"dojo.dnd.Mover";}s:7:"leftTop";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:209:" var c = this.constraintBox, s = mover.node.style; s.left = (leftTop.l < c.l ? c.l : c.r < leftTop.l ? c.r : leftTop.l) + "px"; s.top = (leftTop.t < c.t ? c.t : c.b < leftTop.t ? c.b : leftTop.t) + "px";";s:7:"summary";s:89:"called during every move notification, should actually move the node, can be overwritten.";}s:47:"dojo.dnd.move.constrainedMoveable.constraintBox";a:2:{s:8:"instance";s:33:"dojo.dnd.move.constrainedMoveable";s:7:"summary";s:0:"";}s:36:"dojo.dnd.move.boxConstrainedMoveable";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:33:"dojo.dnd.move.constrainedMoveable";}s:4:"call";a:1:{i:0;s:33:"dojo.dnd.move.constrainedMoveable";}}s:10:"parameters";a:2:{s:4:"node";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:33:"a node (or node's id) to be moved";}s:6:"params";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:150:"an optional object with additional parameters; following parameters are recognized: box: Object: a constraint box the rest is passed to the base class";}}s:6:"source";s:81:" var box = params && params.box; this.constraints = function(){ return box; };";s:7:"summary";s:38:"an object, which makes a node moveable";s:9:"classlike";b:1;}s:40:"dojo.dnd.move.boxConstrainedMoveable.box";a:3:{s:9:"prototype";s:36:"dojo.dnd.move.boxConstrainedMoveable";s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:50:"dojo.dnd.move.boxConstrainedMoveable.markupFactory";a:5:{s:9:"prototype";s:36:"dojo.dnd.move.boxConstrainedMoveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"params";a:1:{s:4:"type";s:0:"";}s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:64:" return new dojo.dnd.move.boxConstrainedMoveable(node, params);";s:7:"summary";s:0:"";}s:48:"dojo.dnd.move.boxConstrainedMoveable.constraints";a:4:{s:8:"instance";s:36:"dojo.dnd.move.boxConstrainedMoveable";s:4:"type";s:8:"Function";s:6:"source";s:45:" this.constraints = function(){ return box; ";s:7:"summary";s:0:"";}s:39:"dojo.dnd.move.parentConstrainedMoveable";a:7:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:33:"dojo.dnd.move.constrainedMoveable";}s:4:"call";a:1:{i:0;s:33:"dojo.dnd.move.constrainedMoveable";}}s:10:"parameters";a:2:{s:4:"node";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:33:"a node (or node's id) to be moved";}s:6:"params";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:264:"an optional object with additional parameters; following parameters are recognized: area: String: a parent's area to restrict the move, can be "margin", "border", "padding", or "content". the rest is passed to the base class";}}s:6:"source";s:644:" var area = params && params.area; this.constraints = function(){ var n = this.node.parentNode, s = dojo.getComputedStyle(n), mb = dojo._getMarginBox(n, s); if(area == "margin"){ return mb; // Object } var t = dojo._getMarginExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "border"){ return mb; // Object } t = dojo._getBorderExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "padding"){ return mb; // Object } t = dojo._getPadExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; return mb; // Object };";s:7:"summary";s:38:"an object, which makes a node moveable";s:7:"returns";s:6:"Object";s:9:"classlike";b:1;}s:44:"dojo.dnd.move.parentConstrainedMoveable.area";a:2:{s:9:"prototype";s:39:"dojo.dnd.move.parentConstrainedMoveable";s:7:"summary";s:0:"";}s:53:"dojo.dnd.move.parentConstrainedMoveable.markupFactory";a:5:{s:9:"prototype";s:39:"dojo.dnd.move.parentConstrainedMoveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"params";a:1:{s:4:"type";s:0:"";}s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:67:" return new dojo.dnd.move.parentConstrainedMoveable(node, params);";s:7:"summary";s:0:"";}s:51:"dojo.dnd.move.parentConstrainedMoveable.constraints";a:5:{s:8:"instance";s:39:"dojo.dnd.move.parentConstrainedMoveable";s:4:"type";s:8:"Function";s:6:"source";s:570:" var n = this.node.parentNode, s = dojo.getComputedStyle(n), mb = dojo._getMarginBox(n, s); if(area == "margin"){ return mb; // Object } var t = dojo._getMarginExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "border"){ return mb; // Object } t = dojo._getBorderExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "padding"){ return mb; // Object } t = dojo._getPadExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; return mb; // Object";s:7:"returns";s:6:"Object";s:7:"summary";s:0:"";}s:30:"dojo.dnd.move.constrainedMover";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"fun";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:44:"called on drag, and returns a constraint box";}s:6:"within";a:2:{s:4:"type";s:7:"Boolean";s:7:"summary";s:127:"if true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner";}}s:6:"source";s:993:" dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead"); var mover = function(node, e, notifier){ dojo.dnd.Mover.call(this, node, e, notifier); }; dojo.extend(mover, dojo.dnd.Mover.prototype); dojo.extend(mover, { onMouseMove: function(e){ // summary: event processor for onmousemove // e: Event: mouse event dojo.dnd.autoScroll(e); var m = this.marginBox, c = this.constraintBox, l = m.l + e.pageX, t = m.t + e.pageY; l = l < c.l ? c.l : c.r < l ? c.r : l; t = t < c.t ? c.t : c.b < t ? c.b : t; this.host.onMove(this, {l: l, t: t}); }, onFirstMove: function(){ // summary: called once to initialize things; it is meant to be called only once dojo.dnd.Mover.prototype.onFirstMove.call(this); var c = this.constraintBox = fun.call(this); c.r = c.l + c.w; c.b = c.t + c.h; if(within){ var mb = dojo.marginBox(this.node); c.r -= mb.w; c.b -= mb.h; } } }); return mover; // Object";s:7:"summary";s:47:"returns a constrained version of dojo.dnd.Mover";s:11:"description";s:120:"this function produces n object, which will put a constraint on the margin box of dragged object in absolute coordinates";s:7:"returns";s:6:"Object";s:6:"chains";a:1:{s:4:"call";a:2:{i:0;s:14:"dojo.dnd.Mover";i:1;s:36:"dojo.dnd.Mover.prototype.onFirstMove";}}}s:44:"dojo.dnd.move.constrainedMover.constraintBox";a:2:{s:8:"instance";s:30:"dojo.dnd.move.constrainedMover";s:7:"summary";s:0:"";}s:33:"dojo.dnd.move.boxConstrainedMover";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"box";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:29:"a constraint box (l, t, w, h)";}s:6:"within";a:2:{s:4:"type";s:7:"Boolean";s:7:"summary";s:127:"if true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner";}}s:6:"source";s:189:" dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead"); return dojo.dnd.move.constrainedMover(function(){ return box; }, within); // Object";s:7:"summary";s:84:"a specialization of dojo.dnd.constrainedMover, which constrains to the specified box";s:7:"returns";s:6:"Object";}s:36:"dojo.dnd.move.parentConstrainedMover";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"area";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:230:""margin" to constrain within the parent's margin box, "border" for the border box, "padding" for the padding box, and "content" for the content box; "content" is the default value.";}s:6:"within";a:2:{s:4:"type";s:7:"Boolean";s:7:"summary";s:127:"if true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner";}}s:6:"source";s:752:" dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead"); var fun = function(){ var n = this.node.parentNode, s = dojo.getComputedStyle(n), mb = dojo._getMarginBox(n, s); if(area == "margin"){ return mb; // Object } var t = dojo._getMarginExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "border"){ return mb; // Object } t = dojo._getBorderExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; if(area == "padding"){ return mb; // Object } t = dojo._getPadExtents(n, s); mb.l += t.l, mb.t += t.t, mb.w -= t.w, mb.h -= t.h; return mb; // Object }; return dojo.dnd.move.constrainedMover(fun, within); // Object";s:7:"summary";s:82:"a specialization of dojo.dnd.constrainedMover, which constrains to the parent node";s:7:"returns";s:6:"Object";}s:25:"dojo.dnd.constrainedMover";a:1:{s:7:"summary";s:0:"";}s:28:"dojo.dnd.boxConstrainedMover";a:1:{s:7:"summary";s:0:"";}s:31:"dojo.dnd.parentConstrainedMover";a:1:{s:7:"summary";s:0:"";}s:13:"dojo.dnd.move";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:8:"dojo.dnd";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}