angular-resize-event-package
Version:
[](https://www.npmjs.com/package/angular-resize-event-package) [](https://www.npmjs.com/package/an
32 lines (27 loc) • 1.25 kB
TypeScript
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 };