packages/flyout/src/coordinateHelpers.js
function offsetContainerProperty(offsetProperty, coordinates, diff) {
  return {
    ...coordinates,
    containerPosition: {
      ...coordinates.containerPosition,
      [offsetProperty]: coordinates.containerPosition[offsetProperty] + diff
    }
  };
}
function offsetContainerProperty(offsetProperty, coordinates, diff) {
  return {
    ...coordinates,
    containerPosition: {
      ...coordinates.containerPosition,
      [offsetProperty]: coordinates.containerPosition[offsetProperty] + diff
    }
  };
}
function offsetContainerProperty ( offsetProperty , coordinates , diff ) { return { ... coordinates , containerPosition : { ... coordinates . containerPosition , [ offsetProperty ] : coordinates . containerPosition [ offsetProperty ] + diff } } ; }
Offsets the container
@param {string} offsetProperty
@param {Coordinates} coordinates
@param {number} diff
@returns {Coordinates}
Offsets the container