@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
14 lines • 731 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getElementRects = void 0;
const getCssDimensions_1 = require("./getCssDimensions");
const getOffsetParent_1 = require("./getOffsetParent");
const getRectRelativeToOffsetParent_1 = require("./getRectRelativeToOffsetParent");
const getElementRects = ({ reference, floating, strategy, }) => {
return {
reference: (0, getRectRelativeToOffsetParent_1.getRectRelativeToOffsetParent)(reference, (0, getOffsetParent_1.getOffsetParent)(floating), strategy),
floating: { x: 0, y: 0, ...(0, getCssDimensions_1.getCssDimensions)(floating) },
};
};
exports.getElementRects = getElementRects;
//# sourceMappingURL=getElementRects.js.map