function getMid(element) {
  if (isConnection(element)) {
    return getConnectionMid(element);
  }

  return getBoundsMid(element);
}
Get the mid of the given Element.

@param {Element} element

@return {Point}