mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 10:43:38 +00:00
merge new into master
This commit is contained in:
16
node_modules/@radix-ui/rect/dist/index.d.mts
generated
vendored
Normal file
16
node_modules/@radix-ui/rect/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user