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

Interface GridCellDimensions

src/core/calculate.ts:325–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 * Grid cell dimension information for rendering backgrounds or overlays.
324 */
325export interface GridCellDimensions {
326 /** Width of a single cell in pixels */
327 readonly cellWidth: number;
328 /** Height of a single cell in pixels */
329 readonly cellHeight: number;
330 /** Horizontal offset from container edge to first cell */
331 readonly offsetX: number;
332 /** Vertical offset from container edge to first cell */
333 readonly offsetY: number;
334 /** Horizontal gap between cells */
335 readonly gapX: number;
336 /** Vertical gap between cells */
337 readonly gapY: number;
338 /** Number of columns */
339 readonly cols: number;
340 /** Total container width */
341 readonly containerWidth: number;
342}
343
344/**
345 * Configuration for grid cell dimension calculation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…