Vollständiges Redesign mit Gold-Formularen, BMP-Logo, multi-step Forms (Bewerbung, Kontakt, Sponsoring), Netlify-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
556 B
TypeScript
17 lines
556 B
TypeScript
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 };
|