decord/source/7028_useBoundingClientRect.js

33 lines
939 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7028
// Function ID: 7029
2026-07-23 10:11:24 +00:00
// Name: useBoundingClientRect
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 7013]
2026-07-23 10:11:24 +00:00
// Exports: useBoundingClientRect
2026-08-24 06:08:38 +00:00
// Module 7028 (useBoundingClientRect)
import noop from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const useLayoutEffect = noop.useLayoutEffect;
2026-07-23 10:11:24 +00:00
export const useBoundingClientRect = function useBoundingClientRect(arg0, arg1) {
const _require = arg0;
2026-08-24 06:08:38 +00:00
dependencyMap = arg1;
2026-07-23 10:11:24 +00:00
if (obj.isFabricInstalled()) {
useLayoutEffect(() => {
if (closure_0) {
2026-07-29 08:29:29 +00:00
if (tmp.current) {
2026-08-04 21:03:28 +00:00
if (typeof tmp.current.unstable_getBoundingClientRect !== "function") {
if (typeof tmp.current.getBoundingClientRect === "function") {
2026-07-29 08:29:29 +00:00
const current2 = tmp.current;
2026-07-23 10:11:24 +00:00
callback(current2.getBoundingClientRect());
}
} else {
2026-07-29 08:29:29 +00:00
const current = tmp.current;
2026-07-23 10:11:24 +00:00
callback(current.unstable_getBoundingClientRect());
}
}
}
});
}
};