Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
31 lines
886 B
JavaScript
31 lines
886 B
JavaScript
// Module ID: 6907
|
|
// Function ID: 6908
|
|
// Dependencies: [19, 6751]
|
|
// Exports: useBoundingClientRect
|
|
|
|
// Module 6907
|
|
import _mod19 from "module_19" /* 19 */;
|
|
|
|
const useLayoutEffect = _mod19.useLayoutEffect;
|
|
|
|
export const useBoundingClientRect = function useBoundingClientRect(arg0, arg1) {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
if (obj.isFabricInstalled()) {
|
|
useLayoutEffect(() => {
|
|
if (closure_0) {
|
|
if (tmp.current) {
|
|
if (typeof tmp.current.unstable_getBoundingClientRect !== "function") {
|
|
if (typeof tmp.current.getBoundingClientRect === "function") {
|
|
const current2 = tmp.current;
|
|
closure_1(current2.getBoundingClientRect());
|
|
}
|
|
} else {
|
|
const current = tmp.current;
|
|
closure_1(current.unstable_getBoundingClientRect());
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
};
|