decord/source/5369_useBoundingClientRect.js

32 lines
915 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 5369
// Function ID: 5370
2026-07-23 10:11:24 +00:00
// Name: useBoundingClientRect
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 5272]
2026-07-23 10:11:24 +00:00
// Exports: useBoundingClientRect
2026-07-31 08:44:05 +00:00
// Module 5369 (useBoundingClientRect)
2026-07-29 08:29:29 +00:00
import { useLayoutEffect } from "noop";
2026-07-23 10:11:24 +00:00
export const useBoundingClientRect = function useBoundingClientRect(arg0, arg1) {
const _require = arg0;
const dependencyMap = arg1;
if (obj.isFabricInstalled()) {
useLayoutEffect(() => {
if (closure_0) {
2026-07-29 08:29:29 +00:00
if (tmp.current) {
2026-07-31 08:44:05 +00:00
if (typeof tmp.current.unstable_getBoundingClientRect === "disabledUntil") {
if (typeof tmp.current.getBoundingClientRect !== "disabledUntil") {
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());
}
}
}
});
}
};