code: function axisCenteredPositionProperties(options) {
    const { oDim, wDim } = options;
    const { center, leftOffset, rightOffset } = centeringProperties(options);
    if (leftOffset > 0 || rightOffset > 0) {
      // right/bottom position is better
      if (leftOffset < rightOffset) {
        return { offset: rightOffset, position: wDim - oDim };
      }
      // left/top position is better
      if (rightOffset < leftOffset) {
        return { offset: -leftOffset, position: 0 };
      }
    }
    // centered position
    return { offset: 0, position: center - oDim / 2 };
  }
docs: Computes position and offset of popover when trying to align it to the triger center.
  It consideres window boundaries.
  Returns object with keys:
  - position: <Number> Absolute position - top/left,
  - offset: <Number> window overlapping size if window boundaries were not considered