MCPcopy
hub / github.com/react-grid-layout/react-grid-layout / getAllCollisions

Function getAllCollisions

src/core/collision.ts:60–65  ·  view source on GitHub ↗
(
  layout: Layout,
  layoutItem: LayoutItem
)

Source from the content-addressed store, hash-verified

58 * @returns Array of all colliding items (may be empty)
59 */
60export function getAllCollisions(
61 layout: Layout,
62 layoutItem: LayoutItem
63): LayoutItem[] {
64 return layout.filter((l): l is LayoutItem => collides(l, layoutItem));
65}

Callers 3

GridLayoutFunction · 0.85
moveElementFunction · 0.85

Calls 1

collidesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…