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

Function compactAndMove

test/spec/utils-test.js:166–190  ·  view source on GitHub ↗
(
    layout,
    layoutItem,
    x,
    y,
    isUserAction,
    preventCollision,
    compactType,
    cols
  )

Source from the content-addressed store, hash-verified

164
165describe("moveElement", () => {
166 function compactAndMove(
167 layout,
168 layoutItem,
169 x,
170 y,
171 isUserAction,
172 preventCollision,
173 compactType,
174 cols
175 ) {
176 return compact(
177 moveElement(
178 layout,
179 layoutItem,
180 x,
181 y,
182 isUserAction,
183 preventCollision,
184 compactType,
185 cols
186 ),
187 compactType,
188 cols
189 );
190 }
191
192 it("Does not change layout when colliding on no rearrangement mode", () => {
193 const layout = [

Callers 1

utils-test.jsFile · 0.85

Calls 2

moveElementFunction · 0.90
compactFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…