src/core/util/animation/animate.js
function (targetRect) {
      return targetRect ? {
        x: Math.round(targetRect.left + (targetRect.width / 2)),
        y: Math.round(targetRect.top + (targetRect.height / 2))
      } : { x : 0, y : 0 };
    }
function (targetRect) {
      return targetRect ? {
        x: Math.round(targetRect.left + (targetRect.width / 2)),
        y: Math.round(targetRect.top + (targetRect.height / 2))
      } : { x : 0, y : 0 };
    }
function ( targetRect ) { return targetRect ? { x : Math . round ( targetRect . left + ( targetRect . width / 2 ) ) , y : Math . round ( targetRect . top + ( targetRect . height / 2 ) ) } : { x : 0 , y : 0 } ; }
Calculate 'rounded' center point of Rect
Calculate rounded center point of Rect