align-plugin-debug.js revision d2fb75690de4575ac2dce458fac6dc5dac14dfbe
/**
* Provides advanced positioning support for Node via a Plugin
* for centering and alignment.
* @module align-plugin
*/
var OFFSET_WIDTH = 'offsetWidth',
OFFSET_HEIGHT = 'offsetHeight',
/**
* Node plugin which can be used to align a node with another node,
* region, or the viewport.
*
* @class Plugin.Align
* @param {Object} User configuration object
*/
var self = this;
function fn() {
}
}
}
}
/**
* Aligns node with a point on another node or region.
* Possible alignment points are:
* <dl>
* <dt>tl</dt>
* <dd>top left</dd>
* <dt>tr</dt>
* <dd>top right</dd>
* <dt>bl</dt>
* <dd>bottom left</dd>
* <dt>br</dt>
* <dd>bottom right</dd>
* <dt>tc</dt>
* <dd>top center</dd>
* <dt>bc</dt>
* <dd>bottom center</dd>
* <dt>rc</dt>
* <dd>right center</dd>
* <dt>lc</dt>
* <dd>left center</dd>
* <dt>cc</dt>
* <dd>center center</dd>
* </dl>
* @method to
* @parm region {String || Node || HTMLElement || Object} The node or
* region to align with. Defaults to the viewport region.
* @parm regionPoint {String} The point of the region to align with.
* @parm point {String} The point of the node aligned to the region.
* @parm resize {Boolean} Whether or not the node should re-align when
* the window is resized. Defaults to false.
*/
// cache original args for syncing
}
if (region) {
NULL = null,
if (regionFn0) {
}
if (regionFn1) {
}
if (nodeFn0) {
}
if (nodeFn1) {
}
}
this._resize(syncOnResize);
}
return this;
},
sync: function() {
return this;
},
}
},
_onresize: function() {
var self = this;
setTimeout(function() { // for performance
});
},
/**
* Aligns the center of a node to the center of another node or region.
* @method center
* @parm region {Node || HTMLElement || Object} optional The node or
* region to align with. Defaults to the viewport region.
* the window is resized. If centering to viewport, this defaults
* to true, otherwise default is false.
*/
return this;
},
/**
* Removes the resize handler, if any. This is called automatically
* when unplugged from the host node.
* @method destroy
*/
destroy: function() {
if (handle) {
}
}
};
return xy;
},
},
},
return xy;
},
if (point === 'cc') {
} else {
}
return ret;
}
};
Y.namespace('Plugin');