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
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
7988
110
2
1
+ Addedmucss@>=0.5.7
+ Addedmucss@1.1.5(transitive)