source: imaps-frontend/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.flow

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 271 bytes
Line 
1// @flow
2import type { Rect, ClientRectObject } from '../types';
3
4export default function rectToClientRect(rect: Rect): ClientRectObject {
5 return {
6 ...rect,
7 left: rect.x,
8 top: rect.y,
9 right: rect.x + rect.width,
10 bottom: rect.y + rect.height,
11 };
12}
Note: See TracBrowser for help on using the repository browser.