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

Function createContext

test/spec/constraints-test.ts:42–55  ·  view source on GitHub ↗
(
  overrides: Partial<ConstraintContext> = {}
)

Source from the content-addressed store, hash-verified

40
41// Helper to create a constraint context
42function createContext(
43 overrides: Partial<ConstraintContext> = {}
44): ConstraintContext {
45 return {
46 cols: 12,
47 maxRows: Infinity,
48 containerWidth: 1200,
49 containerHeight: 800,
50 rowHeight: 30,
51 margin: [10, 10] as [number, number],
52 layout: [],
53 ...overrides
54 };
55}
56
57describe("Constraints", () => {
58 describe("gridBounds", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…