UNPKG

angular-resize-event-package

Version:

[![npm version](https://img.shields.io/npm/v/angular-resize-event-package.svg)](https://www.npmjs.com/package/angular-resize-event-package) [![npm downloads](https://img.shields.io/npm/dm/angular-resize-event-package.svg)](https://www.npmjs.com/package/an

32 lines (27 loc) 1.25 kB
import * as i0 from '@angular/core'; import { OnInit, OnDestroy, EventEmitter } from '@angular/core'; declare class ResizedEvent { readonly newRect: DOMRectReadOnly; readonly oldRect?: DOMRectReadOnly; readonly isFirst: boolean; constructor(newRect: DOMRectReadOnly, oldRect: DOMRectReadOnly | undefined); } declare class ResizedDirective implements OnInit, OnDestroy { private readonly element; private readonly zone; private readonly observer; private oldRect?; readonly resized: EventEmitter<ResizedEvent>; constructor(); 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 };