decord/source/__polyfill/06xxx/module_6820.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

31 lines
886 B
JavaScript

// Module ID: 6820
// Function ID: 6821
// Dependencies: [19, 6664]
// Exports: useBoundingClientRect
// Module 6820
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());
}
}
}
});
}
};