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

Function compact

test/spec/benchmark-test.js:24–27  ·  view source on GitHub ↗
(layout, compactTypeStr, cols, allowOverlap = false)

Source from the content-addressed store, hash-verified

22
23// Helper to compact using compactor interface (#2213)
24function compact(layout, compactTypeStr, cols, allowOverlap = false) {
25 const compactor = getCompactor(compactTypeStr, allowOverlap);
26 return compactor.compact(layout, cols);
27}
28
29// Generate a layout with n items
30function generateLayout(n, cols = 12) {

Callers 1

benchmark-test.jsFile · 0.70

Calls 2

getCompactorFunction · 0.90
compactMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…