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