🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

get-window-offset

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-window-offset - npm Package Compare versions

Comparing version

to
0.3.1

6

build/cjs/src/getDomCenter.js

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

2

package.json
{
"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",