UNPKG

angular-resize-event-package

Version:

Angular directive for detecting changes of an element size.

32 lines (27 loc) 1.26 kB
import * as i0 from '@angular/core'; import { OnInit, OnDestroy, EventEmitter, ElementRef, NgZone } from '@angular/core'; declare class ResizedEvent { newRect: DOMRectReadOnly; oldRect?: DOMRectReadOnly; isFirst: boolean; constructor(newRect: DOMRectReadOnly, oldRect: DOMRectReadOnly | undefined); } declare class ResizedDirective implements OnInit, OnDestroy { private readonly element; private readonly zone; private observer; private oldRect?; readonly resized: EventEmitter<ResizedEvent>; constructor(element: ElementRef, zone: NgZone); ngOnInit(): void; ngOnDestroy(): void; private observe; static ɵfac: i0.ɵɵFactoryDeclaration<ResizedDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ResizedDirective, "[resized]", never, {}, { "resized": "resized"; }, never, never, true, never>; } declare class AngularResizeEventModule { static ɵfac: i0.ɵɵFactoryDeclaration<AngularResizeEventModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<AngularResizeEventModule, never, [typeof ResizedDirective], [typeof ResizedDirective]>; static ɵinj: i0.ɵɵInjectorDeclaration<AngularResizeEventModule>; } export { AngularResizeEventModule, ResizedDirective, ResizedEvent };