All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.index.d.ts Maven / Gradle / Ivy

The newest version!
export type Measurable = {
    getBoundingClientRect(): ClientRect;
};
/**
 * 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.
 */
export 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: ClientRect) => void;

//# sourceMappingURL=index.d.ts.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy