Initial commit
This commit is contained in:
8
wwwroot/lib/popper.js/esm/utils/rectToClientRect.js
Normal file
8
wwwroot/lib/popper.js/esm/utils/rectToClientRect.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default function rectToClientRect(rect) {
|
||||
return Object.assign({}, rect, {
|
||||
left: rect.x,
|
||||
top: rect.y,
|
||||
right: rect.x + rect.width,
|
||||
bottom: rect.y + rect.height
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user