@zodash/dom
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.4](https://github.com/zcorky/zodash/compare/@zodash/dom@0.1.3...@zodash/dom@0.1.4) (2021-03-23) | ||
**Note:** Version bump only for package @zodash/dom | ||
## [0.1.3](https://github.com/zcorky/zodash/compare/@zodash/dom@0.1.2...@zodash/dom@0.1.3) (2021-03-23) | ||
@@ -8,0 +16,0 @@ |
@@ -10,3 +10,3 @@ export * from './types'; | ||
import * as router from './router'; | ||
export { $, event, scroll, clipboard, page, viewport, style, router, }; | ||
export { $, event, scroll, clipboard, page, viewport, style, router }; | ||
declare const _default: { | ||
@@ -13,0 +13,0 @@ $: import("./types").I$S; |
@@ -43,6 +43,7 @@ "use strict"; | ||
setTimeout(() => { | ||
$el && $el.scrollTo({ | ||
top: 0, | ||
behavior: animated ? 'smooth' : undefined, | ||
}); | ||
$el && | ||
$el.scrollTo({ | ||
top: 0, | ||
behavior: animated ? 'smooth' : undefined, | ||
}); | ||
}, 0); | ||
@@ -55,6 +56,7 @@ } | ||
setTimeout(() => { | ||
$el && $el.scrollTo({ | ||
top: scrollHeight, | ||
behavior: animated ? 'smooth' : undefined, | ||
}); | ||
$el && | ||
$el.scrollTo({ | ||
top: scrollHeight, | ||
behavior: animated ? 'smooth' : undefined, | ||
}); | ||
}, 0); | ||
@@ -61,0 +63,0 @@ } |
@@ -18,3 +18,3 @@ "use strict"; | ||
: value; | ||
if (($node.style[name]) === rValue) | ||
if ($node.style[name] === rValue) | ||
return false; | ||
@@ -30,4 +30,3 @@ $node.style[name] = rValue; // eslint-disable-line | ||
function setStyles($element, styles) { | ||
Object.keys(styles) | ||
.forEach((key) => { | ||
Object.keys(styles).forEach((key) => { | ||
setStyle($element, key, styles[key]); | ||
@@ -34,0 +33,0 @@ }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
if (fullVisible) { | ||
return top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth; | ||
return (top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth); | ||
} | ||
@@ -13,0 +13,0 @@ const isVerticalMatch = (top > 0 && top < innerHeight) || (bottom > 0 && bottom < innerHeight); |
{ | ||
"name": "@zodash/dom", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "DOM Utils", | ||
@@ -72,7 +72,7 @@ "keywords": [ | ||
"@zcorky/query-string": "^1.0.2", | ||
"@zodash/copy": "^0.0.1", | ||
"@zodash/debounce": "^0.1.3", | ||
"@zodash/event": "^0.1.4" | ||
"@zodash/copy": "^0.0.2", | ||
"@zodash/debounce": "^0.1.4", | ||
"@zodash/event": "^0.1.5" | ||
}, | ||
"gitHead": "670099dfcb70d1aeb4f4bce9a1fb019a1aedcfd9" | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22987
34
329
+ Added@zodash/copy@0.0.2(transitive)
- Removed@zodash/copy@0.0.1(transitive)
Updated@zodash/copy@^0.0.2
Updated@zodash/debounce@^0.1.4
Updated@zodash/event@^0.1.5