src/console/simpleyui.js
function(node, node2, altRegion) {
        var r = altRegion || DOM.region(node), region = {},
            n = node2,
            off;

        if (n.tagName) {
            region = DOM.region(n);
        } else if (Y.Lang.isObject(node2)) {
            region = node2;
        } else {
            return false;
        }
        
        off = getOffsets(region, r);
        return {
            top: off[TOP],
            right: off[RIGHT],
            bottom: off[BOTTOM],
            left: off[LEFT],
            area: ((off[BOTTOM] - off[TOP]) * (off[RIGHT] - off[LEFT])),
            yoff: ((off[BOTTOM] - off[TOP])),
            xoff: (off[RIGHT] - off[LEFT]),
            inRegion: DOM.inRegion(node, node2, false, altRegion)
        };
        
    }
function(node, node2, altRegion) {
        var r = altRegion || DOM.region(node), region = {},
            n = node2,
            off;

        if (n.tagName) {
            region = DOM.region(n);
        } else if (Y.Lang.isObject(node2)) {
            region = node2;
        } else {
            return false;
        }
        
        off = getOffsets(region, r);
        return {
            top: off[TOP],
            right: off[RIGHT],
            bottom: off[BOTTOM],
            left: off[LEFT],
            area: ((off[BOTTOM] - off[TOP]) * (off[RIGHT] - off[LEFT])),
            yoff: ((off[BOTTOM] - off[TOP])),
            xoff: (off[RIGHT] - off[LEFT]),
            inRegion: DOM.inRegion(node, node2, false, altRegion)
        };
        
    }
function ( node , node2 , altRegion ) { var r = altRegion || DOM . region ( node ) , region = { } , n = node2 , off ; if ( n . tagName ) { region = DOM . region ( n ) ; } else if ( Y . Lang . isObject ( node2 ) ) { region = node2 ; } else { return false ; } off = getOffsets ( region , r ) ; return { top : off [ TOP ] , right : off [ RIGHT ] , bottom : off [ BOTTOM ] , left : off [ LEFT ] , area : ( ( off [ BOTTOM ] - off [ TOP ] ) * ( off [ RIGHT ] - off [ LEFT ] ) ) , yoff : ( ( off [ BOTTOM ] - off [ TOP ] ) ) , xoff : ( off [ RIGHT ] - off [ LEFT ] ) , inRegion : DOM . inRegion ( node , node2 , false , altRegion ) } ; }
Find the intersect information for the passes nodes.
@method intersect
@for DOM
@param {HTMLElement} element The first element
@param {HTMLElement | Object} element2 The element or region to check the interect with
@param {Object} altRegion An object literal containing the region for the first element if we already have the data (for performance i.e. DragDrop)
@return {Object} Object literal containing the following intersection data: (top, right, bottom, left, area, yoff, xoff, inRegion)
Find the intersect information for the passes nodes .