build/out.js
/*
 * detect if a mouse event is in a column's resize area
 * @param  {Grid}   grid the hypergrid-lite object
 * @param  {Event}  evt  the mouse event to look near
 * @return {Column}      the column whose resize area the mouse is in, or null
 */
detect if a mouse event is in a column's resize area
@param  {Grid}   grid the hypergrid-lite object
@param  {Event}  evt  the mouse event to look near
@return {Column}      the column whose resize area the mouse is in, or null
detect if a mouse event is in a column ' s resize area @param { Grid } grid the hypergrid - lite object @param { Event } evt the mouse event to look near @return { Column } the column whose resize area the mouse is in or null
function detectResizingAreaColumn(grid, evt) {
    var threshold = 5;
    var nearest = detectNearestColumn(grid, evt);
    dragStartX = evt.pageX;
    if(Math.abs(evt.pageX - nearest.columnLeft) <= threshold) {
        return grid.getColumns()[Math.max(nearest.index - 1, 0)];
    } else if(Math.abs(evt.pageX - nearest.columnRight) <= threshold) {
        return grid.getColumns()[nearest.index];
    } else {
        return null;
    }
}
function detectResizingAreaColumn ( grid , evt ) { var threshold = 5 ; var nearest = detectNearestColumn ( grid , evt ) ; dragStartX = evt . pageX ; if ( Math . abs ( evt . pageX - nearest . columnLeft ) <= threshold ) { return grid . getColumns ( ) [ Math . max ( nearest . index - 1 , 0 ) ] ; } else if ( Math . abs ( evt . pageX - nearest . columnRight ) <= threshold ) { return grid . getColumns ( ) [ nearest . index ] ; } else { return null ; } }
detect if a mouse event is in a column's resize area
 @param  {Grid}   grid the hypergrid-lite object
 @param  {Event}  evt  the mouse event to look near
 @return {Column}      the column whose resize area the mouse is in, or null
detect if a mouse event is in a column ' s resize area @param { Grid } grid the hypergrid - lite object @param { Event } evt the mouse event to look near @return { Column } the column whose resize area the mouse is in or null
// `threshold` determines the size of the resize area. // Clicking in this area triggers a resize. // Detect if we clicked near the left or right border of a header cell // The user clicked near the left border. // Resize the previous column, or else the first column. // The user clicked near the right border. // Resize the current column.