code: function( element, point ) {
              element = $.getElement( element );
              var offset = $.getElementOffset( element ),
                  size = $.getElementSize( element );
              return point.x >= offset.x && point.x < offset.x + size.x && point.y < offset.y + size.y && point.y >= offset.y;
          }
docs: Determines if a point is within the bounding rectangle of the given element (hit-test).
  @function
  @param {Element|String} element
  @param {OpenSeadragon.Point} point
  @returns {Boolean}