Browse Source

transmitter

Aleksandr Aleksandrov 6 years ago
parent
commit
1d26962460
3 changed files with 3 additions and 20 deletions
  1. 1 1
      package.json
  2. 1 18
      src/watch.ts
  3. 1 1
      yarn.lock

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ex-helpers/element",
-  "version": "0.1.11",
+  "version": "0.1.12",
   "description": "Several element wrapper helpers",
   "scripts": {
     "build": "exb",

+ 1 - 18
src/watch.ts

@@ -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;

+ 1 - 1
yarn.lock

@@ -16,7 +16,7 @@
     rimraf "^2.6.2"
     yargs "^12.0.2"
 
-"@ex-helpers/stack@>=0.1.10":
+"@ex-helpers/stack@0.1":
   version "0.1.10"
   resolved "https://registry.desudesu.ru/@ex-helpers%2fstack/-/stack-0.1.10.tgz#4ccc554d8c55657778403ebfe00940e19dca64e1"
   dependencies: