MCPcopy Create free account
hub / github.com/TheCSir/TerminalStart / initMatrix

Function initMatrix

src/components/widgets/MatrixWidget.tsx:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 };
68
69 const initMatrix = () => {
70 const newMatrix: MatrixColumn[] = [];
71 for (let j = 0; j < cols; j++) {
72 newMatrix.push(createColumn(rows, trailMultiplier));
73 }
74 matrixRef.current = newMatrix;
75 };
76
77 const resizeObserver = new ResizeObserver(() => {
78 width = container.clientWidth;

Callers 1

MatrixWidgetFunction · 0.85

Calls 1

createColumnFunction · 0.90

Tested by

no test coverage detected