decord/source/__polyfill/06xxx/module_6911.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

31 lines
886 B
JavaScript

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