code: function (targetRect) {
        return targetRect ? {
          x: Math.round(targetRect.left + (targetRect.width / 2)),
          y: Math.round(targetRect.top + (targetRect.height / 2))
        } : { x : 0, y : 0 };
      }
docs: Calculate 'rounded' center point of Rect