Files
caria-website/module/@popperjs/core@2.11.8/lib/utils/rectToClientRect.js.flow
Christian CUNAT-BRULE 5db1c28fd8
All checks were successful
Déploiement DEV / deploy (push) Successful in 9s
Ajout des modules
2026-08-06 20:51:00 +02:00

13 lines
271 B
Plaintext

// @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,
};
}