Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aligner

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aligner - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

8

index.js

@@ -53,2 +53,7 @@ var m = require('mumath');

var targetRect = offsets(relativeTo);
if (relativeTo === window) {
targetRect.top = 0;
targetRect.left = 0;
}
for (var i = els.length, el, s; i--;){

@@ -83,7 +88,6 @@ el = els[i];

//correct parentRect
if (parent === window || (parent === doc.body && getComputedStyle(parent).position === 'static') || parent === root ) {
if (parent === window || (parent === doc.body && getComputedStyle(parent).position === 'static') || parent === root) {
parentRect.left = 0;
parentRect.top = 0;
}
parentRect = m.sub(parentRect, parentBorders);

@@ -90,0 +94,0 @@ parentRect = m.add(parentRect, placeeMargins);

{
"name": "aligner",
"version": "1.0.7",
"version": "1.0.8",
"description": "Align elements just like photoshop/illustrator does",

@@ -5,0 +5,0 @@ "main": "index.js",

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