(target, targetEdge, gapSpace, bounds, coverTarget)
| 32179 | return _positionCard(props, hostElement, elementToPosition, previousPositions); |
| 32180 | } |
| 32181 | function getMaxHeight(target, targetEdge, gapSpace, bounds, coverTarget) { |
| 32182 | if (gapSpace === void 0) gapSpace = 0; |
| 32183 | var mouseTarget = target; |
| 32184 | var elementTarget = target; |
| 32185 | var rectOrPointTarget = target; |
| 32186 | var targetRect; |
| 32187 | var boundingRectangle = bounds ? _getRectangleFromIRect(bounds) : new (0, _utilities.Rectangle)(0, window.innerWidth - (0, _utilities.getScrollbarWidth)(), 0, window.innerHeight); |
| 32188 | // eslint-disable-next-line deprecation/deprecation |
| 32189 | var left = rectOrPointTarget.left || rectOrPointTarget.x; |
| 32190 | // eslint-disable-next-line deprecation/deprecation |
| 32191 | var top = rectOrPointTarget.top || rectOrPointTarget.y; |
| 32192 | var right = rectOrPointTarget.right || left; |
| 32193 | var bottom = rectOrPointTarget.bottom || top; |
| 32194 | // eslint-disable-next-line no-extra-boolean-cast -- may not actually be a MouseEvent |
| 32195 | if (!!mouseTarget.stopPropagation) targetRect = new (0, _utilities.Rectangle)(mouseTarget.clientX, mouseTarget.clientX, mouseTarget.clientY, mouseTarget.clientY); |
| 32196 | else if (left !== undefined && top !== undefined) targetRect = new (0, _utilities.Rectangle)(left, right, top, bottom); |
| 32197 | else targetRect = _getRectangleFromElement(elementTarget); |
| 32198 | return _getMaxHeightFromTargetRectangle(targetRect, targetEdge, gapSpace, boundingRectangle, coverTarget); |
| 32199 | } |
| 32200 | function getOppositeEdge(edge) { |
| 32201 | return edge * -1; |
| 32202 | } |
nothing calls this directly
no test coverage detected