Current File : /home/exataengenharia/public_html/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.flow
// @flow
import type { Rect, ClientRectObject } from '../types';

export default function rectToClientRect(rect: Rect): ClientRectObject {
  return {
    ...rect,
    left: rect.x,
    top: rect.y,
    right: rect.x + rect.width,
    bottom: rect.y + rect.height,
  };
}