Files
agency/.pnpm-store/v3/files/6d/d1da3d3a1609267cd47b945c58c9c255b23c58446e04318b90c99ad820b9762dfc291a793cbfabcb1d11b908d03df77dad6c9c490268ca907e7f855fdca693
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

17 lines
556 B
Plaintext

type Measurable = {
getBoundingClientRect(): DOMRect;
};
/**
* Observes an element's rectangle on screen (getBoundingClientRect)
* This is useful to track elements on the screen and attach other elements
* that might be in different layers, etc.
*/
declare function observeElementRect(
/** The element whose rect to observe */
elementToObserve: Measurable,
/** The callback which will be called when the rect changes */
callback: CallbackFn): () => void;
type CallbackFn = (rect: DOMRect) => void;
export { type Measurable, observeElementRect };