MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / selectEdge

Function selectEdge

graph-ui/src/architecture/BehaviorJourney.tsx:154–160  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

152 if (node?.symbol) onSelectSymbol(node.symbol);
153 }
154 function selectEdge(id: string) {
155 setOverview(false);
156 const edge = journey?.scene.edges.find(item => item.id === id);
157 setSelection({ edge: id });
158 if (path && edge?.depth) changePlace({ step: edge.depth - 1 });
159 if (!path && edge) changePlace({ page: Math.max(0, Math.floor((allNodes.findIndex(node => node.id === edge.target) - 1) / 4)) });
160 }
161 function selectStep(index: number) {
162 setOverview(false);
163 const node = allNodes[index];

Callers 1

BehaviorJourneyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected