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 0.0.7 to 0.0.8

16

index.js

@@ -1,3 +0,7 @@

var css = require('mucss');
var m = require('mumath');
var margins = require('mucss/margins');
var paddings = require('mucss/paddings');
var offsets = require('mucss/offsets');
var borders = require('mucss/borders');
var css = require('mucss/css');

@@ -48,3 +52,3 @@ /**

//apply alignment
var toRect = css.offsets(relativeTo);
var toRect = offsets(relativeTo);
for (var i = els.length, el, s; i--;){

@@ -63,9 +67,9 @@ el = els[i];

//include margins
var placeeMargins = css.margins(el);
var placeeMargins = margins(el);
//get relativeTo & parent rectangles
var parent = el.offsetParent || win;
var parentRect = css.offsets(parent);
var parentPaddings = css.paddings(parent);
var parentBorders = css.borders(parent);
var parentRect = offsets(parent);
var parentPaddings = paddings(parent);
var parentBorders = borders(parent);

@@ -72,0 +76,0 @@ //correct parentRect

{
"name": "aligner",
"version": "0.0.7",
"version": "0.0.8",
"description": "Align DOM elements just like photoshop/illustrator alignment does",

@@ -24,4 +24,8 @@ "main": "index.js",

"dependencies": {
"mumath": ">=0.2.0"
"mumath": ">=0.2.0",
"mucss": ">=0.5.7"
},
"devDependencies": {
"require-stub": ">=1.5.12"
}
}

Sorry, the diff of this file is not supported yet

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