* Retrieve the final value for the return edge of elementRectangle. If the elementRectangle is closer to one side * of the bounds versus the other, the return edge is flipped to grow inward.
(elementRectangle, returnEdge, bounds)
| 31966 | * Retrieve the final value for the return edge of elementRectangle. If the elementRectangle is closer to one side |
| 31967 | * of the bounds versus the other, the return edge is flipped to grow inward. |
| 31968 | */ function _finalizeReturnEdge(elementRectangle, returnEdge, bounds) { |
| 31969 | if (bounds && Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge)) > Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge * -1))) return returnEdge * -1; |
| 31970 | return returnEdge; |
| 31971 | } |
| 31972 | /** |
| 31973 | * Finalizes the element positon based on the hostElement. Only returns the |
| 31974 | * rectangle values to position such that they are anchored to the target. |
no test coverage detected