Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.3.0 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc