UNPKG

@uiw/react-overlay-trigger

Version:

OverlayTrigger component

14 lines 423 B
import _extends from "@babel/runtime/helpers/extends"; /** * 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 _extends({}, offsets, { right: offsets.left + offsets.width, bottom: offsets.top + offsets.height }); }