decord/source/5343_useBoundingClientRect.js

32 lines
912 B
JavaScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 5343
// Function ID: 45952
2026-07-23 10:11:24 +00:00
// Name: useBoundingClientRect
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 5246]
2026-07-23 10:11:24 +00:00
// Exports: useBoundingClientRect
2026-07-28 08:39:19 +00:00
// Module 5343 (useBoundingClientRect)
2026-07-23 10:11:24 +00:00
import { useLayoutEffect } from "result";
export const useBoundingClientRect = function useBoundingClientRect(arg0, arg1) {
const _require = arg0;
const dependencyMap = arg1;
if (obj.isFabricInstalled()) {
useLayoutEffect(() => {
if (closure_0) {
if (closure_0.current) {
if (null === closure_0.current.unstable_getBoundingClientRect) {
if (null !== closure_0.current.getBoundingClientRect) {
const current2 = closure_0.current;
callback(current2.getBoundingClientRect());
}
} else {
const current = closure_0.current;
callback(current.unstable_getBoundingClientRect());
}
}
}
});
}
};