UNPKG

816 BTypeScriptView Raw
1import { EventEmitter, ElementRef, NgZone, OnInit, OnDestroy } from '@angular/core';
2import * as i0 from "@angular/core";
3/**
4 * Visibility Observer Directive
5 *
6 * Usage:
7 *
8 * <div
9 * visibilityObserver
10 * (visible)="onVisible($event)">
11 * </div>
12 *
13 */
14export declare class VisibilityDirective implements OnInit, OnDestroy {
15 private element;
16 private zone;
17 isVisible: boolean;
18 visible: EventEmitter<any>;
19 timeout: any;
20 constructor(element: ElementRef, zone: NgZone);
21 ngOnInit(): void;
22 ngOnDestroy(): void;
23 onVisibilityChange(): void;
24 runCheck(): void;
25 static ɵfac: i0.ɵɵFactoryDeclaration<VisibilityDirective, never>;
26 static ɵdir: i0.ɵɵDirectiveDeclaration<VisibilityDirective, "[visibilityObserver]", never, {}, { "visible": "visible"; }, never>;
27}