()
| 6589 | return o.top < s.top - p ? (o.top = s.top, o.bottom = o.top + o.height) : o.bottom > s.bottom && (o.bottom = s.bottom, o.top = o.bottom - o.height), o.left < s.left ? (o.left = s.left, o.right = s.left + o.width) : o.right > s.right && (o.right = s.right, o.left = o.right - o.width), l.x >= o.left && l.x <= o.right && (o.left = l.x - o.width - _, o.right = o.left + o.width), l.y >= o.top && l.y <= o.bottom && (o.top = l.y - o.height - r, o.bottom = o.top + o.height), o.left < 0 && (o.left = 0), o.right < 0 && (o.right = 0), o; |
| 6590 | } |
| 6591 | _getViewPortSize() { |
| 6592 | const i = this._scheduler, t = i.$domHelpers, n = this._getViewPort(); |
| 6593 | let s, a = n, o = window.scrollY + document.body.scrollTop, _ = window.scrollX + document.body.scrollLeft; |
| 6594 | return n === i.$event_data ? (a = i.$event, o = 0, _ = 0, s = t.getNodePosition(i.$event)) : s = t.getNodePosition(a), { left: s.x + _, top: s.y + o, width: s.width, height: s.height, bottom: s.y + s.height + o, right: s.x + s.width + _ }; |
| 6595 | } |
| 6596 | } |
| 6597 | class Va { |
| 6598 | constructor(i) { |
no test coverage detected