decord/source/5369_useBoundingClientRect.js
2026-07-31 08:44:05 +00:00

31 lines
915 B
JavaScript

// Module ID: 5369
// Function ID: 5370
// Name: useBoundingClientRect
// Dependencies: [19, 5272]
// Exports: useBoundingClientRect
// Module 5369 (useBoundingClientRect)
import { useLayoutEffect } from "noop";
export const useBoundingClientRect = function useBoundingClientRect(arg0, arg1) {
const _require = arg0;
const dependencyMap = arg1;
if (obj.isFabricInstalled()) {
useLayoutEffect(() => {
if (closure_0) {
if (tmp.current) {
if (typeof tmp.current.unstable_getBoundingClientRect === "disabledUntil") {
if (typeof tmp.current.getBoundingClientRect !== "disabledUntil") {
const current2 = tmp.current;
callback(current2.getBoundingClientRect());
}
} else {
const current = tmp.current;
callback(current.unstable_getBoundingClientRect());
}
}
}
});
}
};