code: function getRenderedCenter(target, renderedDimensions){
    let pos = target.renderedPosition();
    let dimensions = renderedDimensions(target);
    let offsetX = dimensions.w / 2;
    let offsetY = dimensions.h / 2;
  
    return {
      x : (pos.x - offsetX),
      y : (pos.y - offsetY)
    };
  }
docs: Get the rendered center