See #17798
/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */
import assign from 'object-assign';
import {getElementDimensions, getNestedBoundingClientRect} from '../utils';
import type {Rect} from '../utils';
type Box = {|top: number, left: number, width: number, height: number|};
class OverlayRect {