detect-element-overflow
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
var detectCollisions = function detectCollisions(element, container) { | ||
var detectElementOverflow = function detectElementOverflow(element, container) { | ||
return { | ||
@@ -36,2 +36,2 @@ get collidedTop() { | ||
exports.default = detectCollisions; | ||
exports.default = detectElementOverflow; |
{ | ||
"name": "detect-element-overflow", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A function that tells you whether a given element is overflowing its container or not. Useful for creating dropdowns and tooltips.", | ||
"main": "src/entry.js", | ||
"main": "build/entry.js", | ||
"es6": "src/entry.js", | ||
@@ -7,0 +7,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
const detectCollisions = (element, container) => ({ | ||
const detectElementOverflow = (element, container) => ({ | ||
get collidedTop() { | ||
@@ -28,2 +28,2 @@ return element.getBoundingClientRect().top < container.getBoundingClientRect().top; | ||
export default detectCollisions; | ||
export default detectElementOverflow; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5470