MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / toggleLegend

Function toggleLegend

frontend/src/webview-client/controls.ts:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31function toggleLegend(): void {
32 const legendContent = document.getElementById('legendContent');
33 const legendToggle = document.getElementById('legendToggle');
34 if (legendContent && legendToggle) {
35 if (legendContent.style.display === 'none') {
36 legendContent.style.display = 'block';
37 legendToggle.textContent = '−';
38 } else {
39 legendContent.style.display = 'none';
40 legendToggle.textContent = '+';
41 }
42 }
43}
44
45function zoomIn(): void {
46 const { svg, zoom } = state;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected