|
|
@@ -2,24 +2,7 @@ import {ElementRef} from '@angular/core';
|
|
|
import extend from 'lodash-es/extend';
|
|
|
import {IncrementalStackManager} from '@ex-helpers/stack';
|
|
|
import {bounds} from './bounds';
|
|
|
-
|
|
|
-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;
|
|
|
- }
|
|
|
-}
|
|
|
+import './element';
|
|
|
|
|
|
interface SizeCollectionItem {
|
|
|
triggerCheck: () => void;
|