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

Function compact

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

Source from the content-addressed store, hash-verified

19
20// Helper to compact using compactor interface (#2213)
21function compact(layout, compactTypeStr, cols, allowOverlap = false) {
22 const compactor = getCompactor(compactTypeStr, allowOverlap);
23 return compactor.compact(layout, cols);
24}
25
26describe("Backwards Compatibility: Callback Signatures", () => {
27 const baseLayout = [

Callers 1

backcompat-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…