import type {ClientRectObject, Rect} from '../types';

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