Browse Source

No deprecated

Aleksandr Aleksandrov 6 years ago
parent
commit
c0a3d0b785

+ 6 - 8
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ex-helpers/element",
-  "version": "0.1.16",
+  "version": "0.1.17",
   "description": "Several element wrapper helpers",
   "scripts": {
     "build": "exb",
@@ -10,17 +10,15 @@
   "license": "ISC",
   "dependencies": {
     "@ex-helpers/stack": "0.1",
-    "lodash-es": "^4.17.11"
-  },
-  "peerDependencies": {
-    "rxjs": "^6.0.0",
-    "zone.js": "~0.8.26"
+    "lodash-es": "4"
   },
   "devDependencies": {
     "@angular/core": "^6.1.10",
     "@ex-helpers/build": "^0.1.18",
     "@types/lodash-es": "^4.17.1",
     "rimraf": "^2.6.2",
-    "typescript": "^2"
+    "typescript": "^2",
+    "rxjs": "^6.0.0",
+    "zone.js": "~0.8.26"
   }
-}
+}

+ 0 - 3
src/size/get-absolute-scroll-and-offset.ts

@@ -1,6 +1,3 @@
-/**
- * @deprecated use scroll and bounds instead
- */
 export function getAbsoluteScrollAndOffset(el: HTMLElement) {
     let _x = 0;
     let _y = 0;

+ 0 - 3
src/size/get-body-size.ts

@@ -1,8 +1,5 @@
 import {bodySize} from '../body-size';
 
-/**
- * @deprecated use body-size instead
- */
 export function getBodySize(document: any) {
     return bodySize(document);
 }

+ 0 - 3
src/size/get-dimensions.ts

@@ -2,9 +2,6 @@ import {getSize} from './get-size';
 import {getAbsoluteScrollAndOffset} from './get-absolute-scroll-and-offset';
 import {SizeInterface} from './size.interface';
 
-/**
- * @deprecated use bounds and scroll instead
- */
 export function getDimensions(el: HTMLElement): SizeInterface {
     const data = getAbsoluteScrollAndOffset(el);
     return {

+ 0 - 3
src/size/get-size.ts

@@ -1,6 +1,3 @@
-/**
- * @deprecated use bounds instead
- */
 export function getSize(el: HTMLElement) {
     return {
         height: el.clientHeight,