Comparing version 1.11.1 to 1.12.0
@@ -1165,3 +1165,19 @@ 'use strict'; | ||
if (isStillFailX || isStillFailY) { | ||
points = align.points; | ||
var _newPoints2 = points; // 重置对应部分的翻转逻辑 | ||
if (isStillFailX) { | ||
_newPoints2 = flip(points, /[lr]/gi, { | ||
l: 'r', | ||
r: 'l' | ||
}); | ||
} | ||
if (isStillFailY) { | ||
_newPoints2 = flip(points, /[tb]/gi, { | ||
t: 'b', | ||
b: 't' | ||
}); | ||
} | ||
points = _newPoints2; | ||
offset = align.offset || [0, 0]; | ||
@@ -1168,0 +1184,0 @@ targetOffset = align.targetOffset || [0, 0]; |
@@ -1211,3 +1211,19 @@ function _typeof(obj) { | ||
if (isStillFailX || isStillFailY) { | ||
points = align.points; | ||
var _newPoints2 = points; // 重置对应部分的翻转逻辑 | ||
if (isStillFailX) { | ||
_newPoints2 = flip(points, /[lr]/gi, { | ||
l: 'r', | ||
r: 'l' | ||
}); | ||
} | ||
if (isStillFailY) { | ||
_newPoints2 = flip(points, /[tb]/gi, { | ||
t: 'b', | ||
b: 't' | ||
}); | ||
} | ||
points = _newPoints2; | ||
offset = align.offset || [0, 0]; | ||
@@ -1214,0 +1230,0 @@ targetOffset = align.targetOffset || [0, 0]; |
{ | ||
"name": "dom-align", | ||
"description": "Align DOM Node Flexibly ", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
243369
2166