decord/source/6990_useBoundingClientRect.js

32 lines
905 B
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 6990
// Function ID: 6991
2026-07-23 10:11:24 +00:00
// Name: useBoundingClientRect
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 6975]
2026-07-23 10:11:24 +00:00
// Exports: useBoundingClientRect
2026-08-15 05:55:55 +00:00
// Module 6990 (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-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());
}
}
}
});
}
};