MCPcopy Create free account
hub / github.com/Zleap-AI/SAG / onNodeDoubleClick

Function onNodeDoubleClick

web/src/components/ProjectGraphFlow.tsx:201–211  ·  view source on GitHub ↗
(event, node)

Source from the content-addressed store, hash-verified

199 };
200
201 const onNodeDoubleClick: NodeMouseHandler<GraphNode> = (event, node) => {
202 event.stopPropagation();
203 clearClickTimer();
204 setSelectedNodeId(node.id);
205 const data = node.data as GraphNodeData;
206 if (data.kind === "entity") {
207 props.onOpenEntity(node.id);
208 return;
209 }
210 props.onOpenEvent(node.id);
211 };
212
213 function toggleNode(node: GraphNode) {
214 const data = node.data as GraphNodeData;

Callers

nothing calls this directly

Calls 1

clearClickTimerFunction · 0.85

Tested by

no test coverage detected