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

Function compactItem

src/core/compact-compat.ts:214–232  ·  view source on GitHub ↗
(
  compareWith: Layout,
  l: LayoutItem,
  compactType: CompactType,
  cols: number,
  fullLayout: Layout,
  allowOverlap: boolean | undefined,
  maxY: number | undefined
)

Source from the content-addressed store, hash-verified

212 * @deprecated Use compact() instead, which handles the full layout.
213 */
214export function compactItem(
215 compareWith: Layout,
216 l: LayoutItem,
217 compactType: CompactType,
218 cols: number,
219 fullLayout: Layout,
220 allowOverlap: boolean | undefined,
221 maxY: number | undefined
222): LayoutItem {
223 return compactItemInternal(
224 compareWith,
225 cloneLayoutItem(l),
226 compactType,
227 cols,
228 fullLayout,
229 allowOverlap,
230 maxY
231 );
232}

Callers

nothing calls this directly

Calls 2

compactItemInternalFunction · 0.85
cloneLayoutItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…