decord/source/__polyfill/06xxx/module_6907.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

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());
}
}
}
});
}
};