MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / initializeMatrixAnalysis

Function initializeMatrixAnalysis

codeclash/viewer/static/js/matrix.js:20–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20function initializeMatrixAnalysis() {
21 const matrixDropdown = document.getElementById("matrix-dropdown");
22 const matrixData = getMatrixData();
23
24 if (!matrixDropdown || !matrixData) {
25 return;
26 }
27
28 // Show the first matrix by default
29 const firstMatrixName = Object.keys(matrixData.matrices)[0];
30 if (firstMatrixName) {
31 showMatrix(firstMatrixName);
32 matrixDropdown.value = firstMatrixName;
33 }
34
35 // Handle dropdown changes
36 matrixDropdown.addEventListener("change", function () {
37 const selectedMatrix = this.value;
38 showMatrix(selectedMatrix);
39 });
40
41 // Add enhanced tooltips for matrix cells
42 setupMatrixTooltips();
43}
44
45function getMatrixData() {
46 const matrixDataElement = document.getElementById("matrix-data");

Callers 1

matrix.jsFile · 0.85

Calls 3

getMatrixDataFunction · 0.85
showMatrixFunction · 0.85
setupMatrixTooltipsFunction · 0.85

Tested by

no test coverage detected