function getBounds(s) {

  if ('bounds' in s) {
    s = s.bounds;
  }

  // TLBR object
  if ('top' in s) {
    return {
      x: s.left,
      y: s.top,
      width: s.right - s.left,
      height: s.bottom - s.top
    };
  }

  // { x, y, width, height } object
  else {
    return pick(s, BOUNDS_ATTRS);
  }
}
@typedef {import('../../lib/util/Types').Dimensions} Dimensions
@typedef {import('../../lib/util/Types').Point} Point
@typedef {import('../../lib/util/Types').Rect} Rect
@typedef {import('../../lib/util/Types').RectTRBL} RectTRBL