|
|
@@ -4,6 +4,25 @@ import {IncrementalStackManager} from '@ex-helpers/stack';
|
|
|
import {bounds} from './bounds';
|
|
|
import './element';
|
|
|
|
|
|
+declare module '@angular/core' {
|
|
|
+
|
|
|
+ class ElementRef<T = any> {
|
|
|
+ private _watchSizeCollection?: any;
|
|
|
+
|
|
|
+ nativeElement: T;
|
|
|
+
|
|
|
+ constructor(nativeElement: T);
|
|
|
+
|
|
|
+ watchSize?: (callback: (height: number, width: number) => void,
|
|
|
+ options?: { attributes: boolean, childList: boolean, characterData: boolean },
|
|
|
+ params?: { legacy: boolean, timeout?: number }) => () => void;
|
|
|
+
|
|
|
+ watchChanges?: (callback: MutationCallback, options: MutationObserverInit) => () => void;
|
|
|
+
|
|
|
+ triggerSizeCheck?: () => void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
interface SizeCollectionItem {
|
|
|
triggerCheck: () => void;
|
|
|
startCountdown: () => void;
|