(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget)
| 32031 | else return negativeEdge; |
| 32032 | } |
| 32033 | function _positionElementWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget) { |
| 32034 | var estimatedElementPosition = _estimatePosition(elementToPosition, target, positionData, gap, coverTarget); |
| 32035 | if (_isRectangleWithinBounds(estimatedElementPosition, bounding)) return { |
| 32036 | elementRectangle: estimatedElementPosition, |
| 32037 | targetEdge: positionData.targetEdge, |
| 32038 | alignmentEdge: positionData.alignmentEdge |
| 32039 | }; |
| 32040 | else return _adjustFitWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget); |
| 32041 | } |
| 32042 | function _finalizeBeakPosition(elementPosition, positionedBeak, bounds) { |
| 32043 | var targetEdge = elementPosition.targetEdge * -1; |
| 32044 | // The "host" element that we will use to help position the beak. |
no test coverage detected