@rc-component/trigger
Advanced tools
Comparing version 1.15.2 to 1.15.3
@@ -311,2 +311,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
nextOffsetY = tmpNextOffsetY; | ||
popupOffsetY = -popupOffsetY; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)]; | ||
@@ -335,2 +336,3 @@ } else { | ||
nextOffsetY = _tmpNextOffsetY; | ||
popupOffsetY = -popupOffsetY; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)]; | ||
@@ -365,2 +367,3 @@ } else { | ||
nextOffsetX = tmpNextOffsetX; | ||
popupOffsetX = -popupOffsetX; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)]; | ||
@@ -389,2 +392,3 @@ } else { | ||
nextOffsetX = _tmpNextOffsetX; | ||
popupOffsetX = -popupOffsetX; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)]; | ||
@@ -402,3 +406,3 @@ } else { | ||
if (nextPopupX < visibleRegionArea.left) { | ||
nextOffsetX -= nextPopupX - visibleRegionArea.left; | ||
nextOffsetX -= nextPopupX - visibleRegionArea.left - popupOffsetX; | ||
if (targetRect.x + targetWidth < visibleRegionArea.left + numShiftX) { | ||
@@ -411,3 +415,3 @@ nextOffsetX += targetRect.x - visibleRegionArea.left + targetWidth - numShiftX; | ||
if (nextPopupRight > visibleRegionArea.right) { | ||
nextOffsetX -= nextPopupRight - visibleRegionArea.right; | ||
nextOffsetX -= nextPopupRight - visibleRegionArea.right - popupOffsetX; | ||
if (targetRect.x > visibleRegionArea.right - numShiftX) { | ||
@@ -422,3 +426,6 @@ nextOffsetX += targetRect.x - visibleRegionArea.right + numShiftX; | ||
if (nextPopupY < visibleRegionArea.top) { | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY; | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top - popupOffsetY; | ||
// When target if far away from visible area | ||
// Stop shift | ||
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) { | ||
@@ -425,0 +432,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY; |
@@ -319,2 +319,3 @@ "use strict"; | ||
nextOffsetY = tmpNextOffsetY; | ||
popupOffsetY = -popupOffsetY; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)]; | ||
@@ -343,2 +344,3 @@ } else { | ||
nextOffsetY = _tmpNextOffsetY; | ||
popupOffsetY = -popupOffsetY; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)]; | ||
@@ -373,2 +375,3 @@ } else { | ||
nextOffsetX = tmpNextOffsetX; | ||
popupOffsetX = -popupOffsetX; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)]; | ||
@@ -397,2 +400,3 @@ } else { | ||
nextOffsetX = _tmpNextOffsetX; | ||
popupOffsetX = -popupOffsetX; | ||
nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)]; | ||
@@ -410,3 +414,3 @@ } else { | ||
if (nextPopupX < visibleRegionArea.left) { | ||
nextOffsetX -= nextPopupX - visibleRegionArea.left; | ||
nextOffsetX -= nextPopupX - visibleRegionArea.left - popupOffsetX; | ||
if (targetRect.x + targetWidth < visibleRegionArea.left + numShiftX) { | ||
@@ -419,3 +423,3 @@ nextOffsetX += targetRect.x - visibleRegionArea.left + targetWidth - numShiftX; | ||
if (nextPopupRight > visibleRegionArea.right) { | ||
nextOffsetX -= nextPopupRight - visibleRegionArea.right; | ||
nextOffsetX -= nextPopupRight - visibleRegionArea.right - popupOffsetX; | ||
if (targetRect.x > visibleRegionArea.right - numShiftX) { | ||
@@ -430,3 +434,6 @@ nextOffsetX += targetRect.x - visibleRegionArea.right + numShiftX; | ||
if (nextPopupY < visibleRegionArea.top) { | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY; | ||
nextOffsetY -= nextPopupY - visibleRegionArea.top - popupOffsetY; | ||
// When target if far away from visible area | ||
// Stop shift | ||
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) { | ||
@@ -433,0 +440,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY; |
{ | ||
"name": "@rc-component/trigger", | ||
"version": "1.15.2", | ||
"version": "1.15.3", | ||
"description": "base abstract trigger component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
177874
3943