MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / getFixedCellsSize

Function getFixedCellsSize

lib/components/MultiGrid/MultiGrid.tsx:110–119  ·  view source on GitHub ↗
(size: CellSize, count: number)

Source from the content-addressed store, hash-verified

108
109// Total size of the first `count` columns (or rows)
110function getFixedCellsSize(size: CellSize, count: number): number {
111 if (typeof size === "function") {
112 let total = 0;
113 for (let index = 0; index < count; index++) {
114 total += size({ index });
115 }
116 return total;
117 }
118 return size * count;
119}
120
121function createMultiGridInstance(
122 initialLatest: LatestValues,

Callers 1

MultiGrid.tsxFile · 0.85

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected