MCPcopy Index your code
hub / github.com/react-grid-layout/react-grid-layout / compact

Function compact

src/extras/fastHorizontalCompactor.ts:259–264  ·  view source on GitHub ↗
(layout: Layout, cols: number)

Source from the content-addressed store, hash-verified

257 allowOverlap: false,
258
259 compact(layout: Layout, cols: number): Layout {
260 // Clone the layout since we modify in place
261 const out = cloneLayout(layout) as LayoutItem[];
262 compactHorizontalFast(out, cols, false);
263 return out;
264 }
265};
266
267/**

Callers

nothing calls this directly

Calls 2

cloneLayoutFunction · 0.85
compactHorizontalFastFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…