source:
imaps-frontend/node_modules/@popperjs/core/lib/utils/rectToClientRect.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 191 bytes |
Line | |
---|---|
1 | export default function rectToClientRect(rect) { |
2 | return Object.assign({}, rect, { |
3 | left: rect.x, |
4 | top: rect.y, |
5 | right: rect.x + rect.width, |
6 | bottom: rect.y + rect.height |
7 | }); |
8 | } |
Note:
See TracBrowser
for help on using the repository browser.