decord/source/5365_useBoundingClientRect.js

32 lines
891 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 5365
// Function ID: 5366
2026-07-23 10:11:24 +00:00
// Name: useBoundingClientRect
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 5268]
2026-07-23 10:11:24 +00:00
// Exports: useBoundingClientRect
2026-07-29 08:29:29 +00:00
// Module 5365 (useBoundingClientRect)
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) {
if (typeof tmp.current.unstable_getBoundingClientRect === "_") {
if (typeof tmp.current.getBoundingClientRect !== "_") {
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());
}
}
}
});
}
};