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

Function compact

src/extras/fastVerticalCompactor.ts:166–171  ·  view source on GitHub ↗
(layout: Layout, cols: number)

Source from the content-addressed store, hash-verified

164 allowOverlap: false,
165
166 compact(layout: Layout, cols: number): Layout {
167 // Clone the layout since we modify in place
168 const out = cloneLayout(layout) as LayoutItem[];
169 compactVerticalFast(out, cols, false);
170 return out;
171 }
172};
173
174/**

Callers

nothing calls this directly

Calls 2

cloneLayoutFunction · 0.85
compactVerticalFastFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…