@efflore/ui-element
Version:
UIElement - minimal reactive framework based on Web Components
13 lines (12 loc) • 375 B
TypeScript
import type { UIElement } from '../ui-element';
declare class VisibilityObserver {
observer: IntersectionObserver | void;
/**
* Set up IntersectionObserver for UIElement visibility state
*
* @param {UIElement} host - host UIElement for the observer
*/
constructor(host: UIElement);
disconnect(): void;
}
export default VisibilityObserver;