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

Function toggleComponent

frontend/src/webview-client/state.ts:175–181  ·  view source on GitHub ↗
(componentId: string)

Source from the content-addressed store, hash-verified

173}
174
175export function toggleComponent(componentId: string): void {
176 if (expandedComponents.has(componentId)) {
177 expandedComponents.delete(componentId);
178 } else {
179 expandedComponents.add(componentId);
180 }
181}
182
183export function getExpandedComponents(): Set<string> {
184 return expandedComponents;

Callers

nothing calls this directly

Calls 3

hasMethod · 0.45
deleteMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected