get-window-offset
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -13,8 +13,2 @@ "use strict"; | ||
var calDomCenter = function calDomCenter(left, top, width, height) { | ||
console.log({ | ||
left: left, | ||
top: top, | ||
width: width, | ||
height: height | ||
}); | ||
var xy = [left + Math.floor(width / 2), top + Math.floor(height / 2)]; | ||
@@ -21,0 +15,0 @@ return xy; |
import getDomPositionInfo from "./getDomPositionInfo"; | ||
var calDomCenter = function calDomCenter(left, top, width, height) { | ||
console.log({ | ||
left: left, | ||
top: top, | ||
width: width, | ||
height: height | ||
}); | ||
var xy = [left + Math.floor(width / 2), top + Math.floor(height / 2)]; | ||
@@ -11,0 +5,0 @@ return xy; |
{ | ||
"name": "get-window-offset", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A simple library to tell you where could get best space by a target to put your container.", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42523
1299