Aggiunta preliminare MP-MAG

This commit is contained in:
2020-12-31 10:35:24 +01:00
parent 2ed4b6e6f3
commit 9b4293b5b6
414 changed files with 118148 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* Given element offsets, generate an output similar to getBoundingClientRect
* @method
* @memberof Popper.Utils
* @argument {Object} offsets
* @returns {Object} ClientRect like output
*/
export default function getClientRect(offsets) {
return {
...offsets,
right: offsets.left + offsets.width,
bottom: offsets.top + offsets.height,
};
}