decord/source/__polyfill/06xxx/module_6878.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

31 lines
886 B
JavaScript

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