(x, y)
| 228 | * @return {HTMLElement} Element of the first found nearest Sortable |
| 229 | */ |
| 230 | _detectNearestEmptySortable = function(x, y) { |
| 231 | let ret; |
| 232 | sortables.some((sortable) => { |
| 233 | const threshold = sortable[expando].options.emptyInsertThreshold; |
| 234 | if (!threshold || lastChild(sortable)) return; |
| 235 | |
| 236 | const rect = getRect(sortable), |
| 237 | insideHorizontally = x >= (rect.left - threshold) && x <= (rect.right + threshold), |
| 238 | insideVertically = y >= (rect.top - threshold) && y <= (rect.bottom + threshold); |
| 239 | |
| 240 | if (insideHorizontally && insideVertically) { |
| 241 | return (ret = sortable); |
| 242 | } |
| 243 | }); |
| 244 | return ret; |
| 245 | }, |
| 246 | |
| 247 | _prepareGroup = function (options) { |
| 248 | function toFn(value, pull) { |
no test coverage detected
searching dependent graphs…