MCPcopy
hub / github.com/snarktank/ralph / getEdgeVisibility

Function getEdgeVisibility

flowchart/src/App.tsx:284–288  ·  view source on GitHub ↗
(conn: typeof edgeConnections[0], visibleStepCount: number)

Source from the content-addressed store, hash-verified

282 );
283
284 const getEdgeVisibility = (conn: typeof edgeConnections[0], visibleStepCount: number) => {
285 const sourceIndex = allSteps.findIndex(s => s.id === conn.source);
286 const targetIndex = allSteps.findIndex(s => s.id === conn.target);
287 return sourceIndex < visibleStepCount && targetIndex < visibleStepCount;
288 };
289
290 const handleNext = useCallback(() => {
291 if (visibleCount < allSteps.length) {

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected