Skip to main content
Glama
index.d.mts556 B
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 };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kkShrihari/miEAA3_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server