(container, options, ghostEl)
| 524 | css(el, 'height', ''); |
| 525 | } |
| 526 | function getChildContainingRectFromElement(container, options, ghostEl) { |
| 527 | var rect = {}; |
| 528 | Array.from(container.children).forEach(function (child) { |
| 529 | var _rect$left, _rect$top, _rect$right, _rect$bottom; |
| 530 | if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl) return; |
| 531 | var childRect = getRect(child); |
| 532 | rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left); |
| 533 | rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top); |
| 534 | rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right); |
| 535 | rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom); |
| 536 | }); |
| 537 | rect.width = rect.right - rect.left; |
| 538 | rect.height = rect.bottom - rect.top; |
| 539 | rect.x = rect.left; |
| 540 | rect.y = rect.top; |
| 541 | return rect; |
| 542 | } |
| 543 | var expando = 'Sortable' + new Date().getTime(); |
| 544 | |
| 545 | function AnimationStateManager() { |
no test coverage detected
searching dependent graphs…