lib/features/search-pad/SearchPad.js
function constructOverlay(box) {

  var offset = 6;
  var w = box.width + offset * 2;
  var h = box.height + offset * 2;

  var styles = [
    'width: '+ w +'px',
    'height: '+ h + 'px'
  ].join('; ');

  return {
    position: {
      bottom: h - offset,
      right: w - offset
    },
    show: true,
    html: '<div style="' + styles + '" class="' + SearchPad.OVERLAY_CLASS + '"></div>'
  };
}
function constructOverlay(box) {

  var offset = 6;
  var w = box.width + offset * 2;
  var h = box.height + offset * 2;

  var styles = [
    'width: '+ w +'px',
    'height: '+ h + 'px'
  ].join('; ');

  return {
    position: {
      bottom: h - offset,
      right: w - offset
    },
    show: true,
    html: '<div style="' + styles + '" class="' + SearchPad.OVERLAY_CLASS + '"></div>'
  };
}
function constructOverlay ( box ) { var offset = 6 ; var w = box . width + offset * 2 ; var h = box . height + offset * 2 ; var styles = [ 'width: ' + w + 'px' , 'height: ' + h + 'px' ] . join ( '; ' ) ; return { position : { bottom : h - offset , right : w - offset } , show : true , html : '<div style="' + styles + '" class="' + SearchPad . OVERLAY_CLASS + '"></div>' } ; }
Construct overlay object for the given bounding box.

@param  {BoundingBox} box
@return {Object}
Construct overlay object for the given bounding box .